/* ============================================================
   AG Education & Training Corp. — v2 Lime Green + Purple-Lilac
   3D, Glassmorphism, Animated, Dynamic
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
    /* Brand: Lime Green + Purple/Lilac */
    --lime: #a8e063;
    --lime-light: #c6f68d;
    --lime-dark: #7bc043;
    --lime-glow: rgba(168, 224, 99, 0.4);
    --purple: #9b59b6;
    --purple-light: #c39bd3;
    --purple-dark: #7d3c98;
    --lilac: #d2b4de;
    --lilac-light: #e8daef;
    --purple-glow: rgba(155, 89, 182, 0.35);

    --dark: #1a1030;
    --dark-2: #241645;
    --dark-3: #0f0a1a;
    --gray-900: #2d2342;
    --gray-700: #555068;
    --gray-500: #8c839e;
    --gray-300: #d5d0e0;
    --gray-200: #e8e4f0;
    --gray-100: #f5f3fa;
    --white: #ffffff;
    --orange: #e17055;
    --green: #00b894;

    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 4px 24px rgba(26, 16, 48, 0.08);
    --shadow-lg: 0 16px 48px rgba(26, 16, 48, 0.12);
    --shadow-glow: 0 8px 32px var(--lime-glow), 0 4px 16px var(--purple-glow);
    --shadow-card: 0 8px 32px rgba(155, 89, 182, 0.08);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-sans);
    color: var(--gray-700);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---------- UTILITIES ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.required { color: var(--orange); }
.text-gradient {
    background: linear-gradient(135deg, var(--lime-dark), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-light {
    background: linear-gradient(135deg, var(--lime-light), var(--lilac));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- CURSOR GLOW ---------- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,224,99,0.07), rgba(155,89,182,0.04), transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}
.cursor-glow.active { opacity: 1; }

/* ---------- ANTI-BLUR for transforms ---------- */
.tilt-card,
.service-card,
.location-card,
.value-card,
.gestoria-card,
.profession-card,
.about-img-wrapper {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.4s ease;
}

/* ---------- GLASSMORPHISM ---------- */
.glass-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-sm);
}
.glass-card-subtle {
    background: rgba(245,243,250,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(210,180,222,0.15);
    border-radius: var(--radius-sm);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--white);
    box-shadow: 0 4px 20px var(--purple-glow);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px var(--purple-glow);
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--lime), var(--purple), var(--lime));
    background-size: 300% 300%;
    animation: glowRotate 3s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition);
}
.btn-glow:hover::after { opacity: 1; }
.btn-glass {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255,255,255,0.15);
}
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(26, 16, 48, 0.08);
    padding: 8px 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
@media (max-width: 640px) {
    .logo-img { width: 34px; height: 34px; }
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    transition: color var(--transition);
}
.logo-sub {
    font-weight: 400;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}
.navbar.scrolled .logo-name { color: var(--dark); }
.navbar.scrolled .logo-sub { color: var(--gray-500); }

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-link {
    padding: 7px 11px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    transition: all var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lime), var(--purple));
    transition: all var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-link:hover { color: var(--white); }
.navbar.scrolled .nav-link { color: var(--gray-700); }
.navbar.scrolled .nav-link:hover { color: var(--purple); }

.nav-link-cta {
    background: linear-gradient(135deg, var(--lime-dark), var(--purple)) !important;
    color: var(--white) !important;
    margin-left: 8px;
    border-radius: 50px;
    padding: 8px 20px;
}
.nav-link-cta::after { display: none; }
.nav-link-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 16px var(--purple-glow); }
.nav-link i { margin-right: 4px; }
.navbar.scrolled .nav-link-cta {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark)) !important;
    color: var(--white) !important;
}

.nav-social a {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: all var(--transition);
}
.nav-social a:hover { color: var(--lime); }
.navbar.scrolled .nav-social a { color: var(--gray-500); }
.navbar.scrolled .nav-social a:hover { color: var(--purple); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--dark); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(15, 10, 26, 0.92) 0%,
            rgba(125, 60, 152, 0.75) 40%,
            rgba(123, 192, 67, 0.45) 80%,
            rgba(168, 224, 99, 0.3) 100%
        );
}

/* Floating 3D shapes */
.hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.shape {
    position: absolute;
    border-radius: 20%;
    opacity: 0.12;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
.shape-1 {
    width: 80px; height: 80px;
    background: var(--lime);
    top: 15%; left: 8%;
    animation: float3D 8s infinite;
    transform: rotate(45deg);
}
.shape-2 {
    width: 60px; height: 60px;
    background: var(--purple-light);
    top: 25%; right: 12%;
    animation: float3D 10s 1s infinite;
    border-radius: 50%;
}
.shape-3 {
    width: 100px; height: 100px;
    background: var(--lilac);
    bottom: 20%; left: 15%;
    animation: float3D 12s 2s infinite;
    border-radius: 30%;
}
.shape-4 {
    width: 40px; height: 40px;
    background: var(--lime-light);
    top: 60%; right: 8%;
    animation: float3D 9s 0.5s infinite;
    transform: rotate(30deg);
}
.shape-5 {
    width: 120px; height: 120px;
    border: 2px solid rgba(168, 224, 99, 0.15);
    top: 10%; right: 25%;
    animation: float3D 14s 3s infinite;
    border-radius: 40%;
}
.shape-6 {
    width: 50px; height: 50px;
    border: 2px solid rgba(155, 89, 182, 0.15);
    bottom: 30%; right: 30%;
    animation: float3D 11s 1.5s infinite;
    border-radius: 50%;
}

/* Animated blobs */
.hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: blobMove 20s ease-in-out infinite;
}
.blob-1 {
    width: 500px; height: 500px;
    background: rgba(168, 224, 99, 0.15);
    top: -10%; right: -10%;
    animation-duration: 18s;
}
.blob-2 {
    width: 400px; height: 400px;
    background: rgba(155, 89, 182, 0.12);
    bottom: -15%; left: -5%;
    animation-duration: 22s;
    animation-delay: 4s;
}
.blob-3 {
    width: 300px; height: 300px;
    background: rgba(195, 155, 211, 0.1);
    top: 40%; left: 40%;
    animation-duration: 16s;
    animation-delay: 2s;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 920px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 224, 99, 0.2);
    padding: 10px 22px;
    border-radius: 50px;
    color: var(--lime-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
}
.hero-badge i { color: var(--lime); }
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    color: var(--white);
    line-height: 1.12;
    margin-bottom: 24px;
    font-weight: 700;
    animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-highlight {
    background: linear-gradient(135deg, var(--lime-light), var(--lime), var(--lime-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.7);
    max-width: 660px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.5s both;
}
.hero-stats .glass-card {
    padding: 20px 28px;
    text-align: center;
    transition: transform var(--transition);
}
.hero-stats .glass-card:hover { transform: translateY(-4px) scale(1.05); }
.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.stat-plus { font-size: 1.8rem; font-weight: 700; color: var(--lime); }
.stat-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 4px;
}

