/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

body {
    overflow-x: hidden;
    background-color: #f8f9fa;
}

/* Colores principales */
:root {
    --blue-dark: #0a2763;
    --blue-light: #4169e1;
    --red: #e52222;
    --purple: #5a189a;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
}

/* Barra de navegación */
.navbar {
    background-color: rgba(10, 39, 99, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.navbar-compressed {
    padding: 8px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 0; /* ← sin padding derecho para pegar ACADEMIA al borde del viewport */
}

.logo {
    max-width: 180px;
    transition: all 0.3s ease;
}

.navbar-compressed .logo {
    max-width: 160px;
}

/* >>> NUEVO: el nav ocupa todo el espacio restante y permite empujar ACADEMIA */
.nav-container > nav{
    display:flex;
    align-items:center;
    flex:1;
}

.nav-links {
    display: flex;
    list-style: none;
    flex:1; /* ← se estira a todo el ancho del nav */
}

.nav-links li {
    margin-left: 30px;
}

/* >>> NUEVO: empuja este ítem al extremo derecho */
.nav-links li.push-right { 
    margin-left: auto; 
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #4dabf7;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #4dabf7;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
}

/* Estilos del hero */
.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, #1a4bbc 100%);
    color: var(--white);
    padding: 160px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #ffffff, #e6e6e6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    background-color: #ff4500;
    color: var(--white);
    display: inline-block;
    padding: 15px 30px;
    margin-top: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
    transform: skewX(-5deg);
    animation: pulse 2s infinite;
}

.hero-cta {
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    text-decoration: none;
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.cta-button-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.cta-button-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    transform: translate(-50%, -5px);
}

.scroll-down i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.scroll-down span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Animaciones */
@keyframes pulse {
    0% { transform: skewX(-5deg) scale(1); }
    50% { transform: skewX(-5deg) scale(1.05); }
    100% { transform: skewX(-5deg) scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* Sección Beneficios */
.benefits {
    padding: 80px 20px;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--blue-dark);
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--red);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.benefits-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    width: 300px;
    text-align: center;
    padding: 30px 20px;
    margin: 15px;
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--blue-light);
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.3rem;
    color: var(--blue-dark);
    margin-bottom: 15px;
}

.benefit-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Estilos de las tarjetas de servicios */
.services {
    background-color: var(--gray-light);
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    background-color: var(--white);
    position: relative;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.person-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.service-card:hover .person-image {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.service-content {
    padding: 30px;
    color: var(--black);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--blue-dark);
    position: relative;
    padding-bottom: 10px;
}

.service-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--red);
    bottom: 0;
    left: 0;
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.service-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray);
    color: #444;
    font-size: 0.95rem;
    position: relative;
    padding-left: 30px;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--blue-light);
    font-weight: bold;
    font-size: 1.2rem;
}

.whatsapp-btn {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: var(--white);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn i {
    margin-right: 8px;
    font-size: 1.3rem;
}

.featured-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, var(--red), #ff6b35);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(229, 34, 34, 0.4);
}

/* Sección Testimonios con Videos - Efecto Rollo (Scroll Horizontal) */
.testimonials {
    padding: 80px 20px;
    background-color: var(--gray-light);
}

.testimonials-scroll-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 60px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-btn-left {
    left: 0;
}

.scroll-btn-right {
    right: 0;
}

.testimonials-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-light) var(--gray);
    -webkit-overflow-scrolling: touch;
}

.testimonials-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.testimonials-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--gray);
    border-radius: 10px;
}

.testimonials-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--blue-light);
    border-radius: 10px;
}

.testimonials-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--blue-dark);
}

.testimonials-video-grid {
    display: flex;
    gap: 30px;
    padding: 10px 0 20px 0;
    width: max-content;
}

.testimonial-video-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 400px;
    flex-shrink: 0;
}

.testimonial-video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 */
    background-color: #000;
    overflow: hidden;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-wrapper video[playing] + .video-play-overlay {
    opacity: 0;
}

.video-play-overlay i {
    font-size: 4rem;
    color: var(--white);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.testimonial-video-card:hover .video-play-overlay i {
    transform: scale(1.1);
}

.testimonial-video-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-video-info h3 {
    font-size: 1.4rem;
    color: var(--blue-dark);
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.testimonial-video-info h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--blue-light);
    bottom: 0;
    left: 0;
}

.testimonial-video-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    flex-grow: 1;
}

/* Sección de preguntas frecuentes */
.faq {
    padding: 80px 20px;
    background-color: var(--white);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: var(--gray-light);
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue-dark);
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--gray);
}

.faq-question i {
    transform: rotate(0);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    background-color: var(--white);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px 30px;
    max-height: 500px;
}

.faq-answer p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Sección CTA */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--blue-dark) 0%, #1a4bbc 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/cta-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: #111;
    color: #ccc;
    padding: 80px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--blue-light);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
}

.contact-info {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: var(--blue-light);
    font-size: 1.1rem;
    min-width: 20px;
    margin-top: 3px;
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--blue-light);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    color: #777;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    margin-right: 10px;
}

.whatsapp-float span {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Botón de volver arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--blue-dark);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--blue-light);
}

/* Animaciones en desplazamiento */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 4.5rem; }
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .testimonial-video-card { width: 350px; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    .hero h2 { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonial-video-card { width: 320px; }
    
    .testimonials-scroll-container {
        padding: 20px 50px;
    }
    
    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 39, 99, 0.95);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex: unset;
    }

    .nav-links.active { display: flex; }

    .nav-links li { margin: 10px 0; margin-left: 0; }

    .mobile-menu-btn { display: block; }
    
    .benefit-item { width: 100%; max-width: 350px; }
    
    .footer-container { grid-template-columns: 1fr; }
    
    .whatsapp-float { bottom: 20px; right: 20px; padding: 10px 15px; font-size: 1.2rem; }
    
    .back-to-top { bottom: 20px; left: 20px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.8rem; }
    .hero h2 { font-size: 1.5rem; }
    .cta-button { display: block; margin: 10px auto; max-width: 250px; }
    .whatsapp-float span { display: none; }
    .whatsapp-float { width: 50px; height: 50px; border-radius: 50%; justify-content: center; padding: 0; }
    .whatsapp-float i { margin-right: 0; }
    
    .testimonials-scroll-container {
        padding: 20px 40px;
    }
    
    .testimonial-video-card { 
        width: 280px; 
    }
    
    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .testimonial-video-info h3 { font-size: 1.2rem; }
    .testimonial-video-info p { font-size: 0.9rem; }
}