/* Estilos para el Directorio Público (index.php) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #F2F2F7;
    color: #1C1C1E;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Eliminar espacios laterales en móvil */
@media (max-width: 767px) {
    .section-container {
        padding: 0 12px !important;
        max-width: 100% !important;
    }
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #1C1C1E;
    letter-spacing: -0.8px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

/* Sistema de espaciado consistente */
@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
        letter-spacing: -0.6px;
    }
}

/* --- Hero Section --- */
.hero-wrapper {
    position: relative;
    color: white;
}

/* Estilos para el header transparente y el que aparece con el scroll */
#main-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#main-header.directorio-header-transparent {
    background-color: transparent;
}

#main-header.directorio-header-translucent {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#main-header.directorio-header-translucent .header-content {
    /* Eliminado max-width para que ocupe todo el ancho disponible */
    margin: 0 auto; /* Centrar el contenido del header */
    padding: 20px 10px; /* Reducido el padding lateral a 10px */
}

/* Ajustes para que los links del header sean visibles en ambos estados */
#main-header.directorio-header-translucent .main-nav a,
#main-header.directorio-header-translucent .auth-buttons .btn-login {
    color: #333; /* Color oscuro para fondo claro */
}

#main-header.directorio-header-translucent .auth-buttons .btn-register {
    background-color: #007aff;
    color: white;
    border-color: #007aff;
}

#main-header.directorio-header-translucent .auth-buttons .btn-register:hover {
    background-color: #005bb5;
    border-color: #005bb5;
}

#main-header.directorio-header-scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Ajustes para que los links del header sean visibles en ambos estados */
#main-header.directorio-header-scrolled .main-nav a,
#main-header.directorio-header-scrolled .auth-buttons .btn-login {
    color: #333; /* Color oscuro para fondo claro */
}

#main-header.directorio-header-scrolled .auth-buttons .btn-register {
    background-color: #007aff;
    color: white;
    border-color: #007aff;
}

#main-header.directorio-header-scrolled .auth-buttons .btn-register:hover {
    background-color: #005bb5;
    border-color: #005bb5;
}


/* Carrusel de Imágenes del Hero */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Overlay degradado inteligente para mejorar legibilidad del texto */
.hero-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

/* Indicadores de carrusel */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.carousel-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    width: 24px;
    border-radius: 5px;
    border-color: rgba(255, 255, 255, 1);
}

.hero-header, .hero-section {
    position: relative;
    z-index: 2;
}

.hero-section {
    padding: 140px 20px 100px 20px;
    text-align: center;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero-section h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    color: #FFFFFF;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-section p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    margin-top: 30px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-register-btn {
    display: inline-block;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.95);
    color: #D52B1E;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(213, 43, 30, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.hero-register-btn:hover {
    background: #FFFFFF;
    color: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 43, 30, 0.4);
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    margin-top: 30px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-register-btn {
    display: inline-block;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.95);
    color: #D52B1E;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(213, 43, 30, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.hero-register-btn:hover {
    background: #FFFFFF;
    color: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 43, 30, 0.4);
}

.search-form {
    display: flex;
    justify-content: center;
    max-width: 750px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    position: relative;
}

