html {
    overflow-x: hidden; 
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4;
    max-width: 100%;
    overflow-x: hidden;
}

/* --- Navbar Styles --- */
.navbar {
    background-color: #000; /* Negro */
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 60px;
    position: fixed;
    z-index: 1000;
    width: 96%;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.brand-logo-link {
    display: flex; /* Para asegurar que el enlace no tenga espacio extra alrededor de la imagen */
    height: 100%; /* Si quieres que el enlace ocupe la altura disponible */
}

.brand-logo {
    height: 40px; /* Define la altura de tu logo. Ajusta según tus necesidades. */
    /* Puedes usar 'width: auto;' para mantener la proporción de la imagen. */
    width: auto;
    max-height: 100%; /* Asegura que no se desborde del navbar si el navbar tiene una altura fija */
    vertical-align: middle; /* Ayuda a alinear la imagen si hay texto alrededor */
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px; /* Ajusta este valor para más o menos espacio entre los elementos */
}

.nav-item {
    position: relative;
    display: flex; /* Mantenemos flex para alinear el nav-link y la flecha */
    align-items: center;
}

.nav-link {
    display: block;
    color: white;
    text-align: center;
    padding: 20px 0; /* Padding solo vertical */
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.95em;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap; /* Previene saltos de línea */
}

.nav-link:hover {
    background-color: #1a1a1a;
}

/* Hamburger menu icon styles */
.hamburger {
    display: none; /* Hidden by default, shown on smaller screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above the nav-list when opened */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger to X animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* Media query for mobile navigation */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px; /* Adjust padding for smaller screens */
        width: calc(100% - 40px); /* Adjust width to account for padding */
    }

    .hamburger {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-list {
        position: fixed;
        top: 60px; /* Below the fixed navbar */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px); /* Full height of viewport minus navbar height */
        background-color: #000; /* Dark background for the mobile menu */
        flex-direction: column;
        justify-content: flex-start; /* Align items to the top */
        align-items: center; /* Center horizontally */
        transform: translateX(100%); /* Hide menu off-screen to the right */
        transition: transform 0.3s ease-in-out;
        padding-top: 20px; /* Add some padding from the top */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .nav-list.active {
        transform: translateX(0); /* Slide menu into view */
    }

    .nav-item {
        margin: 15px 0; /* Space out links vertically */
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 15px 0; /* Adjust padding for mobile links */
        width: 100%; /* Make links full width of the menu */
        font-size: 1.2em; /* Larger font for better touchability */
    }

    .nav-link:hover {
        background-color: #1a1a1a; /* Keep hover effect for touch feedback */
    }
}


/* --- Hero Section Styles --- */
.hero-section {
    position: relative;
    width: 100vw; /* Asegura 100% del ancho del viewport */
    height: 115vh;
    background: url('/images/esteban/esteban.gif') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    color: white;
    box-sizing: border-box;
    overflow-x: hidden; /* Evita scroll horizontal */
}

.hero-section * {
    box-sizing: border-box; /* Evita que padding/margin rompan el ancho */
    max-width: 100%;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 4.5em;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
}

.start-now-button {
    background-color: white;
    color: black;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-now-button:hover {
    background-color: #e0e0e0;
}

.video-preview-container {
    position: relative;
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 5%;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: black;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.video-thumbnail .mi-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* --- Responsive Adjustments for Hero Section --- */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5em;
    }

    .video-preview-container {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 50px 0; /* Eliminado el padding lateral */
        height: auto;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .video-preview-container {
        width: 90%; /* Ocupa casi todo el ancho en móvil */
        margin-right: 0;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .start-now-button {
        padding: 10px 25px;
        font-size: 1em;
    }

    .video-preview-container {
        width: 100%; /* 100% real en móviles pequeños */
    }

    .video-title {
        font-size: 1em;
    }

    .video-subtitle {
        font-size: 0.8em;
    }

    .watch-button {
        padding: 6px 10px;
        font-size: 0.8em;
    }
}

/* --- Sección de la Trivia --- */
.trivia-section {
    background-color: #f0f2f5; /* Un fondo gris claro para la sección */
    padding: 60px 20px;
}

.trivia-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* Habilita flexbox para las dos columnas */
    gap: 40px; /* Espacio entre las columnas */
    align-items: center;
}

.trivia-text-content {
    flex: 1; /* Ocupa el espacio disponible */
    max-width: 600px;
}

.trivia-image-content {
    flex: 1; /* Ocupa el espacio disponible */
    display: flex;
    justify-content: flex-end; /* Alinea la imagen a la derecha */
}

.trivia-title {
    font-size: 2.3em;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #000;
}

.trivia-paragraph {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
    text-align: justify;
}

.highlight-text {
    color: #ff0000; /* Color amarillo para la frase destacada */
    font-weight: bold;
    text-align: justify;
}

.trivia-question {
    font-size: 1.6em;
    font-weight: 700;
    color: #000;
}

.trivia-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Media Queries para dispositivos pequeños */
@media (max-width: 768px) {
    .trivia-container {
        flex-direction: column; /* Apila las columnas verticalmente */
    }

    .trivia-image-content {
        justify-content: center; /* Centra la imagen en pantallas pequeñas */
    }
}

/* --- Timeline Section Styles --- */
.timeline-section {
    padding: 80px 40px;
    background-color: #ffffff;
    text-align: center;
}

.timeline-section h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 60px;
}

.timeline-container {
    position: relative;
    width: 70%;
    margin: 0 auto;
    height: 30px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, red, lightgray, gray);
    transform: translateY(-50%);
    border-radius: 2px;
}

