/* ===========================================
   CLINIC AI — PREMIUM DARK STYLES
   Color: Emerald Green #10B981
   =========================================== */

/* ---- CSS VARIABLES ---- */
:root {
    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Green Scale */
    --primary-50: #ECFDF5;
    --primary-100: #D1FAE5;
    --primary-200: #A7F3D0;
    --primary-300: #6EE7B7;
    --primary-400: #34D399;
    --primary-500: #10B981;
    /* BASE */
    --primary-600: #059669;
    --primary-700: #047857;
    --primary-800: #065F46;
    --primary-900: #064E3B;

    /* RGB for rgba() usage */
    --primary-rgb: 16, 185, 129;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* Accents */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;

    /* Layout */
    --max-width: 1200px;
    --section-padding: 100px 0;
    --border-radius: 24px;
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
}

/* ---- TYPOGRAPHY ---- */
h1,
h2,
h3,
h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ---- GRADIENT TEXT ---- */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 50%, var(--primary-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- SECTION LAYOUT ---- */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-padding);
    padding-left: 24px;
    padding-right: 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-400);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    max-width: 560px;
    margin: 16px auto 0;
    line-height: 1.7;
}

/* ============ PARTICLES ============ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--primary-500);
    opacity: 0;
    animation: float-particle 20s infinite ease-in-out;
    will-change: transform, opacity;
}

@keyframes float-particle {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    25% {
        transform: translate(80px, -120px);
        opacity: 0.4;
    }

    50% {
        transform: translate(-40px, -250px);
        opacity: 0.7;
    }

    75% {
        transform: translate(-80px, -150px);
        opacity: 0.3;
    }

    90% {
        opacity: 0;
    }

    100% {
        transform: translate(0, 0);
        opacity: 0;
    }
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 14px 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.5));
}

.logo-accent {
    color: var(--primary-500);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-tertiary);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(var(--primary-rgb), 0.08);
}

.nav-cta-link {
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    color: var(--primary-400) !important;
    font-weight: 600;
}

.nav-cta-link:hover {
    background: rgba(var(--primary-rgb), 0.25) !important;
    color: var(--primary-300) !important;
    border-color: rgba(var(--primary-rgb), 0.6) !important;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
}

/* ---- Mobile Menu ---- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1100;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(24px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    display: flex;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.mobile-nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 12px 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.08);
}

/* ============ BUTTONS ============ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 40%, var(--primary-400) 70%, var(--primary-500) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    box-shadow:
        0 0 0 1px rgba(var(--primary-rgb), 0.5),
        0 4px 24px rgba(var(--primary-rgb), 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 0 0 2px rgba(var(--primary-rgb), 0.8),
        0 8px 40px rgba(var(--primary-rgb), 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: brightness(1.1);
}

.btn-primary.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
    width: 100%;
    justify-content: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: rgba(var(--primary-rgb), 0.5);
    color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.06);
    transform: translateY(-2px);
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============ GLASS CARD ============ */
.glass-card {
    background: linear-gradient(135deg,
            rgba(var(--primary-rgb), 0.08) 0%,
            rgba(var(--primary-rgb), 0.04) 50%,
            rgba(var(--primary-rgb), 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: var(--border-radius);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow:
        0 25px 50px -12px rgba(var(--primary-rgb), 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

/* ============ SCROLL ANIMATIONS ============ */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
    opacity: 0;
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s forwards;
}

.animate-fade-rotate {
    opacity: 0;
    animation: fade-in-rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Float animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-18px) rotate(1.5deg);
    }

    50% {
        transform: translateY(-8px) rotate(-1.5deg);
    }

    75% {
        transform: translateY(-24px) rotate(1deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.5), 0 4px 24px rgba(var(--primary-rgb), 0.4), 0 0 60px rgba(var(--primary-rgb), 0.2);
    }

    50% {
        box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.8), 0 8px 40px rgba(var(--primary-rgb), 0.6), 0 0 80px rgba(var(--primary-rgb), 0.4);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.4;
    }
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--primary-rgb), 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 50%, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ---- Hero Content ---- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-400);
    margin-bottom: 24px;
    width: fit-content;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-500);
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.8);
    animation: pulse-glow 2s ease infinite;
    flex-shrink: 0;
}

.hero-title {
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-subtitle strong {
    color: var(--primary-400);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-400);
    line-height: 1;
}

.stat-plus {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-400);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-quaternary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(var(--primary-rgb), 0.2);
    flex-shrink: 0;
}

/* ---- Hero Visual ---- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.hero-glow-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    animation: spin-slow 20s linear infinite;
}

.hero-glow-ring.ring-2 {
    inset: -50px;
    border-color: rgba(var(--primary-rgb), 0.1);
    animation: spin-slow 35s linear infinite reverse;
    border-style: dashed;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.5)) drop-shadow(0 0 80px rgba(var(--primary-rgb), 0.3));
    border-radius: 50%;
}

.hero-svg-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 30px rgba(var(--primary-rgb), 0.6));
}

/* Floating Cards on Hero */
.hero-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(9, 9, 11, 0.8);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(var(--primary-rgb), 0.15);
}

.card-1 {
    top: 10%;
    right: -5%;
    animation: float 5s ease-in-out infinite 0.5s;
}

.card-2 {
    bottom: 15%;
    left: -8%;
    animation: float 7s ease-in-out infinite 1s;
}

.float-card-icon {
    font-size: 1.1rem;
}

.float-card-text {
    color: var(--text-secondary);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-500);
    border-radius: 50%;
    animation: scroll-bounce 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.8);
}

