/* === VARIABLES === */
:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --blue: #0ea5e9;
    --blue-glow: rgba(14, 165, 233, 0.15);
    --orange: #f59e0b;
    --orange-glow: rgba(245, 158, 11, 0.15);
    --gray-100: #f1f5f9;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.25);
}

/* === SCROLL === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-100);
    line-height: 1.6;
    background: var(--navy);
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:focus-visible, .btn:focus-visible, button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

ul {
    padding-left: 1.5rem;
}

/* === LAYOUT === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--navy);
}

.section-alt {
    background: var(--navy-light);
}

/* === NAV === */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--orange);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.nav-active {
    color: var(--blue);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--gray-800);
}

.lang-switch a {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--gray-400);
}

.lang-switch a.active {
    background: var(--blue);
    color: var(--white);
}

.lang-switch a.lang-soon {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

/* === HERO === */
.hero {
    padding: 10rem 1.5rem 6rem;
    text-align: center;
    background: linear-gradient(160deg, var(--navy) 0%, #0c2d4a 50%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 60% 60%, rgba(14, 165, 233, 0.05) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 30%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    background: rgba(14, 165, 233, 0.08);
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-weight: 800;
    line-height: 1.15;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

.hero-langs {
    font-size: 1rem;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    margin: 0.5rem;
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: #1a9e4a;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(26, 158, 74, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(26, 158, 74, 0.4);
}

.btn-secondary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* === SERVICES === */
#servicios h2, .section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-card {
    background: var(--navy-light);
    border: 1px solid rgba(14, 165, 233, 0.08);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.4s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(14, 165, 233, 0.3) 2%,
        transparent 4%,
        transparent 50%,
        rgba(14, 165, 233, 0.2) 51%,
        transparent 53%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    animation: spark-rotate 1.5s linear infinite paused;
}

.service-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius) - 1px);
    background: var(--navy-light);
    z-index: 0;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.3), 0 0 50px rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.4);
}

.service-card:nth-child(3),
.service-card:nth-child(4) {
    border-left-color: var(--orange);
}

.service-card:nth-child(3)::before,
.service-card:nth-child(4)::before {
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(245, 158, 11, 0.35) 2%,
        transparent 4%,
        transparent 50%,
        rgba(245, 158, 11, 0.25) 51%,
        transparent 53%
    );
}

.service-card:nth-child(3):hover,
.service-card:nth-child(4):hover {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.3), 0 0 50px rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
}

.service-card:hover .service-icon svg {
    filter: drop-shadow(0 0 10px currentColor);
    transition: filter 0.3s;
}

@keyframes spark-rotate {
    to { transform: rotate(360deg); }
}

.service-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.08);
}

.service-card:nth-child(2) .service-icon,
.service-card:nth-child(3) .service-icon {
    background: rgba(245, 158, 11, 0.08);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.service-card p {
    color: var(--gray-300);
    font-size: 0.95rem;
}

/* === CASES === */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.case-card {
    background: var(--navy);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform 0.3s, box-shadow 0.4s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(14, 165, 233, 0.25) 2%,
        transparent 4%,
        transparent 50%,
        rgba(245, 158, 11, 0.2) 51%,
        transparent 53%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    animation: spark-rotate 2s linear infinite paused;
}

.case-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

.case-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius) - 1px);
    background: var(--navy);
    z-index: 0;
}

.case-card > * {
    position: relative;
    z-index: 1;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.2), 0 0 50px rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
}

.case-problem {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-style: italic;
    color: var(--gray-300);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.case-problem svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.case-who {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

.case-solution {
    color: var(--gray-300);
    font-size: 0.95rem;
}

.cases-cta, .section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.cases-cta p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

/* === FEATURES === */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.feature {
    flex: 0 1 calc(33.333% - 1.34rem);
    min-width: 240px;
}

.feature {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: transform 0.3s, box-shadow 0.4s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(245, 158, 11, 0.3) 1.5%,
        transparent 3.5%,
        transparent 50%,
        rgba(14, 165, 233, 0.2) 51%,
        transparent 53%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    animation: spark-rotate 1.8s linear infinite paused;
}

.feature:hover::before {
    opacity: 1;
    animation-play-state: running;
}

.feature::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius) - 1px);
    background: var(--navy-light);
    z-index: 0;
}