.timeline-point {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: gray;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-point:hover {
    transform: translateY(-50%) scale(1.3);
}

.timeline-point.active {
    background-color: red;
    transform: translateY(-50%) scale(1.4);
}

.point-label {
    position: absolute;
    top: 35px;
    color: #555;
    font-weight: bold;
    font-size: 0.9em;
    white-space: nowrap;
}

.timeline-content-container {
    margin-top: 60px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.timeline-content {
    display: none;
    text-align: left;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    align-items: center;
    gap: 30px;
}

.timeline-content.active {
    display: flex;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.timeline-content img {
    width: 400px;
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
}

.timeline-content .content-text h3 {
    font-size: 1.9em;
    color: #db3434;
    margin-top: 0;
    margin-bottom: 15px;
}

.timeline-content .content-text p {
    font-size: 1.05em;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

@media (max-width: 992px) {
    .timeline-content-container {
        width: 90%;
    }

    .timeline-content {
        flex-direction: column;
        text-align: center;
    }

    .timeline-content img {
        width: 100%;
        max-width: 400px;
        margin-bottom: 10px;
    }

    .timeline-point .point-label {
        display: none;
        white-space: normal;
        font-size: 0.5em;
        text-align: center;
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-point.active .point-label {
        display: block;
    }
}

@media (max-width: 768px) {
    .timeline-section {
        padding: 60px 20px;
    }

    .timeline-container, .timeline-content-container {
        width: 95%;
    }
}

/* Styles for the new History Call-to-Action section in esteban.html */
.history-cta-section {
    width: 100%;
    background-color: #ffffff00;
    color: #333; /* Changed text color for better contrast on white background */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.history-cta-section::before {
    content: '';
    position: absolute;
    top: -50px; /* Adjust to control the curve */
    left: 0;
    width: 100%;
    height: 100px; /* Height of the curve */
    background: radial-gradient(ellipse at top, rgba(0,0,0,0.1) 0%, transparent 70%); /* Adjusted for white background */
    transform: scaleY(0.5); /* Flatten the ellipse for a subtle curve */
    z-index: 0;
    opacity: 0.3;
}

.history-cta-section h2 {
    font-size: 3em;
    margin-bottom: 0;
    color: #000; /* Changed to black for better contrast */
    position: relative;
    z-index: 1;
}

.history-cta-section p {
    font-size: 1.3em;
    max-width: 800px;
    margin-bottom: 20px;
    color: #555; /* Adjusted for better contrast */
    position: relative;
    z-index: 1;
}

.history-cta-button {
    background: linear-gradient(50deg, #ff0000, #ad4444); /* Vibrant gradient */
    color: white;
    padding: 18px 45px;
    font-size: 1.4em;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.history-cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 123, 255, 0.6);
}

.history-cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    transform: skewX(-20deg);
}

.history-cta-button:hover::after {
    left: 100%;
}

@media (max-width: 768px) {
    .history-cta-section {
        padding: 60px 15px;
        gap: 20px;
    }
    .history-cta-section h2 {
        font-size: 2.2em;
    }
    .history-cta-section p {
        font-size: 1em;
    }
    .history-cta-button {
        font-size: 1.2em;
        padding: 15px 35px;
    }
}


/* Specific styles for the history page (historia.html) */
.history-hero {
    position: relative;
    width: 100%;
    height: 90vh; /* Shorter hero for internal page */
    background: url('images/esteban/esteban.gif') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding-top: 100px; /* To account for fixed navbar */
}

.history-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 0;
}

.history-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.history-hero-content h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 40px;
}

.history-section {
    padding: 80px 5%;
    background-color: #ffffff;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1.1em;
}

.history-section h2 {
    font-size: 2.5em;
    color: #000;
    margin-bottom: 40px;
    text-align: center;
}

.history-paragraph {
    margin-bottom: 20px;
    text-align: justify;
}

.history-quote {
    font-style: italic;
    text-align: center;
    margin: 40px 0;
    font-size: 1.3em;
    color: #555;
}

.history-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.history-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 45%; /* Two images per row */
    min-width: 300px; /* Minimum width for images */
}

@media (max-width: 768px) {
    .history-hero {
        height: 40vh;
    }
    .history-hero-content h1 {
        font-size: 2.5em;
    }
    .history-section {
        padding: 40px 3%;
    }
    .history-section h2 {
        font-size: 2em;
    }
    .history-paragraph {
        font-size: 1em;
    }
    .history-image-container img {
        width: 90%; /* One image per row on smaller screens */
    }
}

/* --- Sección de la Cita con Video de Fondo --- */
.quote-section {
    position: relative; /* Contenedor para el video y la capa de superposición */
    height: 100vh; /* Ocupa la altura completa del viewport */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Oculta cualquier parte del video que se desborde */
    color: #fff;
    padding: 1px;
}

.quote-text{
    text-align: justify;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video cubra todo el contenedor */
    transform: translate(-50%, -50%); /* Centra el video */
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Capa semitransparente negra */
    z-index: -1;
}

.quote-container {
    position: relative;
    z-index: 1; /* Asegura que el texto esté por encima de la capa de superposición */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.quote-title {
    color: #f0f0f0;
    font-size: 2.8em; /* Tamaño de fuente para el título */
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Sombra para mejor legibilidad */
}

.quote-text {
    font-size: 1.2em; /* Tamaño de fuente para el párrafo */
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .quote-title {
        font-size: 2em;
        line-height: 1.2; /* Ajusta la altura de línea para evitar desbordes */
    }
    .quote-text {
        font-size: 1em;
    }
    
    .quote-container {
        /* Nuevas reglas para centrar el contenido en móvil */
        width: 90%; /* Limita el ancho del contenedor para que no se pegue a los bordes */
        margin: 0 auto; /* Centra el contenedor horizontalmente */
        padding: 0; /* Elimina cualquier padding que pueda causar desbordamiento */
    }
}

/* Agrega una media query adicional para pantallas aún más pequeñas */
@media (max-width: 480px) {
    .quote-title {
        font-size: 1.5em; /* Reduce el tamaño de la fuente para pantallas más pequeñas */
    }
    .quote-text {
        font-size: 0.9em; /* Reduce el tamaño del texto para mejor ajuste */
    }
}

/* --- Sección de Eventos (Proyectos) --- */
.events-section {
    width: 100%;
    padding: 50px 0;
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

/* Contenedor principal para alinear el carrusel y las flechas */
.events-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Espacio entre las flechas y el carrusel */
    padding: 0 20px; /* Agregamos padding para evitar que las flechas se peguen a los bordes */
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px 40px 50px;
}

.events-title-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.events-header h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.events-carousel-container {
    flex: 1; /* Permite que el carrusel ocupe el espacio restante */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Oculta la barra de desplazamiento en Webkit (Chrome, Safari) */
.events-carousel-container::-webkit-scrollbar {
    display: none;
}

.events-carousel {
    display: flex;
    gap: 25px;
    padding-bottom: 20px;
    padding-left: 15px; /* Agregado para mejor espaciado en móviles */
}

.event-card {
    flex: 0 0 350px; /* Un ancho fijo ayuda al desplazamiento */
    height: 450px;
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
    scroll-snap-align: start;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card .card-image {
    position: absolute;
    top: 8;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* Cambiado a 'cover' para que la imagen no se recorte */
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.event-card:hover .card-image {
    filter: brightness(0.9);
}

.event-card .card-content {
    position: relative;
    z-index: 1;
    padding: 25px;
    text-align: left;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding-top: 80px;
}

.event-card .card-prefix {
    font-size: 0.9em;
    text-transform: uppercase;
    color: #bbb;
    margin-bottom: 5px;
    display: block;
}

.event-card h3 {
    font-size: 1.5em;
    font-weight: 1000;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.event-card p {
    font-size: 0.9em;
    color: #ccc;
    margin: 0;
    line-height: 1.3;
}

.events-pagination-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #555;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* --- Estilos para las flechas de navegación --- */
.arrow-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 2em;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0; /* Evita que la flecha se encoja */
}

.arrow-btn:hover {
    background-color: #fff;
    transform: scale(1.1);
}

/* --- Ajustes Responsivos --- */
@media (max-width: 768px) {
    .events-carousel-wrapper {
        padding: 0 10px; /* Reducimos el padding en móvil */
    }

    .events-header {
        padding: 0 20px 40px 20px;
    }
    
    .event-card {
        max-width: 300px; /* Reducimos el tamaño de la tarjeta en móvil */
        flex: 0 0 auto;
    }
    
    .events-carousel-container {
        padding: 0;
    }

    .arrow-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5em;
    }
}

/* --- Servicios Section Styles --- */
/* Animación específica para la sección #servicios */
#servicios {
    animation-delay: 0.4s;
}

/* ----- Sección general ----- */
.section {
    padding: 2rem 0;
}

.section-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem; /* Padding lateral general para simetría */
}

/* ----- Títulos ----- */
.section h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #000000;
    margin-bottom: 2rem;
}

/* Ajuste general para h2 si se usa fuera de .section */
h2 {
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: #000000;
}

/* ----- Párrafos ----- */
.section p {
    font-size: 1.3rem;
    color: #000000;
    margin-bottom: 2rem;
    text-align: justify;
    line-height: 1.6;
    letter-spacing: 0.04rem;
}

/* ----- Imágenes dentro de .section-content ----- */
.section-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
    display: block;
    margin: 0 auto; /* Centrado por defecto en escritorio */
}