.search-form:focus-within {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-form input {
    flex: 1;
    padding: 16px 20px 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    outline: none;
    background: transparent;
    color: #FFFFFF;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.search-form button {
    padding: 16px 32px;
    border: none;
    background: linear-gradient(135deg, #0039A6 0%, #0051D5 100%);
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 57, 166, 0.4);
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.2px;
}

.search-form button:hover {
    background: linear-gradient(135deg, #002D85 0%, #0039A6 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 57, 166, 0.5);
}

.search-form button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}

.popular-searches {
    margin-top: 32px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.popular-searches span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-right: 4px;
}

.popular-searches a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popular-searches a:hover {
    background-color: rgba(213, 43, 30, 0.9);
    border-color: #D52B1E;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(213, 43, 30, 0.4);
}

/* --- INICIO: NUEVA BARRA DE FILTROS --- */
/* Los estilos de la barra de filtros se han movido a emprendedores_custom.css */
/* --- FIN: NUEVA BARRA DE FILTROS --- */


.directorio-section {
    padding-top: 4px;
    padding-bottom: 60px;
    animation: fadeInUp 0.6s ease-out;
}

/* --- INICIO: ESTILOS PARA EL NUEVO LISTADO HORIZONTAL (REDiseñado v2 - Minimalista) --- */
.page-index .resultados-grid {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(6 * 120px + 5 * 16px); /* Altura ajustada para diseño minimalista */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px; /* Espacio para la barra de scroll */
}

/* En móvil, cambiar a layout más simple y minimalista */
@media (max-width: 767px) {
    .page-index .resultados-grid {
        gap: 12px !important;
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
    }
    
    .empresa-card-horizontal {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 16px !important;
        gap: 12px !important;
    }
    
    .card-logo-horizontal {
        width: 56px !important;
        height: 56px !important;
        align-self: flex-start !important;
    }
    
    .card-body-horizontal {
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    .card-body-horizontal h3 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }
    
    .card-body-horizontal .descripcion {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 8px !important;
    }
}

/* Estilos para la barra de scroll personalizada */
.page-index .resultados-grid::-webkit-scrollbar {
    width: 8px;
}

.page-index .resultados-grid::-webkit-scrollbar-track {
    background: #F2F2F7;
    border-radius: 10px;
}

.page-index .resultados-grid::-webkit-scrollbar-thumb {
    background: #C7C7CC;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.page-index .resultados-grid::-webkit-scrollbar-thumb:hover {
    background: #AEAEB2;
}

.empresa-card-horizontal {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #E8E8E8;
    gap: 16px;
    animation: fadeInUp 0.5s ease-out both;
}

.empresa-card-horizontal:nth-child(1) { animation-delay: 0.1s; }
.empresa-card-horizontal:nth-child(2) { animation-delay: 0.2s; }
.empresa-card-horizontal:nth-child(3) { animation-delay: 0.3s; }
.empresa-card-horizontal:nth-child(4) { animation-delay: 0.4s; }

.empresa-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007AFF;
}

.card-logo-horizontal {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F8F8F8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #F0F0F0;
}

.empresa-card-horizontal:hover .card-logo-horizontal {
    transform: scale(1.02);
}

.card-logo-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 3. Más margen a la derecha de la descripción */
.card-body-horizontal {
    flex-grow: 1;
    margin-right: 12px; /* Espacio reducido para diseño minimalista */
    text-align: left;
}

.card-title-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.card-body-horizontal h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    color: #1C1C1E;
    letter-spacing: -0.2px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.card-body-horizontal .descripcion {
    font-size: 14px;
    color: #6E6E73;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 10px;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.card-body-horizontal .ciudad {
    font-size: 13px;
    color: #6E6E73;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.card-body-horizontal .ciudad svg {
    color: #007AFF;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.tag {
    background-color: #F8F8F8;
    color: #1C1C1E;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.tag:hover {
    background-color: #F0F0F0;
    color: #007AFF;
}

/* 2. Botón de flecha circular - Minimalista */
.card-footer-horizontal {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: transparent;
    color: #007AFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.empresa-card-horizontal:hover .card-footer-horizontal {
    background-color: #F0F0F0;
    color: #007AFF;
    transform: translateX(2px);
}

.card-footer-horizontal svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.empresa-card-horizontal:hover .card-footer-horizontal svg {
    transform: translateX(1px);
}

/* --- INICIO: Estilos para el badge de plan en el directorio --- */

/* 1. Posición del badge de plan corregida */
.plan-badge-directorio {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.1px;
}

.plan-badge-directorio.emprendedor {
    background-color: #e5e5ea;
    color: #333;
}

.plan-badge-directorio.empresa {
    color: #007aff;
}

.plan-badge-directorio.certificada {
    color: #ff8f00;
}

.plan-badge-directorio.empresa .badge-icon {
    width: 16px;
    height: 16px;
    fill: #007aff;
}

.plan-badge-directorio.certificada .badge-icon {
    width: 16px;
    height: 16px;
    fill: #ff8f00;
    stroke: #ff8f00;
}

@keyframes gradient-animation-yellow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes pulse-glow-yellow-small { from { box-shadow: 0 0 4px rgba(255, 193, 7, 0.4); } to { box-shadow: 0 0 10px rgba(255, 193, 7, 0.7); } }
/* --- FIN: Estilos para el badge de plan en el directorio --- */
/* --- FIN: ESTILOS PARA EL NUEVO LISTADO HORIZONTAL --- */

