/* ============================================================
   REYES IT - BASE (Común a todas las páginas)
   Paleta de colores:
   #1f5ebb  (Azul primario)
   #2e7fd6  (Azul secundario)
   #49a7e8  (Azul terciario)
   #7fd8f7  (Azul claro)
   #b8f1ff  (Azul muy claro)
   ============================================================ */

/* ---------- RESET Y BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f0f4ff;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1f5ebb, #49a7e8);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1f5ebb;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: #1a1a2e;
    text-decoration: none;
    position: relative;
}

.logo-img {
    height: 120px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05) rotate(-3deg);
}

.logo-text {
    font-size: 2.2rem;
}

.logo-text span {
    background: linear-gradient(135deg, #1f5ebb, #49a7e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- NAVEGACIÓN ---------- */
.nav-list {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-list a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a2e;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #1f5ebb, #49a7e8);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover {
    color: #1f5ebb;
}

.nav-list a.active {
    color: #1f5ebb;
}

/* ---------- IDIOMA ---------- */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(31, 94, 187, 0.08);
    border: 1px solid rgba(31, 94, 187, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(31, 94, 187, 0.15);
    border-color: #1f5ebb;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(31, 94, 187, 0.15);
}

.lang-btn i {
    color: #1f5ebb;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    list-style: none;
    padding: 8px 0;
    min-width: 180px;
    display: none;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
}

.lang-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.lang-dropdown li {
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a2e;
}

.lang-dropdown li:hover {
    background: rgba(31, 94, 187, 0.08);
    color: #1f5ebb;
}

.lang-dropdown li:first-child {
    border-radius: 16px 16px 0 0;
}
.lang-dropdown li:last-child {
    border-radius: 0 0 16px 16px;
}

/* ---------- HAMBURGUESA ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #1a1a2e;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: #1f5ebb;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: #1f5ebb;
}

/* ---------- SEPARADORES ---------- */
.section-divider {
    height: 60px;
    background: transparent;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #1f5ebb, #49a7e8, transparent);
    border-radius: 3px;
}

.section-divider-alt {
    background: #f8faff;
}

.section-divider-alt::after {
    background: linear-gradient(90deg, transparent, #2e7fd6, #7fd8f7, transparent);
}

/* ---------- BOTONES ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #1f5ebb, #2e7fd6);
    color: white;
    box-shadow: 0 4px 20px rgba(31, 94, 187, 0.3);
}

.btn-primary:hover {
    color: #b8f1ff;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(31, 94, 187, 0.4);
}

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: transparent;
    color: #1f5ebb;
    border: 2px solid rgba(31, 94, 187, 0.2);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(31, 94, 187, 0.05);
    border-color: #1f5ebb;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(31, 94, 187, 0.1);
}

.btn-outline {
    background: transparent;
    color: #1f5ebb;
    border: 2px solid #1f5ebb;
}

.btn-outline:hover {
    background: #1f5ebb;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(31, 94, 187, 0.2);
}

.btn-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 4px 20px rgba(31, 94, 187, 0.3);
    }
    50% {
        box-shadow: 0 8px 40px rgba(31, 94, 187, 0.5), 0 0 60px rgba(31, 94, 187, 0.1);
    }
}

/* ---------- SECCIONES ---------- */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    padding: 6px 24px;
    background: rgba(31, 94, 187, 0.08);
    border: 1px solid rgba(31, 94, 187, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f5ebb;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
}

.section-title .highlight {
    background: linear-gradient(135deg, #1f5ebb, #49a7e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: #4a4a6a;
    font-size: 1.1rem;
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- CTA ---------- */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #0f1a3a, #1a2d6b, #1f5ebb);
    overflow: hidden;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(73, 167, 232, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(127, 216, 247, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #7fd8f7;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-title span {
    background: linear-gradient(135deg, #7fd8f7, #b8f1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}

.btn-cta-primary {
    background: white;
    color: #1f5ebb;
    padding: 18px 48px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.btn-cta-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.25);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 18px 40px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.cta-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-trust span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-trust span i {
    color: #7fd8f7;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #0a0a18;
    color: #b0b0c8;
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-logo-img {
    height: 65px;
    width: auto;
}

.footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: white;
}

.footer-logo-text span {
    background: linear-gradient(135deg, #1f5ebb, #49a7e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: #8888a8;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #8888a8;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.footer-social a:hover {
    background: #1f5ebb;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(31, 94, 187, 0.3);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #1f5ebb, #49a7e8);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: #8888a8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links ul a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    color: #8888a8;
    font-size: 0.95rem;
}

.footer-contact-list li i {
    color: #1f5ebb;
    width: 18px;
    margin-top: 3px;
    font-size: 0.95rem;
}

.footer-contact-list li div {
    display: flex;
    flex-direction: column;
}

.footer-contact-list li div span {
    font-size: 0.75rem;
    color: #666688;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.footer-contact-list li div a,
.footer-contact-list li div {
    color: #b0b0c8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-contact-list li div a:hover {
    color: white;
}

.footer-bottom {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: #666688;
}

.footer-bottom-container p strong {
    color: #b0b0c8;
}

.footer-bottom-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-bottom-links a {
    color: #666688;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-bottom-links .separator {
    color: #444466;
}

/* ---------- ANIMACIONES ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   CORRECCIÓN: Evitar duplicación de texto en animaciones
   ============================================================ */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transform: translateX(0) !important;
}

.services-grid,
.services-grid-4,
.tech-grid-6,
.process-timeline {
    overflow: visible !important;
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transform: translateX(0) !important;
}

/* ============================================================
   CORRECCIÓN PARA CONTACTO - EVITAR DUPLICACIÓN
   ============================================================ */
.contact-form-card,
.contact-info-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ---------- RESPONSIVE BASE ---------- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .hero-container {
        gap: 40px;
    }
    .section-title {
        font-size: 2.4rem;
    }
    .cta-title {
        font-size: 2.4rem;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 30px 30px;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.08);
        transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .navbar.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 16px;
    }

    .nav-list a {
        font-size: 1.1rem;
        padding: 8px 0;
    }

    .language-selector {
        margin-left: auto;
        margin-right: 8px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        margin: 16px auto 0;
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-illustration {
        max-width: 300px;
    }

    .hero-illustration .icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        border-radius: 20px;
    }

    .hero-orb.orb-1 {
        width: 120px;
        height: 120px;
    }
    .hero-orb.orb-2 {
        width: 80px;
        height: 80px;
    }

    .hero-wave {
        display: none;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-values {
        grid-template-columns: 1fr 1fr;
    }

    .about-illustration {
        display: none;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper,
    .contact-info {
        padding: 28px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .cta-trust {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand .footer-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-list li {
        justify-content: center;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }

    .section-divider {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-stats .stat-item {
        text-align: center;
    }

    .hero-illustration {
        max-width: 200px;
    }

    .hero-illustration .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        border-radius: 14px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper,
    .contact-info {
        padding: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 55px;
    }
    .logo-text {
        font-size: 1.6rem;
    }
    .footer-logo-img {
        height: 50px;
    }
    .footer-logo-text {
        font-size: 1.4rem;
    }
}