/* Hero scroll */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}
.hero-scroll a { color: rgba(255,255,255,0.5); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; }
.hero-scroll span { display: block; margin-top: 8px; }
.scroll-indicator {
    width: 24px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.25);
    display: flex;
    justify-content: center;
    padding-top: 8px;
    margin: 0 auto;
}
.scroll-dot {
    width: 4px;
    height: 10px;
    background: var(--lime);
    border-radius: 2px;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; position: relative; contain: layout style; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(168,224,99,0.08), rgba(155,89,182,0.08));
    color: var(--purple);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(155,89,182,0.1);
}
.section-tag i { color: var(--lime-dark); font-size: 0.75rem; }
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 12px;
}
.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--lime), var(--purple));
    margin: 0 auto;
    border-radius: 2px;
}
.section-desc {
    max-width: 640px;
    margin: 20px auto 0;
    color: var(--gray-500);
    font-size: 1.05rem;
}

/* Floating decoration blobs */
.floating-decoration {
    position: absolute;
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 0;
}
.dec-left { top: -100px; left: -200px; }
.dec-right { top: -50px; right: -200px; }

/* ============================================================
   ABOUT
   ============================================================ */
.section-about { background: var(--gray-100); overflow: hidden; }
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}
.about-heading {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 16px;
}
.about-text { color: var(--gray-700); margin-bottom: 16px; line-height: 1.8; }
.about-features { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px var(--purple-glow);
}
.about-feature strong { color: var(--dark); font-size: 0.95rem; display: block; margin-bottom: 2px; }
.about-feature p { font-size: 0.85rem; color: var(--gray-500); margin: 0; line-height: 1.5; }

/* About image stack */
.about-image-stack {
    position: relative;
    height: 480px;
    perspective: 1000px;
}
.about-img-wrapper {
    position: absolute;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}
.about-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(155,89,182,0.15), rgba(168,224,99,0.1));
}
.about-img-1 {
    width: 280px;
    height: 340px;
    top: 0;
    left: 0;
    z-index: 2;
    transform: rotate(-3deg);
}
.about-img-2 {
    width: 260px;
    height: 300px;
    bottom: 20px;
    right: 0;
    z-index: 1;
    transform: rotate(3deg);
}
.about-floating-card {
    position: absolute;
    bottom: 60px;
    left: 40px;
    z-index: 3;
    padding: 20px 28px;
    text-align: center;
    background: rgba(26, 16, 48, 0.7) !important;
    border-color: rgba(168, 224, 99, 0.2) !important;
}
.about-floating-card .about-card-icon {
    color: var(--lime);
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.about-floating-card h4 { color: var(--white); font-size: 1.3rem; margin-bottom: 2px; }
.about-floating-card p { color: rgba(255,255,255,0.6); font-size: 0.82rem; }

/* Values row */
.values-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.value-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: default;
    transition: transform 0.4s ease;
    background: var(--white);
    border: 1px solid var(--gray-200);
}
.value-card:hover { transform: translateY(-8px); }
.value-card-inner { padding: 28px 28px; text-align: center; position: relative; z-index: 1; }
.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(168,224,99,0.12), rgba(155,89,182,0.12));
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 18px;
    transition: all var(--transition);
}
.value-card:hover .value-icon {
    background: linear-gradient(135deg, var(--lime), var(--purple));
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transform: scale(1.1) rotateY(10deg);
}
.value-card h4 { font-size: 1.1rem; color: var(--dark); margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }
.value-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(168,224,99,0.04), rgba(155,89,182,0.04), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}
.value-card:hover .value-card-shine { left: 100%; }

/* ============================================================
   SERVICES
   ============================================================ */
.section-services {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 320px;
    cursor: default;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover { transform: translateY(-6px) translateZ(0); box-shadow: var(--shadow-lg); }
.service-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.service-card:hover .service-card-bg { transform: scale(1.08); }
.service-card-content {
    position: relative;
    z-index: 1;
    padding: 32px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg,
        rgba(26, 16, 48, 0.35) 0%,
        rgba(26, 16, 48, 0.78) 40%,
        rgba(26, 16, 48, 0.92) 100%
    );
}
.service-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--lime), var(--lime-dark));
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px var(--lime-glow);
    transition: transform var(--transition);
}
.service-card:hover .service-icon-wrap { transform: rotateY(15deg) scale(1.1); }
.service-card h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 8px; }
.service-card p { font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 16px; }
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lime);
    transition: gap var(--transition);
}
.service-link:hover { gap: 12px; color: var(--lime-light); }

/* ============================================================
   QUOTE
   ============================================================ */
.quote-banner {
    position: relative;
    padding: 64px 0;
    overflow: hidden;
}
.parallax-bg {
    position: absolute;
    inset: -20%;
    width: 140%;
    height: 140%;
    object-fit: cover;
    z-index: 0;
}
.quote-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(15, 10, 26, 0.9),
        rgba(125, 60, 152, 0.7),
        rgba(26, 16, 48, 0.85)
    );
    z-index: 1;
}
.quote-banner .container { position: relative; z-index: 2; }
.quote { text-align: center; }
.quote-icon { font-size: 2.5rem; color: var(--lime); margin-bottom: 20px; }
.quote p {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 2.5vw, 1.65rem);
    color: rgba(255,255,255,0.9);
    max-width: 750px;
    margin: 0 auto 16px;
    line-height: 1.7;
    font-style: italic;
}
.quote cite {
    color: var(--lime-light);
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 500;
}

/* ============================================================
   PROFESSIONS
   ============================================================ */
.section-profesiones { background: var(--white); }
.profession-search { max-width: 520px; margin: 0 auto 12px; }
.search-box {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    padding: 4px 8px 4px 22px;
    transition: all var(--transition);
}
.search-box:focus-within {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(155, 89, 182, 0.1);
    background: var(--white);
}
.search-box i { color: var(--gray-500); font-size: 0.95rem; }
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    background: transparent;
    color: var(--dark);
}
.search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: 8px 12px;
    border-radius: 50%;
    display: none;
    transition: color var(--transition);
}
.search-clear:hover { color: var(--purple); }
.search-clear.visible { display: block; }
.search-count {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 24px;
    min-height: 1.2em;
}

