:root {
    --bg-main: #fafafa;
    --bg-card: #ffffff;
    --text-primary: #111111;
    --text-secondary: #666666;
    --border-color: #eaeaea;
    --accent: #000000;
    --radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* NAVBAR VERCEL STYLE */
.saas-nav {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saas-nav .brand {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hub-badge {
    background: #000;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    font-weight: 700;
    font-family: monospace;
}

.saas-nav nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.saas-nav nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.15s ease;
}

.saas-nav nav a:hover {
    color: var(--text-primary);
}

.saas-nav .nav-btn {
    background-color: var(--accent);
    color: white !important;
    padding: 6px 14px;
    font-weight: 500;
    font-size: 13px;
}

/* PRIMER PLANO: HERO + MAPA */
.hero-map-section {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 60px 24px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.hero-text p {
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 16px;
    margin-bottom: 40px;
}

.map-wrapper {
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
}

.map-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #10b981; /* Verde activo */
    border-radius: 50% !important;
    display: inline-block;
}

#mapa-interactive-container {
    padding: 40px 20px;
    background: #ffffff;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* GRID PANELS CON FOTOS (BENTO) */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.saas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.saas-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Mantiene la foto recortada en las esquinas */
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.saas-card:hover:not(.disabled) {
    border-color: #000000;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.saas-card:hover .card-image-wrapper img {
    transform: scale(1.03); /* Efecto zoom premium sutil en la imagen */
}

.saas-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #eee;
    border-bottom: 1px solid var(--border-color);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que se encuadre perfecto */
    transition: transform 0.3s ease;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.saas-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.saas-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    font-size: 13px;
    font-weight: 500;
}

/* SECCIÓN COGNITIVA / MANIFIESTO ASIMÉTRICO */
.about-section {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    padding: 80px 24px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 16px;
}

code {
    background: #f5f5f5;
    padding: 3px 6px;
    font-family: monospace;
    font-size: 14px;
    color: #000;
}

.about-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FORMULARIO PLATAFORMA */

.form-wrapper h3 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.form-wrapper p {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

.input-row {
    display: flex;
    gap: 16px;
}

.saas-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.15s ease;
}

.saas-btn:hover {
    background-color: #222222;
}

/* FOOTER VERCEL STYLE */
.saas-footer {
    border-top: 1px solid var(--border-color);
    background: #fff;
    padding: 30px 24px;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .input-row {
        flex-direction: column;
        gap: 0;
    }
}
/* SECCIÓN CTA - DESPLIEGA TU PROVINCIA */
.cta-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 24px;
}

.cta-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 20px;
    background: var(--bg-main);
    background-color: rgb(2, 226, 2);
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* Botón estilo Vercel con microinteracción */
.saas-btn-cta {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.saas-btn-cta:hover {
    background-color: #222222;
}

.saas-btn-cta .arrow {
    display: inline-block;
    transition: transform 0.15s ease;
}

.saas-btn-cta:hover .arrow {
    transform: translateX(4px); /* Sutil desplazamiento de la flecha */
}
/* RESPONSIVE PARA EL PORTAL DE NOTICIAS */
@media (min-width: 768px) {
    .featured-news {
        grid-template-columns: 1.2fr 1fr !important; /* Dos columnas en PC */
    }
}

.news-card:hover h3,
.featured-news:hover h2 {
    color: #2563eb; /* Los titulares se iluminan en azul Vercel al pasar el ratón */
    transition: color 0.15s ease;
}

.news-card img,
.featured-news img {
    transition: transform 0.3s ease;
}

.news-card:hover img,
.featured-news:hover img {
    transform: scale(1.02); /* Sutil efecto zoom en las imágenes */
}
/* HEADER GLOBAL INTERNIVEL */
.saas-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px); /* Efecto traslúcido premium */
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #eaeaea;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #000000;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-size: 14px;
    color: #666666;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: #000000;
}

/* Botón pequeño del menú */
.saas-btn-sm {
    background: #000000;
    color: #ffffff !important;
    padding: 6px 12px;
    font-size: 13px !important;
    font-weight: 500;
    transition: background 0.15s ease;
}

.saas-btn-sm:hover {
    background: #222222;
}

/* Margen de seguridad para que el contenido de las páginas no se meta debajo del header */
body {
    margin: 0;
    padding-top: 64px; /* Mismo tamaño que el header */
}