/* ------------------------------------------------------------------- */
/* Estilos para la Plantilla de la Página de Inicio (Home Directorio)  */
/* Versión: 1.1                                                        */
/* ------------------------------------------------------------------- */

:root {
    --ccl-color-primary: #14b8a6; /* Turquesa Vibrante */
    --ccl-color-primary-hover: #0d9488;
    --ccl-color-surface-main: #0f172a; /* Azul noche profundo */
    --ccl-color-surface-card: #1e293b; /* Azul grisáceo oscuro */
    --ccl-color-border: #334155;
    --ccl-color-text-base: #f1f5f9;
    --ccl-color-text-muted: #94a3b8;
    --ccl-font-family: 'Inter', sans-serif;
}

/* --- Base y Contenedor --- */
body {
    /* CORRECCIÓN: Se elimina el margen por defecto del navegador para evitar espacios en los bordes. */
    margin: 0; 
    font-family: var(--ccl-font-family);
    background-color: var(--ccl-color-surface-main);
    color: var(--ccl-color-text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ccl-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --- Hero Section --- */
.ccl-home-hero {
    position: relative;
    /* CORRECCIÓN: La altura se cambia de 85vh a 100vh para que ocupe toda la altura visible. */
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.ccl-hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#ccl-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ccl-hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 15%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.6) 100%);
}

.ccl-hero-content {
    max-width: 800px;
    animation: ccl-fadeInUp 0.8s ease-out forwards;
}

.ccl-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* --- INICIO DE LA CORRECCIÓN --- */
/* Se reemplaza la regla específica por una general,
   igual que en el archivo style-directorio.css que sí funciona. */
.ccl-highlight {
    color: var(--ccl-color-primary);
}
/* --- FIN DE LA CORRECCIÓN --- */

.ccl-hero-subtitle {
    font-size: 1.125rem;
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    color: #e2e8f0;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.ccl-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--ccl-color-primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 0.875rem 2.5rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
}

.ccl-hero-cta:hover {
    background-color: var(--ccl-color-primary-hover);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.4);
}

/* --- Directorio de Estados --- */
.ccl-directorio-section {
    padding: 5rem 0;
    background-color: var(--ccl-color-surface-main);
}

.ccl-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.ccl-section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.ccl-section-subtitle {
    font-size: 1.125rem;
    color: var(--ccl-color-text-muted);
    max-width: 45rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid de Estados */
.ccl-states-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.ccl-state-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--ccl-color-surface-card);
    border: 1px solid var(--ccl-color-border);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ccl-state-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--ccl-color-primary);
    box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.1), 0 8px 10px -6px rgba(20, 184, 166, 0.1);
}

.ccl-state-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ccl-state-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ccl-color-text-base);
    margin: 0;
}

.ccl-city-count {
    font-size: 0.875rem;
    color: var(--ccl-color-primary);
    font-weight: 500;
}
.ccl-city-count-soon {
    font-size: 0.875rem;
    color: var(--ccl-color-text-muted);
    font-weight: 500;
    font-style: italic;
}


.ccl-state-card-arrow {
    font-size: 1.25rem;
    color: var(--ccl-color-text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.ccl-state-card:hover .ccl-state-card-arrow {
    transform: translateX(5px);
    color: var(--ccl-color-primary);
}

.ccl-no-states-message {
    text-align: center;
    color: var(--ccl-color-text-muted);
    padding: 2rem;
    background-color: var(--ccl-color-surface-card);
    border: 1px dashed var(--ccl-color-border);
    border-radius: 0.5rem;
}

/* --- Animaciones y Media Queries --- */
@keyframes ccl-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 640px) {
    .ccl-states-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .ccl-hero-title { font-size: 3.25rem; }
    .ccl-hero-subtitle { font-size: 1.25rem; }
    .ccl-section-title { font-size: 2.25rem; }
    .ccl-directorio-section { padding: 6rem 0; }
}

@media (min-width: 1024px) {
    .ccl-states-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ccl-hero-title { font-size: 3.75rem; }
}
