/* Banner Moderno – Ajustes de color */
.banner-modern {
    position: relative;
    height: 100vh;
    background: url('../images/banner.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Overlay más oscuro para mejorar contraste */
.banner-modern .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
  135deg,
  rgba(50, 61, 82, 0.34),
  rgba(28, 82, 164, 0.322),
  rgba(163, 213, 244, 0.6)
);

    z-index: 1;
}

/* Contenido */
.banner-modern .banner-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 20px;
}

/* Texto blanco real */
.banner-modern h1,
.banner-modern p {
    color: #ffffff;
}

/* Título */
.banner-modern h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); /* mejora visibilidad */
}

/* Descripción */
.banner-modern p {
    font-size: 1.35rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Strong en azul marino */
.banner-modern strong {
    color: #0b2c4d; /* azul marino */
    font-weight: 700;
    
    padding: 2px 6px;
    border-radius: 4px;
}

/* Botón */
.banner-modern .btn {
    font-size: 1.2rem;
    padding: 14px 34px;
    margin-top: 20px;
}

/* Flecha scroll */
.banner-modern .scroll-down i {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .banner-modern h1 {
        font-size: 2.3rem;
    }

    .banner-modern p {
        font-size: 1.05rem;
    }
}
/* Estado inicial (oculto) */
.animate-title,
.animate-text,
.animate-btn {
    opacity: 0;
    transform: translateY(30px);
}

/* Animación del título */
.animate-title {
    animation: fadeUp 1s ease forwards;
}

/* Animación del texto (delay) */
.animate-text {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.4s;
}

/* Animación del botón (más delay) */
.animate-btn {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.8s;
}

/* Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   BIOGRAFÍA
========================= */
.bio-section {
    padding: 100px 0;
    background: #f0efef;
    position: relative;
    overflow: hidden;
}

/* Imagen 
.bio-image {
    opacity: 0;
    transform: translateX(-40px);
    animation: bioImage 1s ease forwards;
}
*/
.bio-image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Contenido */
.bio-content {
    padding-left: 40px;
    opacity: 1;
    transform: translateX(40px);
    animation: bioText 1s ease forwards;
    animation-delay: 0.3s;
}

.bio-content h2 {
    font-size: 36px;
    margin-bottom: 15px;

}

.bio-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 18px;
}

.bio-content strong {
    color: #0b2c4d;
    font-weight: 700;
}

/* Botón */
.bio-content .btn {
    margin-top: 15px;
    padding: 12px 30px;
    font-weight: 600;
}

/* Animaciones 
@keyframes bioImage {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
*/
@keyframes bioText {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================
   SHAPES UNIFORMES AZUL
========================= */
.bio-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    background: #0b2c4d; /* azul marino para todos */
    z-index: 0;
}

/* Forma 1 – círculo grande */
.bio-shapes .shape-1 {
    width: 250px;
    height: 250px;
    top: -50px;
    left: -50px;
}

/* Forma 2 – círculo mediano */
.bio-shapes .shape-2 {
    width: 180px;
    height: 180px;
    bottom: 20px;
    right: 10%;
}

/* Forma 3 – círculo pequeño */
.bio-shapes .shape-3 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: -60px;
}

