/* ==========================================
   DESIGN TOKENS (Dark Mode & Light Mode)
   ========================================== */
:root {
    /* Base Colors */
    --cobalt: #C5A059; /* Medium Gold */
    --cobalt-light: #E8C98B; /* Light Gold */
    --cyan: #D4AF37; /* Bright Gold */
    --cyan-glow: rgba(197, 160, 89, 0.4);
    --platinum: #e2e8f0;
    
    /* Dark Theme (Default) */
    --bg-main: #05050f;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-section-alt: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(197, 160, 89, 0.15);
    
    --text-main: #94a3b8;
    --text-heading: #f8fafc;
    --input-bg: rgba(0,0,0,0.2);
    --input-text: white;

    --gradient-primary: linear-gradient(135deg, var(--cobalt) 0%, var(--cyan) 100%);
    --gradient-text: linear-gradient(to right, var(--cobalt-light), var(--cyan));

    /* Layout */
    --container-max: 1140px;
    --section-py: clamp(4rem, 8vw, 8rem);
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 16px;
    --radius-full: 99px;
}

[data-theme="light"] {
    --cobalt: #8E6D38; /* Darker Gold for Light Mode */
    --cyan: #B8860B; /* Dark Goldenrod */
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-section-alt: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(142, 109, 56, 0.2);
    
    --text-main: #475569;
    --text-heading: #0f172a;
    --input-bg: #ffffff;
    --input-text: #0f172a;
    
    --gradient-text: linear-gradient(to right, var(--cobalt), var(--cyan));
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-heading);
    line-height: 1.2;
    font-weight: 700;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
}

.section-title--left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Utilities */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px var(--cyan-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--cyan-glow);
}

.btn--outline {
    background: transparent;
    color: var(--text-heading);
    border: 1px solid var(--glass-border);
}

.btn--outline:hover {
    background: var(--glass-border);
}

.btn--whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.btn--block {
    width: 100%;
}

/* ==========================================
   HEADER & TOGGLES
   ========================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.header.scrolled {
    padding: 1rem 0;
    background: var(--bg-main);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
}

.logo-img {
    height: 80px; /* Logo más grande */
    width: auto;
    object-fit: contain;
}

.nav__menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--cyan);
}

.nav__link--cta {
    background: rgba(10, 66, 224, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    color: var(--text-heading);
}

.nav__link--cta:hover {
    background: var(--gradient-primary);
    color: white;
}

/* Controls (Lang & Theme) */
.nav__controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.control-btn {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-heading);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.control-btn:hover {
    border-color: var(--cyan);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-heading);
    transition: 0.3s;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
    display: flex;
    align-items: flex-start;
}

.hero .container {
    width: 100%;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.glow--blue {
    background: var(--cobalt);
    top: -20%;
    left: -10%;
    animation: float 10s infinite alternate ease-in-out;
}

.glow--cyan {
    background: var(--cyan);
    bottom: -20%;
    right: -10%;
    animation: float 12s infinite alternate-reverse ease-in-out;
}
.hero__wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero__content-left {
    text-align: left;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero__title--small {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
}

.hero__subtitle {
    font-size: clamp(1.2rem, 2vw, 1.35rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 750px;
    color: var(--text-main);
}

.hero__subtitle--large {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    max-width: 100%;
}

.hero__subtitle strong {
    color: var(--text-heading);
    font-weight: 700;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.hero__image-right {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero__image-container {
    width: 105%;
    margin-left: -5%;
    border-radius: 20px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 55, 0.15);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: var(--transition);
    overflow: hidden;
}

.hero__image-container:hover {
    transform: rotateY(0) rotateX(0);
    box-shadow: 0 35px 65px -10px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.25);
}

.hero__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

@media (max-width: 900px) {
    .hero__wrapper { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero__content-left { text-align: center; }
    .hero__actions { justify-content: center; }
    .hero__image-container { transform: none; padding: 0.5rem; }
}

/* ==========================================
   TRUST (Métricas)
   ========================================== */
.trust {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-section-alt);
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust__number {
    font-size: 3rem;
    color: var(--cyan);
    margin-bottom: 0.5rem;
}

.trust__label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ==========================================
   SERVICES
   ========================================== */
.services {
    padding: var(--section-py) 0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ==========================================
   PROCESS (Timeline)
   ========================================== */
.process {
    padding: var(--section-py) 0;
    position: relative;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline__item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 3rem;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--bg-main);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--cyan);
    font-size: 1.2rem;
    z-index: 1;
}

.timeline__content {
    padding: 2rem;
}

.timeline__content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* ==========================================
   SECURITY
   ========================================== */
.security {
    padding: var(--section-py) 0;
}

.security__container {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(10, 66, 224, 0.05), rgba(6, 182, 212, 0.05));
    border: 1px solid var(--glass-border);
}

.security__text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ==========================================
   FAQ
   ========================================== */
.faq {
    padding: var(--section-py) 0;
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq__item {
    overflow: hidden;
}

.faq__question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    text-align: left;
    color: var(--text-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq__question svg {
    transition: transform 0.3s;
}

.faq__item.faq-open .faq__question svg {
    transform: rotate(180deg);
    color: var(--cyan);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq__answer p {
    padding: 0 2rem 1.5rem;
}

/* ==========================================
   CONTACT
   ========================================== */
.contact {
    padding: var(--section-py) 0;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact__text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact__form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--input-text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background: var(--bg-section-alt);
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer__links h4 {
    margin-bottom: 1.5rem;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer__links a:hover {
    color: var(--cyan);
}

.footer__bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards ease-out;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.3s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0px 6px 25px rgba(37, 211, 102, 0.6);
    color: #FFF;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
    .security__container {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: var(--bg-main);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 6rem 2rem;
        transition: 0.3s ease;
    }
    .nav__menu.active {
        right: 0;
    }
    .nav__toggle {
        display: flex;
        z-index: 1001;
    }
    .nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav__toggle.active span:nth-child(2) { opacity: 0; }
    .nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero__actions {
        flex-direction: column;
    }
    .footer__top {
        grid-template-columns: 1fr;
    }
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
@media (max-width: 480px) {
    .timeline::before { left: 15px; }
    .timeline__item { padding-left: 45px; }
    .timeline__marker { width: 32px; height: 32px; font-size: 0.9rem; }
    .contact__form {
        padding: 1.5rem;
    }
}
