/* ===========================
   NOVARA - CSS de Página Principal
   Diseño: Limpio, Profesional
   Colores: Azul Marino + Naranja + Blanco
   =========================== */

:root {
    --navy: #1B2A4A;
    --navy-dark: #0F1A30;
    --navy-light: #2C3E60;
    --orange: #E8841A;
    --orange-light: #F5A623;
    --orange-bg: #FFF3E6;
    --orange-bg-alt: #FDECD2;
    --blue-bg: #E8F0FE;
    --green-bg: #E6F5EC;
    --white: #FFFFFF;
    --off-white: #F8F9FB;
    --gray-50: #F5F6F8;
    --gray-100: #EBEDF2;
    --gray-200: #D1D5DE;
    --gray-400: #8B92A5;
    --gray-600: #4A5568;
    --gray-800: #2D3748;
    --text-primary: #1B2A4A;
    --text-secondary: #4A5568;
    --text-muted: #8B92A5;
    --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.06);
    --shadow-md: 0 4px 20px rgba(27, 42, 74, 0.08);
    --shadow-lg: 0 8px 40px rgba(27, 42, 74, 0.12);
    --shadow-orange: 0 6px 24px rgba(232, 132, 26, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reinicio y Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header {
    margin-bottom: 60px;
}

/* ===========================
   BARRA DE NAVEGACIÓN
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 112px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--navy);
}

.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 20px;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--navy);
    cursor: pointer;
}

/* ===========================
   SECCIÓN HERO (PRINCIPAL)
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 50%, var(--orange-bg) 100%);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 132, 26, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--orange-bg);
    color: var(--orange);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
}

.hero-badge i {
    font-size: 14px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-orange);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #D47316;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 132, 26, 0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--navy);
    color: var(--navy);
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* Imagen del Hero */
.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-arrow {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 100px;
    height: 100px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* ===========================
   SECCIÓN ¿QUIÉNES SOMOS?
   =========================== */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-lead {
    font-size: 18px;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 16px;
}

.about-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.8;
}

/* ===========================
   SECCIÓN MÉTODO NOVARA
   =========================== */
.method-section {
    background: var(--off-white);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.method-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    position: relative;
}

.method-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

.method-icon {
    width: 72px;
    height: 72px;
    background: var(--orange-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.method-icon i {
    font-size: 32px;
    color: var(--orange);
}

.method-card:hover .method-icon {
    background: var(--orange);
}

.method-card:hover .method-icon i {
    color: var(--white);
}

.method-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--orange);
    color: var(--white);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.method-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.3;
}

.method-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.method-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--orange);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.method-link i {
    font-size: 18px;
    transition: transform 0.3s;
}

.method-link:hover {
    color: #D47316;
}

.method-link:hover i {
    transform: translateX(4px);
}

/* ===========================
   SECCIÓN PROGRAMAS
   =========================== */
.programs-section {
    background: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.program-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--orange);
}

.program-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.program-icon i {
    font-size: 28px;
}

.program-icon-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.program-icon-small i {
    font-size: 22px;
}

.icon-orange {
    background: var(--orange-bg);
}

.icon-orange i {
    color: var(--orange);
}

.icon-blue {
    background: var(--blue-bg);
}

.icon-blue i {
    color: #3B82F6;
}

.icon-green {
    background: var(--green-bg);
}

.icon-green i {
    color: #22C55E;
}

.program-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.program-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.program-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.program-meta span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.program-meta i {
    font-size: 15px;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--orange);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.program-link:hover {
    color: #D47316;
}

.program-card-detail {
    padding: 28px 20px;
}

/* ===========================
   SECCIÓN CTA (LLAMADA A LA ACCIÓN)
   =========================== */
.cta-section {
    background: var(--navy);
    padding: 80px 0 160px;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 132, 26, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--orange);
}

.cta-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* ===========================
   SUBMENÚ DE CONTACTO
   =========================== */
.contact-menu-wrapper {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.contact-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.contact-toggle .contact-chevron {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.contact-toggle.open .contact-chevron {
    transform: rotate(180deg);
}

.contact-submenu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 340px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    z-index: 100;
}

.contact-submenu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.contact-submenu-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.contact-submenu-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
    text-align: left;
}

.contact-group {
    margin-bottom: 16px;
}

.contact-group:last-child {
    margin-bottom: 0;
}

.contact-group-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-align: left;
}

.contact-group-label i {
    font-size: 15px;
    color: var(--orange);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-align: left;
}

.contact-item:hover {
    background: var(--orange-bg);
    color: var(--orange);
}

.contact-item i {
    font-size: 18px;
    opacity: 0;
    transform: translateX(-4px);
    transition: var(--transition);
}

.contact-item:hover i {
    opacity: 1;
    transform: translateX(0);
}

.contact-socials {
    display: flex;
    gap: 10px;
    padding: 4px 0;
}

.contact-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    color: var(--text-secondary);
    font-size: 22px;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.contact-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Instagram - Degradado de colores de marca */
.contact-social-btn:nth-child(1):hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: var(--white);
    border-color: transparent;
}

/* Facebook - Color de marca */
.contact-social-btn:nth-child(2):hover {
    background: #1877F2;
    color: var(--white);
    border-color: transparent;
}

/* TikTok - Color de marca */
.contact-social-btn:nth-child(3):hover {
    background: #010101;
    color: var(--white);
    border-color: transparent;
}


/* ===========================
   PIE DE PÁGINA
   =========================== */
.footer {
    background: var(--navy-dark);
    padding: 50px 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .logo {
    color: var(--white);
}

.footer .logo-icon {
    background: var(--orange);
}

.footer-logo p {
    color: var(--gray-400);
    margin-top: 10px;
    font-size: 14px;
}

.footer-nav {
    display: flex;
    gap: 28px;
}

.footer-nav a {
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
}

/* ===========================
   ANIMACIÓN DE REVELADO AL SCROLL
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.method-card.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.method-card.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.method-card.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.program-card.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.program-card.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.program-card.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.program-card.reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.program-card.reveal:nth-child(6) {
    transition-delay: 0.5s;
}

/* ===========================
   DISEÑO RESPONSIVO
   =========================== */
@media (max-width: 1024px) {
    .method-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 112px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid var(--gray-50);
        font-size: 16px;
    }

    .nav-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-wrapper img {
        height: 320px;
    }

    .hero-arrow {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        text-align: center;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .section {
        padding: 70px 0;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .hero-title {
        font-size: 32px;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}