/* Float Animation */
@keyframes floatShape {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.bio-shapes .shape-1 {
    animation: floatShape 6s ease-in-out infinite;
}

.bio-shapes .shape-2 {
    animation: floatShape 8s ease-in-out infinite;
    animation-delay: 2s;
}

.bio-shapes .shape-3 {
    animation: floatShape 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Asegurar que el contenido esté sobre los shapes */
.bio-section .container {
    position: relative;
    z-index: 1;
}

/* =========================
   SECCIÓN BENEFICIOS
========================= */
.benefits-section {
    position: relative;
    padding: 100px 0;
    background: #f5f6fa;
    color: #0b2c4d;
    overflow: hidden;
}

/* Shapes de fondo – ahora todos azul marino también */
.benefits-background .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    background: #0b2c4d;
}

.shape-1 { width: 200px; height: 200px; top: 20px; left: 10%; }
.shape-2 { width: 300px; height: 300px; bottom: 50px; right: 15%; }
.shape-3 { width: 150px; height: 150px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Header de sección */
.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #0b2c4d;
}

.section-header p {
    font-size: 18px;
    color: #333;
}

/* Cards de beneficios */
.benefit-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.benefit-card i {
    font-size: 60px;
    color: #0b2c4d;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.benefit-card h4 {
    color: #0b2c4d;
    font-size: 24px;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.benefit-card:hover {
    transform: translateY(-15px);
    background: #e8edf5;
}

.benefit-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Animaciones fadeup */
.animate-fadeup {
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
}

.animate-fadeup.animate-delay-1 { animation: fadeUp 0.8s ease 0.2s forwards; }
.animate-fadeup.animate-delay-2 { animation: fadeUp 0.8s ease 0.4s forwards; }
.animate-fadeup.animate-delay-3 { animation: fadeUp 0.8s ease 0.6s forwards; }
.animate-fadeup.animate-delay-4 { animation: fadeUp 0.8s ease 0.8s forwards; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
/* Animación flotante de shapes */
@keyframes floatShape {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(15deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Aplica animación a cada shape con diferente duración */
.shape-1 {
    animation: floatShape 6s ease-in-out infinite;
}

.shape-2 {
    animation: floatShape 8s ease-in-out infinite;
}

.shape-3 {
    animation: floatShape 5s ease-in-out infinite;
}

/* ============================= */
/* SECCIÓN TESTIMONIOS*/
/* ============================= */
.testimonials-section {
    position: relative;
    padding: 120px 0;
    background: #f5f6fa;
    color: #0b2c4d;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Shapes flotantes */
.testimonials-background .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    animation: floatShape 7s ease-in-out infinite;
}

.testimonials-background .shape-1 { width: 250px; height: 250px; background: #0b2c4d; top: 10px; left: 5%; }
.testimonials-background .shape-2 { width: 200px; height: 200px; background: #0b2c4d; bottom: 30px; right: 10%; }

/* Cabecera */
.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: #555;
}

/* Carousel cards flotantes */
.testimonials-carousel .testimonial-card {
    background: rgba(255, 255, 255, 0.9); /* ligero fondo transparente para que flote */
    border-radius: 30px;
    padding: 35px 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    margin: 20px 10px;
}

.testimonials-carousel .testimonial-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 35px 60px rgba(0,0,0,0.2);
}

/* Contenido de cada card */
.testimonials-carousel .testimonial-card p {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.testimonials-carousel .testimonial-stars {
    color: #ff0000;
    font-size: 18px;
    margin-bottom: 10px;
}

.testimonials-carousel .testimonial-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #0b2c4d;
}

/* Owl Carousel Nav */
.owl-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0b2c4d;
    color: #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    border: none;
    outline: none;
    font-size: 18px;
}

.owl-carousel .owl-nav button.owl-prev { left: -25px; }
.owl-carousel .owl-nav button.owl-next { right: -25px; }

.owl-carousel .owl-dots { margin-top: 20px; }

/* Animación fade-up */
.animate-fadeup {
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
}

.animate-fadeup.animate-delay-1 { animation: fadeUp 0.8s ease 0.2s forwards; }
.animate-fadeup.animate-delay-2 { animation: fadeUp 0.8s ease 0.4s forwards; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 991px) {
    .testimonial-card { padding: 25px 20px; border-radius: 25px; }
    .section-header h2 { font-size: 28px; }
}

/* =========================
   SECCIÓN FAQ
========================= */
.faq-section {
    padding: 40px 0;
    background: #f0efef;
    position: relative;
    overflow: hidden;
}

/* Cabecera */
.faq-section .section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #0b2c4d;
    text-align: left;
}

.faq-section .section-header p {
    font-size: 18px;
    color: #555;
    text-align: left;
}

/* Layout preguntas + imagen */
.faq-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 65px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Preguntas acordeón */
.faq-list {
    flex: 1 1 500px;
}

/* Imagen flotante */
.faq-image {
    flex: 1 1 450px;
    opacity: 0;
    transform: translateX(40px);
    animation: floatFaq 6s ease-in-out infinite;
}

.faq-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Rebote imagen */
@keyframes floatFaq {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Acordeón */
.accordion .faq-item {
    background: #ffffff;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* =========================
   SECCIÓN PREGUNTAS CORREGIDA
========================= */
.faq-question {
    display: block;                   /* ocupa todo el ancho */
    position: relative;               /* necesario para el ícono absoluto */
    width: 100%;
    padding: 20px 50px 20px 25px;    /* espacio a la derecha para el ícono */
    font-size: 18px;
    font-weight: 700;
    color: #0b2c4d;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.faq-question strong {
    display: inline;                  /* mantiene formato del texto */
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    word-spacing: normal !important;
}

.faq-question .faq-icon {
    position: absolute;               /* siempre a la derecha */
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 24px;
    transition: transform 0.3s ease;
}

/* Respuestas */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 25px;
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

/* Activo: muestra respuesta y gira ícono */
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 15px 25px 20px;
}

.faq-item.active .faq-icon {
    transform: translateY(-50%) rotate(45deg);
}

/* Animaciones scroll */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(40px);
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Formas decorativas */
.faq-section::before,
.faq-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
    animation: floatShape 8s ease-in-out infinite;
}

.faq-section::before {
    width: 180px;
    height: 180px;
    background: #0b2c4d;
    top: -60px;
    left: -60px;
}

.faq-section::after {
    width: 260px;
    height: 260px;
    background: #96cbff;
    bottom: -120px;
    right: -120px;
    animation-duration: 10s;
}

/* Animación flotante */
@keyframes floatShape {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0) translateX(0); }
}

/* Responsive */
@media (max-width: 991px) {
    .faq-row {
        flex-direction: column-reverse;
        align-items: center;
    }

    .faq-list, .faq-image {
        flex: 1 1 100%;
    }

    .faq-section .section-header h2 { font-size: 28px; }
    .faq-question { font-size: 16px; padding: 15px 45px 15px 20px; }
    .faq-answer { font-size: 15px; }
}