/* ----- Estilos de grid ----- */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
}

/* Ajustes específicos para servicios */
#servicios .grid.grid-2 {
    margin-bottom: 5rem;
    gap: 5rem;
}

/* ----- RESPONSIVE (Pantallas pequeñas) ----- */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section h2,
    h2 {
        font-size: 1.6rem !important;
        text-align: center;
    }

    .section p {
        font-size: 1.1rem;
        text-align: left;
        text-align: justify;
    }

    .section-content {
        padding: 0 1rem;
    }

    /* Ajuste de imagen para móvil: desplazamiento a la derecha */
    .section-content img {
        width: 90%;         /* Reduce tamaño ligeramente */
        margin-left: 5%;    /* Desplaza hacia la derecha */
    }
}


/* Pillars Container */
.pillars-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 95%;
    margin: 0 auto;
    background-color: #fff;
    padding: 60px; /* Consistent padding */
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    gap: 40px; /* Consistent gap */
    overflow-x: hidden; 
}

/* Left Content Area (Pillars List) */
.pillars-content-left {
    flex: 1;
    padding-right: 20px; /* Consistent padding */
    text-align: left;
}

.pillars-content-left .subtitle {
    font-size: 0.85em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 25px;
    letter-spacing: 1.4px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.pillars-content-left .subtitle span {
    font-size: 0.6em;
    margin-right: 10px;
    line-height: 0;
    color: #000;
}

.pillars-content-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pillars-content-left ul li {
    font-size: 2.31em;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #000; /* All black by default */
    transition: color 0.3s ease, margin-left 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10px;
}

/* On hover, the text turns gray */
.pillars-content-left ul li:hover {
    color: #b0b0b0; /* Gray color on hover */
    margin-left: 10px; /* Slight indent on hover */
}

/* Active class for image update, but not for text color change anymore */
.pillars-content-left ul li.active {
    color: #000; /* Stays black, ensuring the hovered item is black */
}

/* Explore Button Styling */
.explore-btn {
    font-size: 0.3em;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    background-color: #e0e0e0;
    padding: 8px 15px;
    border-radius: 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Show only on hover of the parent li */
.pillars-content-left ul li:hover .explore-btn {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.explore-btn:hover {
    background-color: #d0d0d0;
}

/* Right Image Area */
.pillars-image-right {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.pillars-image-right img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    transition: opacity 0.5s ease-in-out;
}

/* Responsive Adjustments (also adjusted to use px for some spacing) */
@media (max-width: 992px) {
    .pillars-section {
        flex-direction: column;
        padding: 40px; /* Consistent padding */
        gap: 30px; /* Consistent gap */
    }

    .pillars-content-left {
        padding-right: 10px; /* Consistent padding */
        padding-bottom: 30px; /* Consistent padding */
        text-align: center;
    }

    .pillars-content-left ul li {
        font-size: 2.6em;
        margin-bottom: 10px;
        justify-content: center;
        padding-right: 0px; /* Consistent padding */
    }

    .pillars-image-right {
        padding-right: 15px; /* Consistent padding */
    }

    .explore-btn {
        position: static;
        transform: none;
        margin-left: 15px; /* Consistent margin */
    }
}

@media (max-width: 768px) {
    .pillars-content-left ul li {
        font-size: 2.2em;
    }
}

@media (max-width: 480px) {
    .pillars-section {
        padding: 7px; /* Consistent padding */
        gap: 3px; /* Consistent gap */
        flex-direction: column; /* Asegura que sea columna */
        overflow-x: hidden; /* Evita scroll horizontal */
    }

    .pillars-content-left ul li {
        font-size: 1.6em;
        /* Nuevo: Flexbox para alinear el nombre y el botón */
        display: flex; 
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px; /* Junta más los elementos */
        margin-bottom: 15px; /* Espacio entre los temas */
    }

    /* Elimina el efecto de hover en móviles */
    .pillars-content-left ul li:hover {
        color: inherit; /* Vuelve al color por defecto */
        transform: none; /* Elimina la animación de desplazamiento */
    }

    .pillars-content-left .subtitle {
        font-size: 0.75em;
    }

    /* Nuevo: Muestra el botón por defecto en móvil */
    .explore-btn {
        font-size: 0.6em;
        padding: 6px 12px;
        margin: 0; /* Elimina cualquier margen que cause problemas */
        white-space: nowrap;
        opacity: 1; /* Hace el botón visible */
        visibility: visible; /* Hace el botón visible */
        transform: none; /* Elimina la animación de desplazamiento */
    }
}

/* --- Modal Specific Styles (Used for both Pillars and Events) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of everything */
    visibility: hidden; /* Hidden by default */
    opacity: 0; /* Hidden by default */
    transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.modal-overlay.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 500px; /* Max width for the modal */
    width: 90%; /* Responsive width */
    max-height: 90vh; /* Max height for scrolling if content is long */
    overflow-y: auto; /* Enable scrolling for long content */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content within modal */
    text-align: center; /* Center text by default */
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5em; /* Large X */
    font-weight: 200; /* Thin X */
    color: #666;
    cursor: pointer;
    line-height: 1; /* Align 'x' properly */
    padding: 0; /* Remove default button padding */
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #333;
}

.modal-content h2 {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Remove extra space below image */
}

.modal-content p {
    text-align: justify;
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    text-align: left; /* Description text aligns left */
}

/* Responsive adjustments for modal */
@media (max-width: 600px) {
    .modal-content {
        padding: 20px;
    }
    .modal-close-btn {
        font-size: 2em;
        top: 10px;
        right: 10px;
    }
    .modal-content h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .modal-content p {
        font-size: 0.9em;
    }
}

/* --- Brands Section Styles --- */
.brands-section {
    padding: 60px 20px;
    background-color: #ffffff; /* Fondo claro para contraste */
    text-align: center;
}

.brands-section h1,
.brands-section h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.2;
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px; /* Unificado el margin-bottom */
}

.brands-grid .brand-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px; /* Padding ligeramente aumentado para simetría */
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    width: 100%;
}