.professions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 10px;
}
.profession-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: default;
}
.profession-card:hover {
    border-color: var(--purple-light);
    background: linear-gradient(135deg, rgba(168,224,99,0.03), rgba(155,89,182,0.03));
    transform: translateX(6px);
    box-shadow: var(--shadow-card);
}
.profession-card.hidden {
    display: none;
}
.prof-code {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px var(--purple-glow);
}
.prof-name { font-size: 0.88rem; font-weight: 500; color: var(--dark); flex: 1; }
.prof-arrow {
    color: var(--gray-300);
    font-size: 0.7rem;
    transition: all var(--transition);
}
.profession-card:hover .prof-arrow { color: var(--purple); transform: translateX(4px); }
.profession-card { cursor: pointer; }
.profession-card:active { transform: scale(0.98); }

/* Collapsed professions */
.professions-grid { transition: max-height 0.5s ease; overflow: hidden; }
.professions-grid.collapsed { max-height: 680px; }
.professions-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px auto 0;
    padding: 12px 32px;
    background: linear-gradient(135deg, rgba(168,224,99,0.08), rgba(155,89,182,0.08));
    border: 1px solid rgba(155,89,182,0.15);
    border-radius: 50px;
    color: var(--purple);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all var(--transition);
}
.professions-toggle:hover {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--purple-glow);
}
.professions-toggle i { transition: transform var(--transition); }
.professions-toggle.expanded i { transform: rotate(180deg); }

.professions-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 32px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(168,224,99,0.06), rgba(155,89,182,0.04));
    border: 1px solid rgba(168,224,99,0.15);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 0.9rem;
}
.professions-note i { color: var(--lime-dark); margin-top: 3px; }

/* ============================================================
   GESTORIA
   ============================================================ */
.section-gestoria { background: var(--gray-100); }
.gestoria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 36px;
}
.gestoria-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 36px;
    transition: all var(--transition);
}
.gestoria-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px) translateZ(0); }
.gestoria-card-accent { border-left: 4px solid var(--orange); }
.gestoria-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.gestoria-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.gestoria-card .gestoria-icon {
    background: linear-gradient(135deg, rgba(168,224,99,0.15), rgba(0,184,148,0.1));
    color: var(--lime-dark);
}
.gestoria-card-accent .gestoria-icon {
    background: rgba(225,112,85,0.1);
    color: var(--orange);
}
.gestoria-card-header h3 { font-size: 1.2rem; color: var(--dark); flex: 1; }
.gestoria-badge {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-green { background: rgba(168,224,99,0.15); color: var(--lime-dark); }
.badge-orange { background: rgba(225,112,85,0.1); color: var(--orange); }
.gestoria-list { display: flex; flex-direction: column; gap: 12px; }
.gestoria-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--gray-700);
}
.gestoria-list li i { color: var(--purple); margin-top: 3px; min-width: 16px; font-size: 0.85rem; }
.gestoria-extra i { color: var(--orange) !important; }
.gestoria-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-xs);
    font-size: 0.82rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
}
.gestoria-note i { color: var(--purple-light); }

.gestoria-services-extra { text-align: center; margin-bottom: 36px; }
.gestoria-services-extra h3 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--dark); margin-bottom: 20px; }
.gestoria-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gestoria-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gray-700);
    transition: all var(--transition);
}
.gestoria-tag:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.gestoria-tag i:first-child { color: var(--lime-dark); }
.gestoria-tag i.fa-download { color: var(--purple-light); font-size: 0.7rem; margin-left: 2px; transition: color var(--transition); }
.gestoria-tag:hover i.fa-download { color: var(--purple); }
a.gestoria-tag { text-decoration: none; cursor: pointer; }

.gestoria-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(168,224,99,0.06), rgba(155,89,182,0.06));
    border-radius: var(--radius);
    border: 1px solid rgba(155,89,182,0.1);
}
.gestoria-cta p { max-width: 600px; margin: 0 auto 20px; color: var(--gray-700); font-size: 0.95rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    position: relative;
    padding: 70px 0;
    text-align: center;
    overflow: hidden;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(15, 10, 26, 0.88),
        rgba(125, 60, 152, 0.7),
        rgba(123, 192, 67, 0.5)
    );
    z-index: 1;
}
.cta-shapes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cta-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
}
.cta-shape-1 {
    width: 300px; height: 300px;
    background: rgba(168, 224, 99, 0.15);
    top: -80px; right: 10%;
    animation: blobMove 15s ease-in-out infinite;
}
.cta-shape-2 {
    width: 250px; height: 250px;
    background: rgba(155, 89, 182, 0.12);
    bottom: -60px; left: 15%;
    animation: blobMove 18s ease-in-out 3s infinite;
}
.cta-banner .container { position: relative; z-index: 3; }
.cta-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    color: var(--white);
    margin-bottom: 16px;
}
.cta-content p {
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================================
   LOCATIONS
   ============================================================ */
.section-locations { background: var(--white); }
.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.location-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.location-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px) translateZ(0); border-color: transparent; }
.location-header {
    position: relative;
    height: 160px;
    overflow: hidden;
}
.location-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.location-card:hover .location-header img { transform: scale(1.08); }
.location-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(26, 16, 48, 0.8) 100%);
}
.location-header-content {
    position: absolute;
    bottom: 16px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}
.location-pin {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--lime), var(--lime-dark));
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.location-header h3 { color: var(--white); font-size: 1.1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.location-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.location-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
}
.location-detail > i { color: var(--purple); margin-top: 3px; min-width: 16px; }
.location-detail a { color: var(--purple); font-weight: 500; }
.location-detail a:hover { color: var(--lime-dark); }
.hours { font-weight: 600; color: var(--dark); }
.location-map-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--purple);
    transition: all var(--transition);
}
.location-map-link:hover { background: linear-gradient(135deg, rgba(168,224,99,0.06), rgba(155,89,182,0.04)); color: var(--lime-dark); }

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact { background: var(--gray-100); overflow: hidden; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}
.contact-info h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 12px;
}
.contact-info > p { color: var(--gray-500); margin-bottom: 32px; line-height: 1.7; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.contact-method:hover { transform: translateX(4px); }
.method-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px var(--purple-glow);
}
.contact-method strong { display: block; color: var(--dark); margin-bottom: 4px; font-size: 0.9rem; }
.contact-method a { color: var(--purple); font-size: 0.88rem; }
.contact-method a:hover { color: var(--lime-dark); }
.contact-method p { font-size: 0.88rem; color: var(--gray-500); margin: 0; }