/* ============ TRUST BAR ============ */
.trust-bar {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.trust-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.trust-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-quaternary);
    margin-bottom: 24px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-quaternary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    filter: grayscale(1);
}

.trust-item:hover {
    color: var(--primary-400);
    filter: grayscale(0);
}

/* ============ SERVICIOS ============ */
.servicios {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---- Flip Card ---- */
.service-card-flip {
    height: 380px;
    perspective: 1200px;
    cursor: pointer;
}

.service-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Flip triggered by JS .hovered class — eliminates CSS :hover jitter in 3D space */
.service-card-flip.hovered .service-card-inner,
.service-card-flip.flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

/* Front */
.service-card-front {
    background: var(--bg-tertiary);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.service-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1a12, #0d1f17, #0a1a12);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card-flip.hovered .service-image {
    transform: scale(1.08);
}

.service-icon-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    gap: 8px;
}

.service-icon-badge {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title-front {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.service-hover-hint {
    font-size: 0.75rem;
    color: var(--primary-400);
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 2px;
}

.service-card-flip:hover .service-hover-hint {
    opacity: 1;
}

/* Back */
.service-card-back {
    transform: rotateY(180deg);
    padding: 28px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    border-radius: 20px !important;
    background: linear-gradient(135deg,
            rgba(var(--primary-rgb), 0.1) 0%,
            rgba(9, 9, 11, 0.95) 50%,
            rgba(var(--primary-rgb), 0.08) 100%) !important;
}

.service-back-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title-back {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.service-description {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.feature-tag {
    padding: 4px 12px;
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-400);
}

.service-cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-400);
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-cta-btn:hover {
    background: rgba(var(--primary-rgb), 0.25);
    color: var(--primary-300);
}

/* ============ RESULTADOS ============ */
.resultados {
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.result-card {
    padding: 36px 28px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 4px;
}

.result-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-400);
    line-height: 1;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-align: center;
}

.result-bar {
    width: 100%;
    height: 4px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.result-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-700), var(--primary-400));
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.result-card.visible .result-bar-fill {
    width: var(--fill);
}

/* ============ TESTIMONIOS ============ */
.testimonios {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 32px !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stars {
    color: var(--primary-400);
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-info strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-quaternary);
}

/* ============ SOBRE NOSOTROS ============ */
.sobre-nosotros {
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
}

.about-logo-display {
    width: 220px;
    height: 220px;
    background: rgba(var(--primary-rgb), 0.06);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 0 60px rgba(var(--primary-rgb), 0.2),
        inset 0 0 40px rgba(var(--primary-rgb), 0.05);
    animation: float 7s ease-in-out infinite;
}

.about-logo-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.5));
}

.about-badge-1,
.about-badge-2 {
    position: absolute;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-400);
    border-radius: 12px !important;
    white-space: nowrap;
}

.about-badge-1 {
    top: 10%;
    right: 0;
    animation: float 5s ease-in-out infinite 1s;
}

.about-badge-2 {
    bottom: 15%;
    left: 0;
    animation: float 6s ease-in-out infinite 2s;
}

/* About Content */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-tertiary);
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary-400);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-500);
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.7);
    flex-shrink: 0;
}

/* ============ CTA FINAL (CONTACTO) ============ */
.cta-final {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    margin: 16px 0;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Form */
.cta-form {
    padding: 40px !important;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2371717A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-quaternary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb), 0.05);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-quaternary);
    margin-top: 16px;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.4));
}

.footer-brand-text {
    font-size: 0.9rem;
    color: var(--text-quaternary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-quaternary);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary-400);
    transform: translateY(-2px);
}

.footer-col-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-quaternary);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-400);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-quaternary);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: var(--text-quaternary);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-400);
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-primary);
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--primary-rgb), 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.2rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero-image-wrapper {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-badge {
        margin: 0 auto 24px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        width: 340px;
        height: 340px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        max-width: 360px;
        margin: 0 auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 70px 0;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-container {
        padding: 40px 20px;
    }

    .hero-image-wrapper {
        width: 260px;
        height: 260px;
    }

    .card-1,
    .card-2 {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .service-card-flip {
        height: 320px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-form {
        padding: 24px !important;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .trust-logos {
        gap: 20px;
    }

    .trust-item {
        font-size: 0.75rem;
    }

    /* Fewer particles on mobile */
    .particle:nth-child(n+20) {
        display: none;
    }
}

@media (max-width: 420px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* ============ CUSTOM SELECT DROPDOWN ============ */
.custom-select-wrap {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-quaternary);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    min-height: 46px;
}

.custom-select-trigger.has-value {
    color: var(--text-primary);
}

.custom-select-wrap.open .custom-select-trigger,
.custom-select-trigger:focus {
    border-color: rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb), 0.05);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.select-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    color: var(--text-quaternary);
}

.custom-select-wrap.open .select-arrow {
    transform: rotate(180deg);
    color: var(--primary-400);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(10, 20, 15, 0.98);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 12px;
    overflow: hidden;
    z-index: 200;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(var(--primary-rgb), 0.08),
        0 0 20px rgba(var(--primary-rgb), 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scaleY(0.96);
    transform-origin: top center;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    max-height: 260px;
    overflow-y: auto;
}

.custom-select-dropdown::-webkit-scrollbar {
    width: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 2px;
}

.custom-select-wrap.open .custom-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
    pointer-events: auto;
}

.custom-option {
    padding: 11px 16px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option[data-value=''] {
    color: var(--text-quaternary);
    font-style: italic;
}

.custom-option:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-400);
    padding-left: 22px;
}

.custom-option.is-selected {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-400);
    font-weight: 600;
}

.custom-option.is-selected::after {
    content: '✓';
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--primary-500);
}