.brands-grid .brand-item .main-brand-video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    /* Se mantiene box-shadow en el contenedor */
}

.brands-text {
    margin-bottom: 80px;
    text-align: center;
}

.brands-text .brand-statement {
    font-size: 2em;
    padding: 100px;
    margin-bottom: 20px; /* Un poco más de espacio para respirar */
    font-weight: 700;
    text-align: justify;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.companies-grid img {
    max-width: 100%;
    height: auto;
    transition: filter 0.3s ease;
}

.companies-grid img:hover {
    filter: grayscale(0%) brightness(100%);
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .brands-section {
        padding: 50px 20px; /* Más espacio horizontal para tablets */
    }

    .brands-section h1,
    .brands-section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .brands-text .brand-statement {
        font-size: 1.1em;
        margin-bottom: 12px;
    }

    .brands-grid {
        margin-bottom: 30px;
    }

    .brands-grid .brand-item {
        padding: 20px;
        max-width: 100%;
    }

    .companies-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .brands-section {
        padding: 40px 15px;
    }

    .brands-section h1,
    .brands-section h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    /* Ajustes para el texto */
    .brands-text {
        margin: 0; /* Elimina márgenes extra */
        text-align: left; /* Alinea el texto a la izquierda para mejor lectura */
        padding: 0 15px; /* Añade un padding lateral para que el texto no se pegue a los bordes */
    }

    /* Ajustes para el párrafo principal */
    .brands-text .brand-statement {
        font-size: 1.2em; /* Aumenta el tamaño de la fuente para que sea más legible */
        margin-bottom: 15px; /* Ajusta el espacio debajo del párrafo */
        text-align: justify; /* Asegura la alineación a la izquierda */
        padding: 0; /* Elimina cualquier padding interno que pueda desalinear el texto */
    }

    /* Ajustes para las imágenes */
    .brands-text img {
        display: block; /* Asegura que la imagen sea un bloque */
        margin: 0 auto 20px; /* Centra la imagen y agrega espacio debajo */
        max-width: 100%; /* Ajusta la imagen al ancho del contenedor */
        height: auto;
    }

    .brands-grid {
        margin-bottom: 25px;
        flex-direction: column; /* Mejor en columna para móviles */
    }

    .brands-grid .brand-item {
        padding: 15px;
        max-width: 100%;
    }

    .companies-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 15px;
    }
}

