* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }


        .hero {
            position: relative;
            height: 440px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .hero-background {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .hero-overlay {
            position: absolute;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.5);
        }

       

        .hero-title {
    font-size: 2.5rem;           
    font-weight: 900;         
    text-transform: uppercase; 
    letter-spacing: 2px;       
    color: #fdfeff;          
    text-align: center;       
    margin: 40px 0;            
    line-height: 1.2;        
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    font-family: "Montserrat", sans-serif;
           
            
        }

        /* Curved bottom */
        .hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 60px;
            background-color: white;
            border-radius: 50% 50% 0 0 / 100% 100% 0 0;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero {
                height: 250px;
            }

            .hero-title {
                font-size: 40px;
            }
        }


/* --- Contenedor de las tarjetas --- */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 450px)); /* tarjetas responsivas */
    justify-content: center; /* Centrado horizontal */
    gap: 20px; /* espacio entre tarjetas */
    margin: 40px; /* separación del borde de la pantalla */
}

/* --- Estilo de cada tarjeta --- */
.card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 20px; /* espacio interno */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%; /* fuerza que ocupe todo el espacio asignado por el grid */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* --- Título de la tarjeta --- */
.card h2 {
    color: #1e40af;
    font-size: 1.2rem; /* ligeramente más grande para mejor visibilidad */
    margin-bottom: 15px;
    font-family: "Montserrat", sans-serif;
}

/* --- Párrafo de la tarjeta --- */
.card p {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    font-family: "Montserrat", sans-serif;
    text-align: justify;
}

/* --- Responsive: Tablet --- */
@media (max-width: 992px) {
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 400px));
        margin: 30px;
    }
}

/* --- Responsive: Móviles --- */
@media (max-width: 576px) {
    .cards-container {
        grid-template-columns: 1fr; /* 1 tarjeta por fila */
        margin: 20px;
    }

    .card {
        padding: 15px;
    }

    .card h2 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.95rem;
    }
}

.hero-card {
  max-width: 1600px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  transition: opacity 0.6s ease-in-out;
  width: 45%;
  min-width: 280px;
  margin: 0 auto; /* <-- CENTRA EN EL EJE HORIZONTAL */
  display: block; /* <-- NECESARIO PARA QUE margin:auto FUNCIONE */
}

.hero-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
}

 
.hero-content.slider-container {
    position: relative;
    display: flex;
    z-index: 10;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Damos espacio a los lados para que el texto no choque con las flechas en pantallas pequeñas */
    padding: 0 50px; 
    width: 100%; /* Asegura que ocupe el ancho disponible */
}

/* Posición específica izquierda */
.arrow-left {
    left:380px;
}

/* Posición específica derecha */
.arrow-right {
    right: 380px;
}

/* Estilo base para ambas flechas */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centrado vertical perfecto */
    background-color: transparent; /* Fondo transparente */
    border: none;
    color: white; /* Color blanco por defecto */
    font-size: 80px; /* Tamaño grande */
    cursor: pointer;
    z-index: 10; /* Por encima del texto y el fondo */
    padding: 10px;
    transition: all 0.3s ease;
    outline: none;
}

/* Efecto hover para que se note que es clickeable */
.slider-arrow:hover {
    color: #f6303a; /* Un poco más transparente al pasar el mouse */
    transform: translateY(-50%) scale(1.1); /* Crece un poquito */
}
.hidden {
    display: none;
    /* Opcional: si quieres que desaparezca suavemente usa opacidad en vez de display:
    opacity: 0;
    pointer-events: none;
    */
}