/* --- Secciones de Contenido Adicional --- */
/* --- Secciones de Contenido Adicional --- */
.how-it-works-section { 
    background-color: #FFFFFF;
    padding-top: 80px;
    padding-bottom: 100px;
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding-top: 60px;
        padding-bottom: 80px;
    }
}

.how-it-works-section h2 { 
    text-align: center; 
    font-size: 36px; 
    margin-bottom: 48px;
    font-weight: 700;
    color: #1C1C1E;
    letter-spacing: -0.8px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.steps-container { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    text-align: center;
    counter-reset: step-counter;
}

.step-icon { 
    width: 80px; 
    height: 80px; 
    background: linear-gradient(135deg, #0039A6 0%, #0051D5 100%);
    color: white; 
    border-radius: 20px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 32px; 
    font-weight: 700; 
    margin: 0 auto 24px;
    box-shadow: 0 4px 16px rgba(0, 57, 166, 0.25);
    transition: all 0.3s ease;
    position: relative;
}

.step-icon::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #FFFFFF;
    color: #007AFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.steps-container {
    counter-reset: step-counter;
}

.step-icon svg {
    stroke: #FFFFFF;
    stroke-width: 2.5;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.step:hover .step-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 57, 166, 0.35);
}

.step {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }

.step h3 { 
    font-size: 22px; 
    margin-bottom: 12px;
    font-weight: 700;
    color: #1C1C1E;
    letter-spacing: -0.3px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.step p { 
    color: #8E8E93; 
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.final-cta-section { 
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    color: #1C1C1E;
    text-align: center;
    margin: 80px auto;
    padding: 60px 40px;
    border-radius: 24px;
    border: 1px solid #E5E5EA;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.6s ease-out;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0039A6, #D52B1E);
}

.final-cta-section p,
.final-cta-section span {
    color: #1C1C1E;
}

.final-cta-section h2 { 
    font-size: 32px; 
    margin-bottom: 16px;
    font-weight: 700;
    color: #1C1C1E;
    letter-spacing: -0.8px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 17px;
    margin-bottom: 32px;
    color: #8E8E93 !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cta-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1C1C1E;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    background: #F2F2F7;
    border-radius: 12px;
}

.cta-button-large { 
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #0039A6, #D52B1E);
    color: #FFFFFF !important;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(213, 43, 30, 0.3);
    margin-bottom: 16px;
    position: relative;
}

.cta-button-large:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 43, 30, 0.4);
    background: linear-gradient(135deg, #002D85, #B91C1C);
}

.cta-button-large:active {
    transform: translateY(-1px);
}

.cta-note {
    font-size: 14px;
    color: #8E8E93 !important;
    margin-top: 20px;
    font-style: italic;
}

.final-cta-section p { 
    max-width: 600px; 
    margin: 0 auto 32px; 
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.6;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.cta-button { 
    display: inline-block; 
    background: linear-gradient(135deg, #0039A6 0%, #D52B1E 100%);
    color: #FFFFFF; 
    padding: 16px 32px; 
    border-radius: 14px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 17px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(213, 43, 30, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.2px;
}

.cta-button:hover { 
    background: linear-gradient(135deg, #002D85 0%, #B91C1C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(213, 43, 30, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #0039A6, #D52B1E);
    color: white;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(213, 43, 30, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.cta-button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 43, 30, 0.4);
    background: linear-gradient(135deg, #002D85, #B91C1C);
}


/* --- Responsividad Mejorada --- */

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .steps-container { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 2rem;
    }
    .sector-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .coverage-card {
        padding: 24px 32px;
        flex-direction: column;
        text-align: center;
    }
    .coverage-text {
        text-align: center;
    }
    
    .empresa-card-horizontal {
        padding: 18px;
        gap: 14px;
    }
    
    .card-logo-horizontal {
        width: 64px;
        height: 64px;
    }
}

/* Desktop pequeño */
@media (min-width: 992px) and (max-width: 1200px) {
    .steps-container { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

/* Móvil */
@media (max-width: 767px) {
    .main-nav, .auth-buttons { 
        display: none; 
    }
    .steps-container { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    .sector-grid { 
        grid-template-columns: 1fr; 
    }
    .filtros-bar { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 0.75rem;
    }
    .boton-filtrar { 
        margin-left: 0; 
        width: 100%;
    }
    .coverage-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .coverage-text h2 {
        font-size: 24px;
    }
    .coverage-text p {
        font-size: 15px;
    }
    .constellation-container {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    /* Hero section responsive para móvil */
    .hero-section {
        padding: 60px 20px 40px 20px !important;
        min-height: 60vh !important;
    }
    
    .hero-section h1 {
        font-size: 32px !important;
        margin-bottom: 16px !important;
        line-height: 1.2 !important;
    }
    
    .hero-section p,
    .hero-subtitle {
        font-size: 16px !important;
        margin-bottom: 24px !important;
    }
    
    .hero-register-btn {
        padding: 12px 24px !important;
        font-size: 15px !important;
    }
    
    .search-form {
        max-width: 100%;
        padding: 6px;
    }
    
    .search-form input {
        padding: 14px 16px 14px 16px;
        font-size: 16px;
    }
    
    .search-form button {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .carousel-indicator.active {
        width: 20px;
    }
    
    .step-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
    
    .step-icon::before {
        width: 24px;
        height: 24px;
        font-size: 12px;
        top: -6px;
        right: -6px;
    }
    
    .final-cta-section {
        padding: 40px 20px;
        margin: 60px auto;
        border-radius: 20px;
    }
    
    .faq-section {
        padding: 3rem 1rem;
    }
    
    .faq-item {
        padding: 1rem 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
}

.coverage-section-compact {
    padding: 8px 0;
    margin-top: -16px;
    background-color: #F2F2F7;
    animation: fadeInUp 0.6s ease-out;
}

.coverage-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px 48px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border: 1.5px solid #E5E5EA;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.coverage-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.coverage-text {
    text-align: left;
}

.coverage-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1C1C1E;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    text-decoration: none;
    border-bottom: none;
}

.coverage-text p {
    margin-top: 8px;
    font-size: 17px;
    color: #8E8E93;
    font-weight: 400;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

/* --- INICIO: Estilos para la Animación de Constelación --- */
.constellation-container {
    width: 300px;
    height: 100px; /* Altura reducida para un diseño más compacto */
    flex-shrink: 0;
}

#constellation-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
/* --- FIN: Estilos para la Animación de Constelación --- */

/* --- INICIO: Barra de Proceso (Busca, Filtra, Conecta) --- */
.process-bar-section {
    padding: 20px 20px; /* Menos alto */
    background-color: #fff; /* Fondo blanco */
    text-align: center;
}

.process-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px; /* Más espacio entre elementos */
    background: linear-gradient(135deg, #0039A6 0%, #D52B1E 100%); /* Gradiente bandera chilena */
    color: white; /* Texto blanco */
    padding: 15px 30px; /* Menos alto */
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 57, 166, 0.25); /* Sombra azul */
    border: none; /* Sin borde */
}

.process-bar span {
    display: flex;
    align-items: center;
    gap: 10px; /* Más espacio entre icono y texto */
    font-size: 16px; /* Fuentes más pequeñas */
    font-weight: 600;
}

.process-bar span svg {
    stroke: white; /* Iconos blancos */
}

.process-bar .separator {
    font-size: 20px; /* Flecha más pequeña */
    opacity: 0.8; /* Más visible */
    color: white; /* Flecha blanca */
}
/* --- FIN: Barra de Proceso --- */

/* Ocultar barra de proceso en móvil */
@media (max-width: 767px) {
    .process-bar-section,
    .process-bar {
        display: none !important;
    }
}

/* --- Floating Sector Buttons (removed) --- */

.card-arrow-icon {
    stroke: #3b82f6; /* blue-500 */
    fill: none;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.empresa-card-horizontal:hover .card-arrow-icon {
    fill: #3b82f6; /* blue-500 */
    stroke: white; /* Make the arrow inside white for contrast */
}

/* Estilo para destacar empresas certificadas */
.empresa-card-certificada {
    border-left: 3px solid #FFD700; /* Un borde izquierdo dorado */
}


/* Botón flotante para volver arriba */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

/* Móvil: Elevar botón scroll-to-top sobre el menú flotante */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 80px !important; /* Por encima del menú flotante */
        right: 12px !important;
        width: 48px !important;
        height: 48px !important;
        z-index: 1002 !important; /* Por encima del menú flotante (z-index 1001) */
    }
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px);
}

.scroll-arrow-icon {
    stroke: #007AFF;
    fill: none;
    transition: stroke 0.2s ease;
    width: 24px;
    height: 24px;
}

.scroll-to-top-btn:hover .scroll-arrow-icon {
    stroke: #0051D5;
}