/*
==========================================================================
    1. VARIABLES GLOBALES Y RESET BÁSICO
==========================================================================
*/
:root {
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --color-text: #333;
    --color-text-light: #6c757d;
    --color-dark: #212529;
    --color-primary: #0d6efd; /* Color de Bootstrap, puedes cambiarlo */
    --color-light-gray: #f8f9fa;
    --section-padding: 6rem 0;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Estilos para Componentes de Tipografía --- */
.section-title {
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

section {
    padding: var(--section-padding);
}

/*
==========================================================================
    2. ESTILOS DE COMPONENTES REUTILIZABLES
==========================================================================
*/

/* --- Barra de Navegación (Header) --- */
.navbar-brand span {
    vertical-align: middle;
}
.navbar .nav-link {
    font-family: var(--font-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-text);
}
.navbar .nav-link:hover {
    color: var(--color-primary);
}

/*
==========================================================================
    3. ESTILOS ESPECÍFICOS DE SECCIONES
==========================================================================
*/

/* --- Sección Héroe --- */
.hero-section {
    background-color: var(--color-light-gray);
}
.hero-text-content .lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}
.hero-text-content .btn-dark {
    padding: 12px 30px;
    font-weight: bold;
}

/* --- Sección "Find Your School" --- */
.find-school-section {
    background-color: #fff;
}
.school-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
}
.school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}
.school-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}
.school-card-img {
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}
.school-card-title {
    font-size: 1.1rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Permite que el título ocupe espacio */
}
.school-card-phone {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.school-card-btn {
    margin-top: auto; /* Empuja el botón hacia abajo */
}

/* --- Sección "Customization Features" --- */
.customization-section {
    background-color: var(--color-light-gray);
}
.feature-box {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    border-top: 5px solid;
    height: 100%;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}
.feature-box.border-red { border-color: #dc3545; }
.feature-box.border-green { border-color: #198754; }
.feature-box.border-blue { border-color: #0d6efd; }
.feature-box.border-yellow { border-color: #ffc107; }

/* --- Estilos para la Sección "Why Choose Us" --- */
.why-choose-us-section {
    background-color: #fff;
}

.why-choose-us-section .card {
    min-height: 500px; /* Asegura una altura mínima para la sección */
}

.why-choose-us-section .card-img {
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio sin deformarse */
}

.why-choose-us-section .card-img-overlay {
    /* Este es el efecto "tenue": un fondo blanco con 85% de opacidad */
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--color-text); /* Volvemos al color de texto oscuro */
}

/* En pantallas más pequeñas, hacemos que el overlay cubra todo */
@media (max-width: 991.98px) {
    .why-choose-us-section .card-img-overlay {
        background-color: rgba(255, 255, 255, 0.9);
    }
    .why-choose-us-section .text-content-wrapper {
        padding: 1rem;
    }
}

.why-choose-us-section .text-content-wrapper {
    padding: 2rem;
}

.why-choose-us-section .feature-item {
    margin-bottom: 1.5rem;
}

.why-choose-us-section .feature-item i {
    color: var(--color-primary);
}

/* --- Sección "Find Your School" --- */

.find-school-section {
    background-color: #fff;
}

.school-search-container {
    border-radius: 50px;
    overflow: hidden;
}
.school-search-container .form-control {
    border-radius: 50px;
}
.school-search-container .form-control:focus {
    box-shadow: none; /* Quita el resplandor azul de Bootstrap */
}

.school-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    border-radius: 1rem;
    background-color: #fff;
    overflow: hidden;
    height: 100%;
}
.school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1)!important;
}
.school-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    text-align: center;
}
.school-card-img {
    height: 140px;
    object-fit: contain;
    margin-bottom: 1rem;
}
.school-card-title {
    font-size: 1.1rem;
    flex-grow: 1; /* Ocupa el espacio disponible, empujando el resto hacia abajo */
    margin-bottom: 0.5rem;
}
.school-card-phone {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.school-card-btn {
    margin-top: auto; /* Empuja el botón al final del contenedor flex */
    background-color: var(--color-dark);
    color: #fff;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.school-card-btn:hover {
    background-color: #555;
    color: #fff;
}

/* --- Sección "Customization Features" --- */
.customization-section {
    position: relative;
    background-image: linear-gradient(rgba(20, 20, 20, 0.7), rgba(20, 20, 20, 0.7)), url('images/img04.jpg'); /* Reemplaza 'img04.jpg' por tu imagen de los niños */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax: la imagen se queda fija mientras se hace scroll */
}

.customization-section .section-title {
    color: #fff;
    margin-bottom: 3rem;
}

.customization-section .feature-box {
    background-color: rgba(255, 255, 255, 0.95); /* Fondo de tarjeta casi opaco */
    color: var(--color-text); /* Texto oscuro para contraste */
    padding: 2rem 1.5rem;
    border-radius: 0.5rem;
    border-top: 5px solid;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    transition: transform 0.3s ease;
    text-align: center;
}

.customization-section .feature-box:hover {
    transform: translateY(-10px);
}

.customization-section .feature-box .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Asignamos el color del borde y del icono */
.customization-section .feature-box.border-red { border-color: #dc3545; }
.customization-section .feature-box.border-red .feature-icon { color: #dc3545; }

.customization-section .feature-box.border-green { border-color: #198754; }
.customization-section .feature-box.border-green .feature-icon { color: #198754; }

.customization-section .feature-box.border-blue { border-color: #0d6efd; }
.customization-section .feature-box.border-blue .feature-icon { color: #0d6efd; }

.customization-section .feature-box.border-yellow { border-color: #ffc107; }
.customization-section .feature-box.border-yellow .feature-icon { color: #ffc107; }

.customization-section .feature-box h5 {
    color: var(--color-light-gray);
}

.customization-section .feature-box p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}


/* --- Sección "Why Choose Us" --- */
.why-choose-us-section {
    background-color: var(--color-light-gray); /* Mantenemos un fondo sutil */
}

.benefit-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    width: 100%;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1)!important;
    border-color: var(--color-primary);
}

.benefit-card .benefit-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.benefit-card h5 {
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Sección "Contact Us" --- */
.contact-section {
    position: relative;
    background-image: linear-gradient(rgba(20, 20, 20, 0.8), rgba(20, 20, 20, 0.8)), url('images/contact-bg.jpg'); /* Reemplaza con tu imagen de fondo */
    background-size: cover;
    background-position: center;
}

.contact-section h2 {
    color: #fff;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}
.contact-info i {
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-form .form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--color-dark);
}
.contact-form .form-control::placeholder {
    color: #aaa;
}

.btn-submit-custom {
    background-color: #ffc107; /* Amarillo/Naranja como en tu diseño */
    color: var(--color-dark);
    font-weight: 700;
    padding: 12px 30px;
    border: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}
.btn-submit-custom:hover {
    background-color: #ffca2c;
    color: var(--color-dark);
}

.contact-info-list li {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.contact-info-list i {
    font-size: 1.2rem;
    margin-top: 5px; /* Alinea visualmente el icono con la primera línea de texto */
    width: 25px; /* Ancho fijo para que todo el texto se alinee perfectamente */
}

.holiday-note {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}


/* --- Sección 6 "Brands We Carry" --- */
.brands-section {
    background-color: var(--color-dark);
    color: #fff;
}

.brands-section .section-title {
    color: #fff;
}

.brands-section .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.brand-logos img {
    height: 80px; /* Ajusta la altura de los logos según necesites */
    filter: grayscale(100%) opacity(60%);
    transition: all 0.3s ease;
}

.brand-logos a:hover img {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.1);
}

/* --- Página de Seguimiento de Órdenes (Track Order) --- */
.track-order-section {
    background-color: var(--color-light-gray); /* Usa el mismo gris claro que la sección Héroe */
}

/*
==========================================================================
    4. ESTILOS ESPECÍFICOS DE PÁGINA: ABOUT US
==========================================================================
*/

/* --- Sección Héroe de "About Us" --- */
.about-hero-section {
    background-color: var(--color-light-gray);
}

/* --- Sección de Valores --- */
.values-section .value-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    height: 100%;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.values-section .value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1)!important;
}
.values-section .value-card .value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.values-section .value-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* --- Sección "Nuestra Historia" --- */
.our-story-section {
    background-color: #fff;
}

/* --- Sección de Llamado a la Acción (CTA) --- */
.cta-section {
    padding: 5rem 0;
}

/*
==========================================================================
    5. ESTILOS ESPECÍFICOS DE PÁGINA: DETALLES DE LA ORDEN
==========================================================================
*/

/* --- Estilos para la Vista en Pantalla --- */
.invoice-container {
    background-color: #fff;
    padding: 2rem;
    border: 1px solid #dee2e6;
}
.section-header {
    background-color: #343a40;
    color: white;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 1rem;
    font-family: var(--font-secondary);
    text-transform: none; /* Sobrescribe la regla global de mayúsculas */
}
.section-body {
    padding: 15px;
    border: 1px solid #dee2e6;
    border-top: none;
    font-size: 0.9rem;
    line-height: 1.6;
}
.item-table {
    font-size: 0.9em;
}
.item-table img {
    max-width: 50px;
    height: auto;
    border-radius: 4px;
}

/* --- Estilos Específicos para la Impresión --- */
@media print {
    body {
        background-color: #fff !important; /* Asegura fondo blanco al imprimir */
    }

    /* Ocultamos todo lo que no sea el área de impresión */
    body > *:not(#printable-area) {
        display: none !important;
    }
    
    /* Nos aseguramos de que el área de impresión y su contenido sean visibles */
    #printable-area, #printable-area * {
        visibility: visible;
    }

    /* Posicionamos el área de impresión para que ocupe toda la página */
    #printable-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    /* Forzamos que los colores de fondo se impriman (importante para .section-header) */
    .section-header {
        background-color: #343a40 !important;
        color: white !important;
        -webkit-print-color-adjust: exact; /* Para Chrome/Safari */
        print-color-adjust: exact; /* Estándar */
    }
}