/* --- Respaldo Section Styles --- */
.respaldo-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background-color: #ffffff;
}

.respaldo-izquierda {
  flex: 6;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.respaldo-izquierda h2 {
  color: #333;
  font-size: 50px;
  font-weight: bold;
}

.respaldo-logos {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.respaldo-logos img {
  height: 70px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.respaldo-logos img:hover {
  opacity: 1;
}

.respaldo-derecha {
  flex: 4;
  background-color: #000;
  border-top-left-radius: 50% 100%;
  border-bottom-left-radius: 50% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.respaldo-video {
  width: 95%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}

.respaldo-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 768px) {
  .respaldo-container {
    flex-direction: column;
  }

  .respaldo-derecha {
    border-radius: 0;
    border-top-left-radius: 50% 20%;
    border-top-right-radius: 50% 20%;
  }
}

/* --- Team Carousel Section Styles --- */
#mi-equipo-de-trabajo {
    text-align: center;
    padding: 40px 0;
    background-color: #f0f0f0;
}

#mi-equipo-de-trabajo h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

/* --- Sección de Resultados (Actualizado con estilos consistentes) --- */
.results-section {
    background-color: #000; /* Fondo negro, similar al navbar y eventos */
    color: #fff; /* Texto en blanco */
    padding: 60px 20px;
    text-align: center;
    overflow: hidden; /* Para contener elementos flotantes o animados */
}

.results-container {
    max-width: 1400px; /* Ancho máximo consistente con otras secciones */
    margin: 0 auto;
    padding: 0 2rem; /* Padding lateral general */
}

.results-section .section-title {
    font-size: 2.5em; /* Tamaño de fuente similar a otros títulos de sección */
    font-weight: 700;
    color: #fff; /* Título en blanco */
    margin-bottom: 50px;
    letter-spacing: 0.05em; /* Ligero espaciado entre letras */
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Ajuste del ancho mínimo de las columnas */
    gap: 30px; /* Espacio entre los elementos de la cuadrícula */
    margin-bottom: 40px;
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #1a1a1a; /* Fondo gris oscuro, similar a las tarjetas de eventos */
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.result-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.result-item i {
    font-size: 3em; /* Tamaño del ícono */
    color: #fff;
    margin-bottom: 15px;
}

.result-number {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-description {
    font-size: 1em;
    font-weight: 400;
    line-height: 1.4;
    color: #ccc; /* Descripción en un tono grisáceo */
    max-width: 280px;
}

.results-text {
    font-size: 1.6em;
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
    color: #ddd; /* Texto final en un tono grisáceo más claro */
}

.highlight {
    color: #ffd700; /* Un color amarillo dorado */
}

/* Media Queries para responsividad (Ajustado para consistencia) */
@media (max-width: 768px) {
    .results-section {
        padding: 50px 15px;
    }
    .results-section .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }
    .results-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
        gap: 20px;
        margin-bottom: 30px;
    }
    .result-item {
        padding: 20px;
    }
    .result-item i {
        font-size: 2.5em;
        margin-bottom: 10px;
    }
    .result-number {
        font-size: 1.8em;
        margin-bottom: 5px;
    }
    .result-description {
        font-size: 0.9em;
        max-width: 100%;
    }
    .results-text {
        font-size: 1em;
    }
}

/* --- Sección de Galería de Fotos --- */
#mi-equipo-de-trabajo {
    width: 100%;
    background-color: #f4f4f4;
    text-align: center;
}

#mi-equipo-de-trabajo h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
}

.gallery-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    flex: 1; /* Permite que el carrusel ocupe el espacio disponible entre las flechas */
    overflow: hidden;
    -ms-overflow-style: none; /* Oculta la barra de desplazamiento en IE/Edge */
    scrollbar-width: none; /* Oculta la barra de desplazamiento en Firefox */
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Oculta la barra de desplazamiento en Chrome/Safari */
}

.carousel-slide {
    display: flex;
    gap: 10px; /* Ajusta el espacio entre imágenes */
    padding: 0 10px;
    transition: transform 0.3s ease-out; /* Habilita la transición para las flechas */
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.carousel-slide.dragging {
    cursor: grabbing;
    transition: none; /* Sin transición al arrastrar */
}

.carousel-slide img {
    height: 400px;
    width: calc((100% - 40px) / 3); /* Ajuste para que se vean 3 imágenes */
    object-fit: cover;
    border-radius: 5px;
    pointer-events: none;
}

/* Estilos para las flechas de navegación */
.arrow-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 45px;
    font-size: 2em;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.arrow-btn:hover {
    background-color: #fff;
    transform: scale(1.1);
}

/* --- Ajustes Responsivos --- */
@media (max-width: 768px) {
    .gallery-carousel-wrapper {
        padding: 0 10px;
    }
    
    .carousel-slide {
        gap: 15px;
    }

    .carousel-slide img {
        width: 100%; /* Una sola imagen por vista en móviles */
        height: 300px;
    }

    .arrow-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5em;
    }
}