.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lime), var(--purple), var(--lime));
    background-size: 200% 100%;
    animation: glowRotate 4s ease infinite;
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: all var(--transition);
    background: var(--gray-100);
    color: var(--dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(155, 89, 182, 0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { text-align: center; padding: 48px 24px; }
.success-icon { font-size: 3.5rem; color: var(--lime-dark); margin-bottom: 16px; }
.form-success h3 { color: var(--dark); margin-bottom: 8px; }
.form-success p { color: var(--gray-500); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 0 0 0;
    position: relative;
}
.footer-wave {
    color: var(--gray-100);
    line-height: 0;
    margin-bottom: -1px;
}
.footer-wave svg { width: 100%; height: 80px; }
.footer .container { padding-top: 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-logo .logo-name { color: #ffffff; }
.footer-logo .logo-sub { color: rgba(255,255,255,0.5); }
.footer-brand > p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    border: 1px solid rgba(255,255,255,0.08);
}
.footer-social a:hover {
    background: linear-gradient(135deg, var(--lime-dark), var(--purple));
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
}
.footer-links h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--lime), var(--purple));
    border-radius: 2px;
}
.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    padding: 6px 0;
    color: rgba(255,255,255,0.45);
    transition: all var(--transition);
}
.footer-links a:hover { color: var(--lime); padding-left: 6px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
}
.footer-bottom p + p { margin-top: 4px; }

/* ============================================================
   BACK TO TOP + WHATSAPP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #9b59b6, #7d3c98);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(155, 89, 182, 0.35);
    z-index: 99;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px) scale(1.05); }

.phone-float {
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, #a8e063, #7bc043);
    color: #1a1030; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; box-shadow: 0 4px 24px rgba(168, 224, 99, 0.4);
    transition: all var(--transition); border: none; cursor: pointer;
}
.phone-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 32px var(--lime-glow);
}

/* Phone popup */
.phone-float-wrapper { position: fixed; bottom: 32px; left: 32px; z-index: 99; }
.phone-float-wrapper .phone-float { position: relative; }
.phone-popup {
    position: absolute;
    bottom: 68px;
    left: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(26,16,48,0.2);
    padding: 12px;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.phone-popup.active { opacity: 1; visibility: visible; transform: translateY(0); }
.phone-popup-title { font-size: 0.75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; padding: 0 8px; }
.phone-popup-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 10px; transition: all 0.2s ease; text-decoration: none; color: var(--dark);
}
.phone-popup-item:hover { background: linear-gradient(135deg, rgba(168,224,99,0.08), rgba(155,89,182,0.06)); }
.phone-popup-item i { color: var(--purple); font-size: 0.85rem; }
.phone-popup-item span { flex: 1; font-size: 0.85rem; font-weight: 500; }
.phone-popup-item strong { color: var(--lime-dark); font-size: 0.82rem; }
.phone-popup::after { content: ''; position: absolute; bottom: -6px; left: 24px; width: 12px; height: 12px; background: var(--white); transform: rotate(45deg); border-radius: 2px; }
body.dark .phone-popup { background: #1c1630; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
body.dark .phone-popup::after { background: #1c1630; }
body.dark .phone-popup-item { color: #f0ecf8; }
body.dark .phone-popup-item:hover { background: rgba(168,224,99,0.06); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}
@keyframes float3D {
    0%, 100% { transform: translateY(0) rotateX(0) rotateZ(0); }
    25% { transform: translateY(-20px) rotateX(10deg) rotateZ(5deg); }
    50% { transform: translateY(-10px) rotateX(-5deg) rotateZ(-3deg); }
    75% { transform: translateY(-25px) rotateX(8deg) rotateZ(2deg); }
}
@keyframes blobMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(30px, 10px) scale(1.03); }
}
@keyframes glowRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll reveal */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   NAV CONTROLS (theme, lang, social)
   ============================================================ */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-ctrl-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition);
}
.nav-ctrl-btn:hover { background: rgba(255,255,255,0.18); color: var(--white); }
.navbar.scrolled .nav-ctrl-btn { background: var(--gray-100); color: var(--gray-700); }
.navbar.scrolled .nav-ctrl-btn:hover { background: var(--gray-200); color: var(--purple); }
.nav-social-btn { text-decoration: none; }

/* Language dropdown */
.nav-lang { position: relative; }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -8px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    min-width: 200px;
}
.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: var(--white);
    transform: rotate(45deg);
    border-radius: 2px;
}
body.dark .lang-dropdown::before { background: #1c1630; }
.lang-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
/* Hide Google Translate bar */
/* Hide Google Translate top banner but keep the widget */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
iframe.goog-te-banner-frame { display: none !important; }
#google_translate_element { min-height: 30px; }
#google_translate_element .goog-te-gadget { font-family: var(--font-sans) !important; font-size: 0.85rem; }
#google_translate_element .goog-te-gadget-simple {
    border: none !important;
    background: transparent !important;
    font-size: 0.85rem !important;
    padding: 0 !important;
}
#google_translate_element select,
#google_translate_element .goog-te-combo {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    background: var(--gray-100);
    color: var(--dark);
    cursor: pointer;
    outline: none;
}
body.dark #google_translate_element select,
body.dark #google_translate_element .goog-te-combo {
    background: #241a40;
    border-color: #3d3460;
    color: #f0ecf8;
}
#google_translate_element .goog-te-gadget > span:not(:first-child) { display: none; }
#google_translate_element .goog-te-gadget .goog-te-gadget-icon { display: none; }

/* ============================================================
   DARK THEME
   ============================================================ */
