/* Reset básico para eliminar márgenes del navegador */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* ==========================================================================
   Sección Hero (Header Principal) - Optimizado
   ========================================================================== */

.hero-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Header (Fondo y espaciado) */
.hero-header {
    position: relative;
    width: 100%;
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; /* NUEVO: Asegura centrado horizontal de hijos */
    padding-top: 5rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .hero-header {
        height: 100vh;
        padding-top: 6rem;
    }
}

/* Capa oscura (Overlay) */
.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Contenedor del Logo - Centrado absoluto en el espacio disponible */
.hero-logo-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    width: 100%; /* Asegura que ocupe todo el ancho para poder centrar */
}

/* Imagen del Logo - Responsiva */
.hero-logo {
    display: block; /* Asegura que margin auto funcione bien */
    width: auto;
    max-width: 90%; /* NUEVO: Evita que el logo se salga en pantallas muy estrechas */
    height: 6rem;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
    object-fit: contain; /* NUEVO: Mantiene la proporción del logo */
}

@media (min-width: 768px) {
    .hero-logo {
        height: 12rem;
    }
}

@media (min-width: 1024px) {
    .hero-logo {
        height: 16rem;
    }
}

/* Contenedor del Banner - Centrado y Responsivo */
.hero-banner-wrapper {
    width: 100%;
    max-width: 1200px; /* NUEVO: Limita el ancho del banner para que no se estire demasiado */
    margin: 0 auto;    /* NUEVO: Centra el contenedor del banner */
    position: relative;
    z-index: 999;
}

/* ==========================================================================
   Sección Nosotros
   ========================================================================== */

/* Contenedor de la sección (Grid Layout) */
.about-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 72rem; /* 1152px */
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem; /* 64px */
    align-items: center;
}

@media (min-width: 768px) {
    .about-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Textos principales */
.about-subtitle {
    color: #0044a5;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    display: block;
    margin-bottom: 0.75rem;
}

.about-title {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

@media (min-width: 768px) {
    .about-title {
        font-size: 3rem;
    }
}

.about-description {
    color: #4b5563; /* Gris */
    font-weight: 300;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

/* Área de Certificaciones */
.about-certifications {
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.certifications-title {
    color: #9ca3af;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

.certifications-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.cert-link {
    display: block;
    border-radius: 0.25rem;
    outline: none;
}

/* Efecto de anillo azul al enfocar con el teclado (accesibilidad) */
.cert-link:focus-visible {
    box-shadow: 0 0 0 2px #0044a5;
}

/* Animación de blanco y negro a color en las imágenes */
.cert-img {
    height: 6rem;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.cert-link:hover .cert-img,
.cert-link:focus .cert-img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Columna Visual (Video e Imagen) */
.about-visual-column {
    display: flex;
    flex-direction: column;
    height: 500px;
    width: 100%;
    gap: 1.5rem;
}

/* Contenedor compartido para Video e Imagen */
.visual-wrapper {
    flex: 1 1 0%;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.video-wrapper {
    background-color: #000;
}

.image-wrapper {
    background-color: #f3f4f6;
}

/* Iframe y Elementos visuales internos */
.visual-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Sección Ofertas y Recompensas
   ========================================================================== */

/* Contenedor principal (Grid Layout) */
.rewards-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 72rem; /* 1152px */
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem; /* 64px */
    align-items: center;
}

@media (min-width: 1024px) { /* Breakpoint 'lg' de Tailwind */
    .rewards-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Textos de encabezado */
.rewards-subtitle {
    color: #0044a5;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    display: block;
    margin-bottom: 0.75rem;
}

.rewards-title {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

@media (min-width: 768px) {
    .rewards-title {
        font-size: 3rem;
    }
}

.rewards-description {
    color: #4b5563;
    font-weight: 300;
    line-height: 1.625;
    margin-bottom: 2rem;
}

/* Tarjeta de puntos */
.rewards-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.rewards-card-title {
    color: #0044a5;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.rewards-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Espaciado entre elementos de la lista */
}

.rewards-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #374151;
    font-weight: 300;
}

.rewards-value {
    font-weight: 500;
    color: #111827;
}

.rewards-value-highlight {
    font-weight: 600;
    color: #0044a5;
}

/* Sección de Descuento */
.rewards-discount {
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.rewards-discount-title {
    color: #111827;
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.75rem;
}

.rewards-discount-text {
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

/* Botón de llamada a la acción (CTA) */
.rewards-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.25rem;
    color: #ffffff;
    background-color: #0044a5;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.rewards-btn:hover {
    background-color: #003380; /* Un tono de azul más oscuro para el hover */
}

.rewards-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0044a5;
}

/* Columna Visual e Imagen */
.rewards-visual {
    position: relative;
    height: 600px;
    background-color: #f3f4f6;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.rewards-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease-in-out;
}

/* Efecto hover sobre el contenedor para hacer zoom en la imagen */
.rewards-visual:hover .rewards-img {
    transform: scale(1.05);
}

/* Overlay degradado */
.rewards-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* Gradiente equivalente a from-black/80 via-black/20 to-transparent */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    pointer-events: none; /* Para que no interfiera si hicieras la imagen clickeable */
}

.rewards-overlay-tag {
    color: #93c5fd; /* blue-300 */
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.rewards-overlay-text {
    color: #ffffff;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.375;
    margin: 0;
}