/* --- Estilos para la Nueva Sección de Suscripción --- */
.newsletter-section {
    background-color: #000; /* Fondo de color negro */
    padding: 60px 20px;
    color: #fff;
    text-align: center;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

.newsletter-form input {
    width: 100%;
    max-width: 400px; /* Limita el ancho del campo de entrada */
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    background-color: #f1f1f1;
    font-size: 1em;
}

.newsletter-form button {
    padding: 15px 40px;
    background-color: rgb(255, 255, 255); /* Color amarillo similar al de la imagen */
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.newsletter-form button:hover {
    background-color: #2687e8;
}

.privacy-text {
    font-size: 0.9em;
    color: #ccc;
}

.privacy-link {
    color: rgb(255, 255, 255);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #2687e8;
}

@media (max-width: 576px) {
    /* Nueva regla para el contenedor del formulario en móvil */
    .newsletter-form {
        flex-direction: column;
        align-items: center;
        width: 100%; /* Asegura que el contenedor ocupe todo el ancho */
    }

        /* Ajustes para el campo de entrada */
    .newsletter-form input {
        width: 100%; /* Ocupa el 100% del ancho del contenedor */
        max-width: none; /* Elimina la limitación de ancho para que se ajuste completamente */
        box-sizing: border-box; /* Asegura que el padding se incluya en el ancho total */
        margin-bottom: 10px; /* Agrega espacio entre el input y el botón */
    }

    .newsletter-title{
        text-align: center;
    }
    
    .privacy-text{
        text-align: justify;
    }
}

/* --- Hero Footer Section Styles --- */
.hero-footer {
    position: relative;
    width: 100vw;
    height: 140vh;
    background-image: url('/images/esteban/esteban\ 3\ extendida.png'); /* Your provided image */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* Featured In Section */
.featured-in-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px; /* Adjust as needed */
    padding: 80px 0 0 0; /* Top padding, no side padding here for the curved edge */
    background-color: #fff; /* White background for the whole section */
    box-sizing: border-box;
    margin-top: 50px; /* Space from previous section */
}

.featured-in-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px; /* Padding from the left edge of the screen/container */
    padding-right: 50px; /* Space before the right section */
}

.featured-text {
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.featured-logos {
    display: flex;
    flex-wrap: wrap; /* Allow logos to wrap on smaller screens */
    gap: 40px; /* Space between logos */
    align-items: center;
}

.featured-logos img {
    height: 40px; /* Fixed height for logos */
    filter: grayscale(100%) brightness(0.7); /* Make logos grayscale and slightly darker */
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.featured-logos img:hover {
    filter: grayscale(0%) brightness(1); /* Full color on hover */
    opacity: 1;
}

.featured-in-right {
    position: relative;
    flex: 0 0 auto; /* Don't grow or shrink */
    width: 60%; /* Occupy a significant portion, adjust as needed */
    max-width: 650px; /* Max width for the image container */
    height: 450px; /* Fixed height for the image part */
    background-color: #000; /* Fallback/background for curved part */
    border-top-left-radius: 200px; /* Large radius for the curved edge */
    border-bottom-left-radius: 200px;
    overflow: hidden; /* Crucial for the border-radius to cut off the content */
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-right-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
    display: block;
    filter: brightness(0.5); /* Darken the image */
    transition: filter 0.3s ease;
}

.featured-in-right:hover .featured-right-image {
    filter: brightness(0.7); /* Slightly brighter on hover */
}

.featured-right-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    gap: 20px;
}

.rank-number {
    font-size: 4em;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.watch-video-btn {
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.watch-video-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: #fff;
}

.watch-video-btn .fas {
    font-size: 0.9em;
}

/* Video Modal Styles - NEW */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Darker overlay for video */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002; /* Higher z-index than general modals */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.video-modal-overlay.show {
    visibility: visible;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px; /* Max width for video */
    background-color: #000; /* Black background for video modal */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 3em;
    font-weight: 200;
    color: #fff; /* White close button */
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 10; /* Ensure button is above video */
    transition: color 0.2s ease;
}

.video-modal-close-btn:hover {
    color: #ccc;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive adjustments for Featured Section */
@media (max-width: 1024px) {
    .featured-in-section {
        flex-direction: column; /* Stack vertically */
        padding-left: 0;
        padding-right: 0;
        padding-top: 50px;
    }
    .featured-in-left {
        padding-left: 30px;
        padding-right: 30px;
        margin-bottom: 40px;
        align-items: center; /* Center text and logos when stacked */
        text-align: center;
    }
    .featured-logos {
        justify-content: center;
    }
    .featured-in-right {
        width: 100%; /* Full width */
        max-width: 650px; /* Maintain max width */
        border-radius: 0; /* Remove curved edges when stacked */
        height: 400px;
    }
    .featured-right-overlay {
        gap: 15px;
    }
    .rank-number {
        font-size: 3.5em;
    }
    .watch-video-btn {
        font-size: 1em;
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .featured-text {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .featured-logos {
        gap: 25px;
    }
    .featured-logos img {
        height: 30px;
    }
    .featured-in-right {
        height: 300px;
    }
    .rank-number {
        font-size: 3em;
    }
    .watch-video-btn {
        font-size: 0.9em;
        padding: 8px 18px;
    }
    .video-modal-close-btn {
        font-size: 2.5em;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .featured-in-left {
        padding-left: 20px;
        padding-right: 20px;
    }
    .featured-logos {
        gap: 15px;
    }
    .featured-logos img {
        height: 25px;
    }
    .featured-in-right {
        height: 250px;
    }
    .rank-number {
        font-size: 2.5em;
    }
    .watch-video-btn {
        font-size: 0.8em;
        padding: 6px 15px;
    }
}

/* Featured In Section */
.featured-in-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Permitir wrap en pantallas pequeñas */
    width: 100%;
    max-width: 1400px;
    margin: 50px auto 0 auto; /* Centrado y separación desde arriba */
    padding: 80px 30px 0 30px; /* Padding uniforme con espacio lateral */
    background-color: #fff;
    box-sizing: border-box;
}

.featured-in-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 30px;
    box-sizing: border-box;
}

.featured-text {
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.featured-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.featured-logos img {
    height: 40px;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.featured-logos img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.featured-in-right {
    position: relative;
    flex: 0 0 auto;
    width: 60%;
    max-width: 650px;
    height: 450px;
    background-color: #000;
    border-top-left-radius: 200px;
    border-bottom-left-radius: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.featured-right-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5);
    transition: filter 0.3s ease;
}

.featured-in-right:hover .featured-right-image {
    filter: brightness(0.7);
}

.featured-right-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    gap: 20px;
}

.rank-number {
    font-size: 4em;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.watch-video-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.watch-video-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: #fff;
}

.watch-video-btn .fas {
    font-size: 0.9em;
}

/* Video Modal Styles */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.video-modal-overlay.show {
    visibility: visible;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 3em;
    font-weight: 200;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 10;
    transition: color 0.2s ease;
}

.video-modal-close-btn:hover {
    color: #ccc;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .featured-in-section {
        flex-direction: column;
        padding: 50px 30px 0 30px;
    }

    .featured-in-left {
        padding: 0;
        margin-bottom: 40px;
        align-items: center;
        text-align: center;
    }

    .featured-logos {
        justify-content: center;
    }

    .featured-in-right {
        width: 100%;
        max-width: 650px;
        border-radius: 0;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .featured-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .featured-logos {
        gap: 25px;
    }

    .featured-logos img {
        height: 30px;
    }

    .featured-in-right {
        height: 300px;
    }

    .rank-number {
        font-size: 3em;
    }

    .watch-video-btn {
        font-size: 0.9em;
        padding: 8px 18px;
    }

    .video-modal-close-btn {
        font-size: 2.5em;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .featured-in-left {
        padding: 0;
    }

    .featured-logos {
        gap: 15px;
    }

    .featured-logos img {
        height: 25px;
    }

    .featured-in-right {
        height: 250px;
    }

    .rank-number {
        font-size: 2.5em;
    }

    .watch-video-btn {
        font-size: 0.8em;
        padding: 6px 15px;
    }
}

/* Overlay to darken the image and make text more readable */
.hero-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    filter: brightness(0.7) blur(2px); /* Slight blur and brightness adjustment for depth */
}

.hero-footer-content {
    position: relative; /* Ensure content is above the overlay */
    z-index: 1; /* Place content above the ::before pseudo-element */
    max-width: 800px; /* Limit content width */
    padding: 20px;
}

.hero-footer-content h1 {
    font-size: 3.5vw; /* Responsive font size */
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-footer-content .extraordinary-italic {
    font-style: italic;
}

.hero-footer-content p {
    font-size: 1.5vw; /* Responsive font size */
    margin-bottom: 30px;
    color: #eee;
}


.contact-button {
    background-color: white;
    color: black;
    border: none;
    padding: 15px 30px;
    font-size: 1.2vw; /* Responsive font size */
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #e0e0e0;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .hero-footer-content h1 {
        font-size: 6vw; /* Larger font size on smaller screens */
    }

    .hero-footer-content p {
        font-size: 3vw;
    }

    .contact-button {
        font-size: 3.5vw;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .hero-footer-content h1 {
        font-size: 8vw;
    }

    .hero-footer-content p {
        font-size: 4vw;
    }

    .contact-button {
        font-size: 4.5vw;
        padding: 10px 20px;
    }
}

/* --- Sección de Noticias (Carrusel) --- */
.news-section {
    width: 100%;
    margin: 2px auto;
    box-sizing: border-box;
}

.news-section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #000;
}

.news-section-text {
    font-size: 1.4em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 45px;
    color: #1d1d1d;
}

/* Nuevo contenedor para envolver el carrusel y las flechas */
.news-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Espacio entre las flechas y el carrusel */
}

.news-carousel-container {
    flex: 1; /* Permite que el carrusel ocupe el espacio restante */
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 85% /* Limita el ancho para que no se extienda demasiado */
}

/* Oculta la barra de desplazamiento en Webkit (Chrome, Safari) */
.news-carousel-container::-webkit-scrollbar {
    display: none;
}

.news-carousel-slides {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
}

.news-card {
    flex: 0 0 350px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    scroll-snap-align: start;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.news-date {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
}

.news-description {
    font-size: 1em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: #007bff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-card:hover .read-more {
    color: #0056b3;
}

.news-pagination-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot.active {
    background-color: #000;
    transform: scale(1.2);
}

/* --- Estilos para las flechas de navegación --- */
.arrow-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 2em;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0; /* Evita que la flecha se encoja */
}

.arrow-btn:hover {
    background-color: #fff;
    transform: scale(1.1);
}
/* --- Ajustes Responsivos --- */
@media (max-width: 768px) {
    .news-section {
        padding: 0 20px;
    }

    .news-section-title {
        font-size: 2em;
        text-align: center;
    }

    .news-section-text {
        font-size: 1.3em;
        text-align: justify;
    }
    
    .news-carousel-slides {
        gap: 15px;
    }
    
    .news-card {
        flex: 0 0 260px;
    }
    
    /* Nuevo estilo para el contenedor de las flechas en móvil */
    .news-carousel-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px; /* Reducimos el espacio entre las flechas y el carrusel */
    }

    /* Estilos para las flechas en móvil */
    .arrow-btn {
        background-color: rgba(255, 255, 255, 0.8);
        border: none;
        border-radius: 50%;
        width: 35px; /* Reducimos el tamaño de la flecha */
        height: 35px;
        font-size: 1.5em; /* Reducimos el tamaño de la fuente */
        color: #333;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
    }
}

/* --- Sección de Galería de Equipo --- */
.gallery-section {
    width: 100%;
    padding: 100px 0;
    background-color: #fff;
    color: #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px 40px 20px;
    text-align: center;
    width: 100%;
}

.gallery-header h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
}

.gallery-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    width: 95%;
}

/* Contenedor del carrusel */
.gallery-carousel-container {
    flex: 1; /* Permite que el carrusel ocupe el espacio restante */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-carousel-container::-webkit-scrollbar {
    display: none;
}

.gallery-carousel {
    display: flex;
    gap: 23px;
    padding-bottom: 20px;
}

/* Tarjetas */
.gallery-card {
    flex: 0 0 420px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
    scroll-snap-align: center;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.gallery-card:hover .card-image {
    filter: brightness(0.9);
}

.gallery-card .card-content {
    position: relative;
    z-index: 1;
    padding: 25px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding-top: 80px;
}

.gallery-card h3 {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.gallery-card p {
    font-size: 1em;
    color: #ccc;
    margin: 0;
    line-height: 1.7;
}

/* Dots */
.gallery-pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.gallery-pagination-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #555;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery-pagination-dots .dot.active {
    background-color: #000;
    transform: scale(1.2);
}

/* --- Estilos para las flechas de navegación --- */
.arrow-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 2em;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.arrow-btn:hover {
    background-color: #fff;
    transform: scale(1.1);
}

/* --- Ajustes Responsivos --- */
@media (max-width: 768px) {
    .gallery-section {
        padding: 30px 0px;
    }
    
    .gallery-header h2 {
        font-size: 1.8em;
    }

    .gallery-carousel-wrapper {
        padding: 0 10px;
        justify-content: space-between;
    }

    .gallery-carousel {
        gap: 15px;
        justify-content: flex-start; /* Aseguramos que el scroll funcione */
    }

    .gallery-card {
        flex: 0 0 calc(100% - 30px); /* Ocupa casi todo el ancho, dejando espacio para el snap */
        height: 400px;
    }
    
    .gallery-card .card-content {
        padding: 20px;
    }

    .gallery-card h3 {
        font-size: 1.2em;
    }
    
    .gallery-card p {
        font-size: 0.9em;
    }

    .gallery-pagination-dots {
        margin-top: 20px;
        gap: 8px;
    }
    
    .gallery-pagination-dots .dot {
        width: 8px;
        height: 8px;
    }
}

/* --- Site Footer Styles --- */
.site-footer {
    background-color: #000; /* Black background */
    color: #fff; /* White text for general footer content */
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #333; /* Slightly lighter black border for separation */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.login-button {
  background-color: transparent;
  color: #fff;
  border: 1px solid transparent; /* Make the border transparent initially */
  padding: 10px 20px;
  font-size: 1em;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
  font-weight: 600;
  opacity: 0; /* Make the button invisible */
}

.login-button:hover {
  background-color: rgba(255, 255, 255, 0.5); /* Slightly visible background on hover */
  color: #000;
  opacity: 1; /* Make the button visible on hover */
  cursor: pointer; /* Change the cursor to indicate it's clickable */
}

.contact-section,
.social-section {
    flex: 1;
    min-width: 250px;
    margin: 15px;
    text-align: left; /* Align text to the left within sections */
}

.contact-section h3,
.social-section h3 {
    color: #fff; /* White for titles on black background */
    font-size: 1.2em;
    margin-bottom: 15px;
}

.contact-section p {
    color: #fff; /* White text for "Tienes alguna duda?" */
    margin-bottom: 10px;
}

.contact-section a {
    color: #fff; /* White for the email link */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-section a:hover {
    color: #ccc; /* Lighter white on hover */
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: #fff; /* White social media icons */
    font-size: 1.5em;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ccc; /* Lighter white on hover */
}

.footer-divider {
    border: 0;
    border-top: 1px solid #333; /* Slightly lighter black line */
    margin: 20px auto;
    width: 80%;
    max-width: 1000px;
}

.copyright {
    color: #fff; /* White text for copyright */
    font-size: 0.9em;
    margin-top: 20px;
}

/* --- Scroll-to-top button --- */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffffff; /* A distinct color for the button, e.g., blue */
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Initially hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments for footer and scroll to top */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-section,
    .social-section {
        text-align: center;
        margin-bottom: 30px;
    }
}



/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px; /* Distance from the bottom */
    left: 20px;  /* Distance from the left */
    background: linear-gradient(45deg, #25D366, #128C7E); /* WhatsApp green gradient */
    color: white;
    width: 60px; /* Size of the button */
    height: 60px;
    border-radius: 50%; /* Makes it a perfect circle */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2em; /* Icon size */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow */
    z-index: 999; /* Ensure it's above most content, but below modals */
    transition: all 0.3s ease;
    overflow: hidden; /* For the ripple effect */
}

.whatsapp-button:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 25px #25D366; /* Enhanced shadow and glow */
}

.whatsapp-button i {
    transition: transform 0.3s ease;
}

.whatsapp-button:hover i {
    transform: rotate(5deg); /* Slight rotation of the icon on hover */
}

/* Optional: Add a subtle pulse/animation */
@keyframes whatsappPulse {
    0% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 25px #25D366; }
    100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
}

/* Uncomment the line below to apply the pulse animation */
 .whatsapp-button { animation: whatsappPulse 2s infinite alternate; } 

/* Responsive adjustments for the WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        bottom: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        width: 45px;
        height: 45px;
        font-size: 1.6em;
        bottom: 10px;
        left: 10px;
    }
}

/* --- Pop-up Emergente --- */
.popup-modal {
    visibility: hidden; 
    opacity: 0; 
    transition: visibility 0s 0.5s, opacity 0.5s linear; 

    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-modal.show {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.popup-content {
    position: relative;
    background-color: #000; /* Fondo del modal: negro */
    padding: 20px;
    border: 1px solid #444; /* Un borde gris oscuro */
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    animation: fadeIn 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.popup-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff; /* Color del texto del título: blanco */
    margin-bottom: 10px;
    text-transform: uppercase;
}

.popup-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 auto;
}

.close-btn {
    color: #fff; /* Color del botón de cierre: blanco */
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: #ccc; /* Color al pasar el cursor: gris claro */
    text-decoration: none;
}

/* --- Estilos para el botón de "Leer e-book" --- */
.btn-ebook {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 20px;
    background-color: #fff; /* Fondo blanco */
    color: #000; /* Letras negras */
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
    border: 2px solid #fff;
}

.btn-ebook:hover {
    background-color: #000; /* Fondo negro al pasar el cursor */
    color: #fff; /* Letras blancas al pasar el cursor */
    border: 2px solid #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}