.feature > * {
    position: relative;
    z-index: 1;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.2), 0 0 50px rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.feature-icon {
    margin-bottom: 0.75rem;
    transition: filter 0.3s;
}

.feature:hover .feature-icon {
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
}

.feature strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--orange);
}

.feature p {
    color: var(--gray-300);
    font-size: 0.95rem;
}

/* === ABOUT === */
.about-intro {
    max-width: 700px;
    margin-bottom: 3rem;
}

.about-intro p {
    font-size: 1.15rem;
    color: var(--gray-300);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(14, 165, 233, 0.04);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: var(--radius);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.about-card {
    background: var(--navy);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(14, 165, 233, 0.25) 2%,
        transparent 4%,
        transparent 50%,
        rgba(245, 158, 11, 0.2) 51%,
        transparent 53%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    animation: spark-rotate 2s linear infinite paused;
}

.about-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

.about-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius) - 1px);
    background: var(--navy);
    z-index: 0;
}

.about-card > * {
    position: relative;
    z-index: 1;
}

.about-card:hover {
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.2), 0 0 50px rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
}

.about-card h3 {
    font-size: 1.1rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

.about-card ul {
    list-style: none;
    padding: 0;
}

.about-card li {
    color: var(--gray-300);
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.95rem;
}

.about-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

/* === TESTIMONIALS === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.testimonial {
    background: var(--navy);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
}

.testimonial::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 3rem;
    color: var(--blue);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-text {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimonial-author strong {
    color: var(--white);
    font-size: 0.95rem;
}

.testimonial-author span {
    color: var(--gray-400);
    font-size: 0.8rem;
}

/* === ABOUT PHOTO === */
.about-photo {
    margin-bottom: 2rem;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    border: 2px dashed rgba(14, 165, 233, 0.2);
    border-radius: var(--radius);
    background: rgba(14, 165, 233, 0.03);
}

.photo-placeholder p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* === ZONE MAP === */
.about-zone {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(14, 165, 233, 0.04);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: var(--radius);
}

.zone-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.zone-header strong {
    color: var(--white);
    font-size: 1rem;
}

.zone-header svg {
    flex-shrink: 0;
}

.zone-map {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-item svg {
    margin-bottom: 0.25rem;
}

.contact-item strong {
    display: block;
    color: var(--white);
}

.contact-item a {
    color: var(--blue);
}

.contact-item p {
    color: var(--gray-400);
}

/* === FOOTER === */
.footer {
    padding: 3rem 1.5rem 1.5rem;
    background: #070d1a;
    color: var(--gray-400);
    font-size: 0.9rem;
    border-top: 1px solid rgba(14, 165, 233, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-col strong {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.footer-col a {
    color: var(--gray-400);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--gray-400);
    font-size: 0.8rem;
}

.footer-bottom a:hover {
    color: var(--blue);
}

/* === WHATSAPP FLOTANTE === */
.wa-float {
    display: none;
}

@media (max-width: 768px) {
    .wa-float {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #1a9e4a;
        box-shadow: 0 4px 16px rgba(26, 158, 74, 0.4);
        z-index: 90;
        opacity: 0;
        transform: scale(0.8);
        pointer-events: none;
        transition: opacity 0.3s, transform 0.3s;
    }

    .wa-float.visible {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .wa-float:active {
        transform: scale(0.95);
    }
}

/* === LEGAL PAGE === */
.legal-page h3 {
    color: var(--blue);
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-page p {
    color: var(--gray-300);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* === MOBILE === */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 1rem;
    }

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

    .lang-switch {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--gray-800);
        padding-top: 1rem;
    }

    .hero {
        padding: 8rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .nav-links a {
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 44px;
        justify-content: center;
    }

    .contact-item a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .features-grid .feature {
        flex: 0 1 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