body.dark {
    --white: #141020;
    --gray-100: #1c1630;
    --gray-200: #2a2245;
    --gray-300: #3d3460;
    --gray-500: #9990b0;
    --gray-700: #c4bdd8;
    --dark: #f0ecf8;
    --gray-900: #e8e4f0;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.25);
    background: #0f0b1a;
    color: #c4bdd8;
}
body.dark .navbar.scrolled {
    background: rgba(20, 16, 32, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
body.dark .navbar.scrolled .logo-name { color: #f0ecf8; }
body.dark .navbar.scrolled .logo-sub { color: #9990b0; }
body.dark .navbar.scrolled .nav-link { color: #c4bdd8; }
body.dark .navbar.scrolled .nav-link:hover { color: var(--lime); }
body.dark .navbar.scrolled .nav-ctrl-btn { background: #2a2245; color: #c4bdd8; }
body.dark .navbar.scrolled .nav-ctrl-btn:hover { background: #3d3460; color: var(--lime); }
body.dark .section-about,
body.dark .section-profesiones,
body.dark .section-locations,
body.dark .section-gestoria,
body.dark .section-contact { background: #141020; }
body.dark .section-services { background: linear-gradient(180deg, #0f0b1a, #141020); }
body.dark .service-card-content {
    background: linear-gradient(180deg, rgba(20,16,32,0.1) 0%, rgba(20,16,32,0.7) 40%, rgba(20,16,32,0.95) 100%);
}
body.dark .gestoria-card,
body.dark .contact-form-wrap,
body.dark .value-card,
body.dark .profession-card,
body.dark .location-card {
    background: #1c1630;
    border-color: #2a2245;
}
body.dark .about-card-light { background: #1c1630; border-color: #2a2245; color: #f0ecf8; }
body.dark .about-card-light p { color: #9990b0; }
body.dark .search-box { background: #1c1630; border-color: #2a2245; }
body.dark .search-box input { color: #f0ecf8; }
body.dark .form-group input,
body.dark .form-group select,
body.dark .form-group textarea { background: #1c1630; border-color: #2a2245; color: #f0ecf8; }
body.dark .form-group input:focus,
body.dark .form-group select:focus,
body.dark .form-group textarea:focus { border-color: var(--purple-light); background: #241a40; }
body.dark .gestoria-tag { background: #1c1630; border-color: #2a2245; color: #c4bdd8; }
body.dark .gestoria-note { background: #1c1630; }
body.dark .gestoria-cta { background: rgba(155,89,182,0.06); border-color: #2a2245; }
body.dark .professions-note { background: rgba(168,224,99,0.04); border-color: #2a2245; }
body.dark .location-body { background: #1c1630; }
body.dark .location-map-link { border-color: #2a2245; }
body.dark .footer { background: #0a0714; }
body.dark .footer-wave { color: #0f0b1a; }
body.dark .footer-social a { background: #1c1630; border-color: #2a2245; }
body.dark .footer-bottom { border-color: rgba(255,255,255,0.04); }
body.dark .contact-method.glass-card-subtle { background: rgba(28,22,48,0.7); border-color: #2a2245; }
body.dark .lang-dropdown { background: #1c1630; }
body.dark .lang-dropdown select { background: #241a40; border-color: #3d3460; color: #f0ecf8; }
body.dark .modal-body { background: #141020; }
body.dark .prof-modal { background: #141020; }
body.dark .modal-doc-link { background: #1c1630; color: #c39bd3; }
body.dark .modal-doc-link:hover { color: #f0ecf8; }
body.dark .modal-section h3,
body.dark .modal-section h4 { border-color: #2a2245; color: #f0ecf8; }
body.dark .modal-section p,
body.dark .modal-section li,
body.dark .modal-section div { color: #c4bdd8; }
body.dark .modal-panel-name { color: #f0ecf8 !important; }
body.dark .modal-panel-junta { color: #9990b0; }
body.dark .modal-right h3 { color: #f0ecf8; }
body.dark .modal-hours-table th { background: #241a40; color: #f0ecf8; }
body.dark .modal-hours-table td { border-color: #2a2245; color: #c4bdd8; }
body.dark .modal-hours-table tr:nth-child(even) { background: #1c1630; }
body.dark .modal-hours-table tr:hover td { background: #241a40; }
body.dark .modal-cta { background: rgba(155,89,182,0.06); border-color: #2a2245; }
body.dark .modal-official-link { color: #c39bd3; border-color: #3d3460; background: rgba(155,89,182,0.06); }
body.dark .modal-official-link:hover { background: #9b59b6; color: #fff; }
body.dark .combo-card { border-color: #3d3460; }
body.dark .combo-card h4 { color: #f0ecf8; }
body.dark .combo-desc { color: #9990b0; }
body.dark .combo-stats { color: #c4bdd8; }
body.dark .hours-tracker { background: #1c1630; }
body.dark .hours-tracker-header { color: #c4bdd8; }
body.dark .modal-course-name { color: #f0ecf8 !important; }
body.dark .modal-course-meta { color: #9990b0 !important; }
body.dark .modal-course-price { color: #c39bd3 !important; }
body.dark .cursor-glow { background: radial-gradient(circle, rgba(168,224,99,0.04), rgba(155,89,182,0.02), transparent 70%); }
body.dark .section-tag { background: rgba(168,224,99,0.04); border-color: #2a2245; }

/* Theme toggle icon swap */
body.dark #theme-icon::before { content: "\f185"; } /* sun */

/* ============================================================
   AG AGENT CHAT
   ============================================================ */
.chat-fab {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b59b6, #7d3c98);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 98;
    box-shadow: 0 6px 24px rgba(155, 89, 182, 0.35);
    transition: all var(--transition);
}
.chat-fab:hover { transform: scale(1.1); }
.chat-fab.active { border-radius: 16px; }
.chat-fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--purple-light);
    animation: chatPulse 2s ease-in-out infinite;
}
@keyframes chatPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0; }
}

.chat-panel {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 140px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 16px 60px rgba(26,16,48,0.25);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.chat-panel.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

body.dark .chat-panel { background: #1c1630; box-shadow: 0 16px 60px rgba(0,0,0,0.5); }

.chat-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.chat-header-info strong { display: block; font-size: 0.95rem; }
.chat-status { font-size: 0.72rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 4px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); display: inline-block; }
.chat-close-btn {
    background: rgba(255,255,255,0.1); border: none; color: var(--white);
    width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center; transition: background var(--transition);
}
.chat-close-btn:hover { background: rgba(255,255,255,0.25); }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-msg { display: flex; gap: 8px; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.6;
    animation: fadeInUp 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}
.chat-msg.bot .chat-msg-bubble {
    background: var(--gray-100);
    color: var(--gray-700);
    border-bottom-left-radius: 4px;
}
body.dark .chat-msg.bot .chat-msg-bubble { background: #241a40; color: #c4bdd8; }
.chat-msg.user .chat-msg-bubble {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--white);
    border-bottom-right-radius: 4px;
}
.chat-msg-bubble a { color: var(--lime); text-decoration: underline; }
.chat-msg.user .chat-msg-bubble a { color: var(--lime-light); }

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
}
.chat-chip {
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all var(--transition);
}
body.dark .chat-chip { background: #241a40; border-color: #3d3460; color: var(--lime); }
.chat-chip:hover { background: var(--purple); color: var(--white); border-color: var(--purple); }

.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 8px;
    background: var(--white);
}
body.dark .chat-input-area { background: #1c1630; border-color: #2a2245; }
.chat-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.88rem;
    font-family: var(--font-sans);
    background: var(--gray-100);
    color: var(--dark);
    outline: none;
    transition: border-color var(--transition);
}
body.dark .chat-input { background: #241a40; border-color: #3d3460; color: #f0ecf8; }
.chat-input:focus { border-color: var(--purple); }
.chat-send {
    width: 42px; height: 42px; min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--white); border: none; cursor: pointer;
    font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.chat-send:hover { transform: scale(1.05); box-shadow: 0 4px 16px var(--purple-glow); }

/* Typing indicator */
.typing-indicator { display: flex; gap: 4px; padding: 8px 0; }
.typing-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gray-300);
    animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* ============================================================
   LOGIN / ACCOUNT PANEL
   ============================================================ */
.login-overlay {
    position: fixed; inset: 0; background: rgba(15,10,26,0.5); backdrop-filter: blur(4px);
    z-index: 2200; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.login-overlay.active { opacity: 1; visibility: visible; }
.login-panel {
    position: fixed; top: 0; right: -440px; width: 420px; max-width: 92vw; height: 100vh;
    background: var(--white); z-index: 2201; box-shadow: -8px 0 40px rgba(26,16,48,0.15);
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1); overflow-y: auto; padding: 0;
}
.login-panel.active { right: 0; }
.login-panel-close {
    position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px;
    background: var(--gray-100); border: none; cursor: pointer; font-size: 1rem; color: var(--gray-500);
    display: flex; align-items: center; justify-content: center; z-index: 1; transition: all 0.2s;
}
.login-panel-close:hover { background: var(--gray-200); color: var(--purple); }
.login-panel-header { text-align: center; padding: 40px 24px 24px; }
.login-avatar-lg {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(168,224,99,0.12), rgba(155,89,182,0.12));
    color: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.login-avatar-lg.logged-in { background: linear-gradient(135deg, var(--lime), var(--lime-dark)); color: var(--dark); }
.login-panel-header h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 4px; }
.login-panel-header p { font-size: 0.85rem; color: var(--gray-500); }
.login-form { padding: 0 28px 20px; }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--dark); margin-bottom: 5px; }
.login-field input, .login-field select {
    width: 100%; padding: 11px 16px; border: 2px solid var(--gray-200); border-radius: 10px;
    font-size: 0.88rem; font-family: var(--font-sans); background: var(--gray-100); color: var(--dark); transition: border-color 0.2s;
}
.login-field input:focus, .login-field select:focus { outline: none; border-color: var(--purple); background: var(--white); }
.login-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.login-error { color: var(--orange); font-size: 0.82rem; text-align: center; margin-bottom: 12px; padding: 8px; background: rgba(225,112,85,0.06); border-radius: 8px; }
.login-divider { text-align: center; margin: 16px 28px; position: relative; }
.login-divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--gray-200); }
.login-divider span { background: var(--white); padding: 0 12px; position: relative; color: var(--gray-500); font-size: 0.8rem; }
.login-google-btn {
    display: flex !important; align-items: center; justify-content: center; gap: 10px;
    background: #fff !important; color: #333 !important; border: 1px solid #ddd !important;
    margin: 0 28px; width: calc(100% - 56px); font-weight: 600 !important;
    border-radius: 12px !important; padding: 12px 20px !important; font-size: 0.92rem !important;
    transition: all 0.2s !important; cursor: pointer;
}
.login-google-btn:hover { background: #f5f5f5 !important; border-color: #bbb !important; box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important; }
body.dark .login-google-btn { background: #1c1630 !important; color: #e0d8f0 !important; border-color: #3d3460 !important; }
body.dark .login-google-btn:hover { background: #241a40 !important; }
.login-register-btn { background: var(--gray-100) !important; color: var(--purple) !important; border: 1px solid var(--gray-200) !important; margin: 0 28px; width: calc(100% - 56px); }
.login-register-btn:hover { background: var(--gray-200) !important; }
.login-demo { padding: 20px 28px; }
.login-demo-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); margin-bottom: 8px; font-weight: 600; }
.login-demo-btn {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; margin-bottom: 6px;
    background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 8px;
    font-size: 0.8rem; color: var(--gray-700); cursor: pointer; font-family: var(--font-sans); transition: all 0.2s;
}
.login-demo-btn:hover { border-color: var(--purple-light); background: rgba(155,89,182,0.04); }
.demo-role { padding: 2px 8px; border-radius: 4px; font-size: 0.68rem; font-weight: 700; background: var(--purple); color: white; }
.demo-role.emp { background: var(--lime-dark); color: var(--dark); }
.demo-role.adm { background: var(--orange); color: white; }
.login-back-btn { display: block; margin: 16px auto; background: none; border: none; color: var(--purple); font-size: 0.85rem; cursor: pointer; font-family: var(--font-sans); }
.login-back-btn:hover { color: var(--lime-dark); }

/* Account view */
.account-role-badge { display: inline-block; padding: 4px 14px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.role-client { background: rgba(155,89,182,0.1); color: var(--purple); }
.role-employee { background: rgba(168,224,99,0.12); color: var(--lime-dark); }
.role-admin { background: rgba(225,112,85,0.1); color: var(--orange); }
.account-menu { padding: 20px 28px; }
.account-menu-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 4px;
    border-radius: 10px; font-size: 0.9rem; color: var(--gray-700); transition: all 0.2s;
    text-decoration: none; border: none; background: none; width: 100%; cursor: pointer; font-family: var(--font-sans);
}
.account-menu-item:hover { background: var(--gray-100); color: var(--purple); }
.account-menu-item i { width: 20px; color: var(--purple); }
.logout-btn { color: var(--orange) !important; }
.logout-btn:hover { background: rgba(225,112,85,0.06) !important; }

/* Dark theme */
body.dark .login-panel { background: #1c1630; }
body.dark .login-panel-close { background: #241a40; color: #9990b0; }
body.dark .login-panel-header h3 { color: #f0ecf8; }
body.dark .login-field input, body.dark .login-field select { background: #241a40; border-color: #3d3460; color: #f0ecf8; }
body.dark .login-field input:focus { background: #2a2245; border-color: var(--purple); }
body.dark .login-divider span { background: #1c1630; }
body.dark .login-register-btn { background: #241a40 !important; border-color: #3d3460 !important; }
body.dark .login-demo-btn { background: #241a40; border-color: #3d3460; color: #c4bdd8; }
body.dark .account-menu-item { color: #c4bdd8; }
body.dark .account-menu-item:hover { background: #241a40; }

@media (max-width: 480px) { .login-panel { width: 100vw; } .login-row { grid-template-columns: 1fr; } }

/* ============================================================
   PROFESSION MODAL (v3 — clean 2-panel)
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 26, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.prof-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 920px; max-width: 94vw; max-height: 85vh;
    background: var(--white);
    border-radius: 18px;
    z-index: 2001;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s ease;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(26, 16, 48, 0.2);
    overflow: hidden;
}
.prof-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Close button */
.modal-close {
    position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px;
    background: var(--gray-100); color: var(--gray-500); border: none; cursor: pointer; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center; z-index: 2; transition: all 0.2s;
}
.modal-close:hover { background: var(--gray-200); color: var(--purple); }
body.dark .modal-close { background: #241a40; color: #9990b0; }
body.dark .modal-close:hover { color: #f0ecf8; }

/* Body = full flex container */
.modal-body { padding: 0; flex: 1; overflow: hidden; display: flex; flex-direction: column; }

/* Two equal panels */
.modal-split { display: flex; flex: 1; min-height: 0; }
.modal-left, .modal-right {
    flex: 1; overflow-y: auto; padding: 20px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.modal-left::-webkit-scrollbar, .modal-right::-webkit-scrollbar { display: none; }
.modal-left { border-right: 1px solid var(--gray-200); }
body.dark .modal-left { border-color: #2a2245; }

/* Panel header (compact title bar inside each panel) */
.mp-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-200); }
body.dark .mp-header { border-color: #2a2245; }
.mp-code {
    width: 38px; height: 38px; min-width: 38px; border-radius: 10px;
    background: linear-gradient(135deg, #a8e063, #7bc043); color: #1a1030;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem;
}
.mp-icon {
    width: 38px; height: 38px; min-width: 38px; border-radius: 10px;
    background: linear-gradient(135deg, #9b59b6, #7d3c98); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.mp-info strong { font-size: 0.95rem; color: var(--dark); display: block; }
.mp-info small { font-size: 0.72rem; color: var(--gray-500); }
body.dark .mp-info strong { color: #f0ecf8; }
body.dark .mp-info small { color: #9990b0; }

/* Alert inside left panel */
.mp-alert {
    display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px; margin-bottom: 12px;
    background: rgba(225,112,85,0.08); border: 1px solid rgba(225,112,85,0.15); border-radius: 8px;
    font-size: 0.8rem; color: #e17055; font-weight: 500;
}
.mp-alert i { margin-top: 2px; }

/* Section blocks */
.mp-section { margin-bottom: 14px; }
.mp-section h4 { font-size: 0.82rem; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.mp-section h4 i { color: #9b59b6; font-size: 0.78rem; }
.mp-section p, .mp-section li { font-size: 0.8rem; color: var(--gray-700); line-height: 1.5; margin-bottom: 4px; }
.mp-section ul { margin: 0 0 6px 16px; }
body.dark .mp-section h4 { color: #f0ecf8; }
body.dark .mp-section p, body.dark .mp-section li, body.dark .mp-section div { color: #c4bdd8; }

/* Hours table (compact) */
.modal-hours-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.modal-hours-table th { background: rgba(155,89,182,0.08); padding: 7px 10px; text-align: left; font-weight: 600; color: var(--dark); border-bottom: 1px solid var(--gray-200); }
.modal-hours-table td { padding: 6px 10px; border-bottom: 1px solid var(--gray-200); }
body.dark .modal-hours-table th { background: #241a40; color: #f0ecf8; }
body.dark .modal-hours-table td { border-color: #2a2245; color: #c4bdd8; }

/* Doc links */
.modal-docs { display: flex; flex-direction: column; gap: 4px; }
.modal-doc-link {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--gray-100);
    border-radius: 6px; font-size: 0.78rem; color: #9b59b6; font-weight: 500; transition: all 0.2s; border: 1px solid transparent;
}
.modal-doc-link:hover { border-color: #c39bd3; transform: translateX(3px); }
.modal-doc-link i { color: #7bc043; min-width: 14px; font-size: 0.75rem; }
body.dark .modal-doc-link { background: #1c1630; color: #c39bd3; }

/* Junta official link */
.mp-junta-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; margin-top: 8px;
    background: rgba(155,89,182,0.06); border: 1px solid rgba(155,89,182,0.12); border-radius: 8px;
    color: #9b59b6; font-weight: 600; font-size: 0.8rem; transition: all 0.2s;
}
.mp-junta-link:hover { background: #9b59b6; color: #fff; }
body.dark .mp-junta-link { background: rgba(155,89,182,0.06); border-color: #3d3460; color: #c39bd3; }

/* RIGHT PANEL — Combo card */
.mp-combo {
    background: linear-gradient(135deg, rgba(168,224,99,0.05), rgba(155,89,182,0.05));
    border: 1px solid rgba(155,89,182,0.12); border-radius: 12px; padding: 14px; margin-bottom: 12px;
}
.mp-combo-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mp-combo-badge {
    background: linear-gradient(135deg, #9b59b6, #7d3c98); color: #fff;
    padding: 3px 10px; border-radius: 50px; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.mp-combo-name { font-size: 0.85rem; font-weight: 700; color: var(--dark); }
.mp-combo-desc { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 8px; }
.mp-combo-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.82rem; color: var(--gray-700); }
.mp-combo-row i { color: #9b59b6; }
.mp-combo-btn {
    width: 100%; padding: 10px; border: none; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, #9b59b6, #7d3c98); color: #fff;
    font-size: 0.82rem; font-weight: 600; font-family: var(--font-sans);
    display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s;
}
.mp-combo-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(155,89,182,0.3); }
body.dark .mp-combo { border-color: #3d3460; }
body.dark .mp-combo-name { color: #f0ecf8; }
body.dark .mp-combo-row { color: #c4bdd8; }

/* Hours tracker (compact) */
.mp-tracker { margin-bottom: 12px; padding: 10px 12px; background: var(--gray-100); border-radius: 8px; font-size: 0.78rem; color: var(--gray-700); }
.mp-bar { height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.mp-bar-fill { height: 100%; background: linear-gradient(90deg, #a8e063, #9b59b6); border-radius: 3px; transition: width 0.4s ease; width: 0%; }
body.dark .mp-tracker { background: #1c1630; color: #c4bdd8; }

/* Course items */
.modal-courses { display: flex; flex-direction: column; gap: 6px; }
.modal-course-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; transition: all 0.2s; cursor: default;
}
.modal-course-item:hover { border-color: #c39bd3; }
.modal-course-item.in-cart { border-color: #a8e063; background: rgba(168,224,99,0.04); }
.modal-course-info { flex: 1; min-width: 0; }
.modal-course-name { font-size: 0.78rem; font-weight: 600; color: var(--dark); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-course-meta { font-size: 0.68rem; color: var(--gray-500); }
.modal-course-price { font-weight: 700; color: #9b59b6; font-size: 0.82rem; white-space: nowrap; }
.modal-course-add {
    width: 28px; height: 28px; min-width: 28px; border-radius: 6px; border: none;
    cursor: pointer; font-size: 0.72rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.modal-course-add.add { background: linear-gradient(135deg, #9b59b6, #7d3c98); color: #fff; }
.modal-course-add.add:hover { transform: scale(1.1); }
.modal-course-add.remove { background: #a8e063; color: #1a1030; }
body.dark .modal-course-item { background: #1c1630; border-color: #2a2245; }
body.dark .modal-course-item.in-cart { border-color: #7bc043; }
body.dark .modal-course-name { color: #f0ecf8; }
body.dark .modal-course-meta { color: #9990b0; }
body.dark .modal-course-price { color: #c39bd3; }

/* Mini cart footer */
.mp-cart-footer {
    margin-top: 12px; padding: 10px 14px;
    background: linear-gradient(135deg, rgba(168,224,99,0.06), rgba(155,89,182,0.05));
    border: 1px solid rgba(155,89,182,0.1); border-radius: 10px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: sticky; bottom: 0; font-size: 0.8rem; color: var(--gray-700);
}
.mp-cart-footer i { color: #9b59b6; }
.mp-pay-btn {
    padding: 7px 16px; border-radius: 50px; font-size: 0.78rem; font-weight: 600;
    background: linear-gradient(135deg, #9b59b6, #7d3c98); color: #fff;
    text-decoration: none; display: flex; align-items: center; gap: 5px; transition: all 0.2s;
}
.mp-pay-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(155,89,182,0.3); }
body.dark .mp-cart-footer { background: rgba(28,22,48,0.5); border-color: #3d3460; color: #c4bdd8; }

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .prof-modal { max-width: 100vw; max-height: 100vh; border-radius: 0; }
    .modal-split { flex-direction: column; }
    .modal-left { border-right: none; border-bottom: 1px solid var(--gray-200); }
}
@media (max-width: 600px) {
    .modal-left, .modal-right { padding: 14px; }
    .modal-hours-table { font-size: 0.72rem; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .locations-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-stack { height: 400px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .values-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
    .cursor-glow { display: none; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 32px 40px;
        box-shadow: -8px 0 40px rgba(26, 16, 48, 0.12);
        transition: right var(--transition);
        align-items: stretch;
        gap: 0;
    }
    .nav-menu.active { right: 0; }
    .nav-menu .nav-link {
        color: var(--gray-700);
        padding: 14px 16px;
        border-bottom: 1px solid var(--gray-200);
        border-radius: 0;
        font-size: 1rem;
    }
    .nav-menu .nav-link::after { display: none; }
    .nav-menu .nav-link:hover { color: var(--purple); }
    .nav-menu .nav-link-cta {
        border-radius: 12px;
        margin: 16px 0 0;
        text-align: center;
        justify-content: center;
    }
    .nav-toggle { display: flex; }
    .nav-controls { gap: 2px; }
    .nav-social-btn { display: none; }

    .section { padding: 80px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 280px; }
    .gestoria-grid { grid-template-columns: 1fr; }
    .locations-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .values-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 12px; }
    .hero-stats .glass-card { padding: 14px 18px; }
    .stat-number { font-size: 1.8rem; }

    .about-image-stack { height: 380px; }
    .about-img-1 { width: 220px; height: 280px; }
    .about-img-2 { width: 200px; height: 250px; }

    .hero-shapes .shape { opacity: 0.06; }
    .blob { opacity: 0.5; }

    .phone-float-wrapper { bottom: 20px; left: 20px; }
    .phone-float { width: 50px; height: 50px; font-size: 1.3rem; }
    .back-to-top { bottom: 80px; right: 20px; width: 44px; height: 44px; }
    .chat-fab { bottom: 150px; right: 20px; width: 50px; height: 50px; font-size: 1.2rem; }
    .chat-panel { bottom: 0; right: 0; width: 100vw; height: 100vh; border-radius: 0; }
}

@media (max-width: 600px) {
    .prof-modal { max-width: 100vw; max-height: 100vh; border-radius: 0; }
    .modal-body { padding: 16px; }
    .modal-header { padding: 20px 16px 14px; }
    .modal-header h2 { font-size: 1.1rem; }
    .modal-hours-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .modal-close { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .hero-content { padding: 100px 16px 60px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats { flex-direction: column; gap: 10px; }
    .hero-stats .glass-card { width: 100%; }
    .professions-grid { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px 20px; }
    .gestoria-card { padding: 24px 20px; }
    .about-image-stack { height: 320px; }
    .about-img-1 { width: 180px; height: 230px; }
    .about-img-2 { width: 170px; height: 210px; right: -10px; }
    .about-floating-card { left: 10px; bottom: 30px; padding: 14px 20px; }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    z-index: 10000;
    background: linear-gradient(90deg, var(--lime), var(--purple));
    width: 0%;
    transition: width 0.05s linear;
    pointer-events: none;
}

/* ============================================================
   INTRO (3D)  — styles live in intro.css; this file no longer
   carries the old pulse preloader. The print rule below still
   hides the intro root so it never prints.
   ============================================================ */

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .navbar, .footer, .chat-fab, .chat-panel, .phone-float-wrapper,
    .back-to-top, .cursor-glow, .hero-shapes, .hero-blobs,
    .floating-decoration, .scroll-progress, #intro-root { display: none !important; }
    .hero { min-height: auto; padding: 40px 0; }
    .section { padding: 30px 0; }
    body, body.dark { background: #fff !important; color: #000 !important; }
    a { color: #333; }
    .service-card-content { background: rgba(0,0,0,0.8) !important; }
}

/* ============================================================
   SMOOTH IMAGE LAZY-LOAD
   ============================================================ */
img[loading="lazy"] {
    background: var(--gray-200);
    transition: opacity 0.4s ease;
}
