@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* luxury color system */
    --color-bg-dark: #090d16;        /* Deep midnight blue-black */
    --color-bg-card: #111827;        /* Sleek gray-blue card */
    --color-primary-navy: #0f172a;   /* Slate 900 */
    --color-secondary-gold: #c5a880; /* Elegant antique champagne gold */
    --color-gold-bright: #e5c697;    /* Bright champagne gold */
    --color-brand-accent: #393db3;   /* Indigo Blue (Color corporativo oficial de Tizona) */
    --color-text-main: #f8fafc;      /* Slate 50 */
    --color-text-muted: #94a3b8;     /* Slate 400 */
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-gold: rgba(197, 168, 128, 0.25);
    
    /* glassmorphism system */
    --glass-bg: rgba(17, 24, 39, 0.75);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-glow: rgba(197, 168, 128, 0.15);
    
    /* shadows and transitions */
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-gold-glow: 0 0 25px rgba(197, 168, 128, 0.2);
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

    /* theme-specific additional variables */
    --navbar-bg: rgba(9, 13, 22, 0.85);
    --navbar-bg-scrolled: rgba(9, 13, 22, 0.95);
    --color-body-bg-image: radial-gradient(circle at 10% 20%, rgba(57, 61, 179, 0.12) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(197, 168, 128, 0.05) 0%, transparent 40%);
    --color-input-bg: rgba(15, 23, 42, 0.6);
    --color-price-feature: #cbd5e1;
    --color-price-feature-muted: #64748b;
    --bg-section-servicios: rgba(17, 24, 39, 0.2);
    --bg-section-casos: rgba(9, 13, 22, 0.4);
    --bg-section-contacto: rgba(17, 24, 39, 0.3);

    /* Button gradient & high-contrast system */
    --color-btn-bg-start: var(--color-secondary-gold);
    --color-btn-bg-end: #a18259;
    --color-btn-text: var(--color-primary-navy);
    --color-card-hover-border: rgba(197, 168, 128, 0.3);
    --card-hover-glow: rgba(57, 61, 179, 0.22);

    /* Header & Footer Dynamic layout system variables (Dark Mode default) */
    --color-logo-text: var(--color-text-main);
    --color-logo-sub: var(--color-secondary-gold);
    --color-logo-icon: var(--color-secondary-gold);
    --color-logo-border: rgba(197, 168, 128, 0.15);
    --color-nav-link: var(--color-text-muted);
    --color-nav-link-hover: var(--color-secondary-gold);
    --color-btn-nav-border: var(--color-secondary-gold);
    --color-btn-nav-text: var(--color-secondary-gold);
    --color-btn-nav-hover-bg: var(--color-secondary-gold);
    --color-btn-nav-hover-text: var(--color-primary-navy);
    --color-footer-bg: #06090e;
    --color-footer-text: var(--color-text-muted);
    --color-footer-title: var(--color-text-main);
    --color-footer-hover: var(--color-secondary-gold);
    --color-footer-border: rgba(255, 255, 255, 0.08);
    --color-footer-heading-line: rgba(197, 168, 128, 0.3);
    --color-theme-btn: var(--color-secondary-gold);
    --color-footer-powered-hover: var(--color-secondary-gold);
    --color-phone-border: #1f2937;
    --color-avatar-border: rgba(34, 172, 244, 0.5); /* Sky blue/cyan at 50% opacity */
}

:root.light-theme {
    /* luxury color system - light mode (Representing classic Tizona website) */
    --color-bg-dark: #f6f7f9;        /* Soft ice gray (#F6F7F9) */
    --color-bg-card: #ffffff;        /* Pure white (#FFFFFF) */
    --color-primary-navy: #3b2d86;   /* Deep Royal Purple (#3B2D86) as main text headers */
    --color-secondary-gold: #3b2d86; /* Deep Purple replaces gold as primary contrast accent! */
    --color-gold-bright: #834bcb;    /* Amethyst Purple (#834BCB) for sub-elements and accents */
    --color-brand-accent: #834bcb;   /* Amethyst Purple replacing Cyan to keep harmony! */
    --color-text-main: #203541;      /* Charcoal slate blue (#203541) for paragraphs */
    --color-text-muted: #54595f;     /* Slate gray (#54595F) for secondary texts */
    --color-border: #d4dde4;         /* Soft gray-blue border (#D4DDE4) */
    --color-border-gold: rgba(59, 45, 134, 0.15);
    
    /* glassmorphism system - light mode */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(59, 45, 134, 0.08);
    --glass-glow: rgba(59, 45, 134, 0.05);
    
    /* shadows and transitions - light mode */
    --shadow-premium: 0 15px 35px rgba(32, 53, 65, 0.06);
    --shadow-gold-glow: 0 0 20px rgba(59, 45, 134, 0.15);
    
    /* theme-specific additional variables */
    --navbar-bg: #3B2D86;            /* Solid Deep Royal Purple Header just like classic vigete website! */
    --navbar-bg-scrolled: #423E95;   /* Solid Royal Indigo Header scrolled! */
    --color-body-bg-image: radial-gradient(circle at 10% 20%, rgba(59, 45, 134, 0.05) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(131, 75, 203, 0.04) 0%, transparent 40%);
    --color-input-bg: rgba(255, 255, 255, 0.95);
    --color-price-feature: var(--color-text-main);
    --color-price-feature-muted: #738796;
    --bg-section-servicios: rgba(59, 45, 134, 0.02);
    --bg-section-casos: rgba(59, 45, 134, 0.04);
    --bg-section-contacto: rgba(59, 45, 134, 0.03);

    /* Button gradient & high-contrast system - light mode */
    --color-btn-bg-start: #3B2D86;
    --color-btn-bg-end: #834BCB;
    --color-btn-text: #ffffff;
    --color-card-hover-border: rgba(59, 45, 134, 0.3);
    --card-hover-glow: rgba(59, 45, 134, 0.08);

    /* Header & Footer Dynamic layout overrides (Light Mode Classic Theme) */
    --color-logo-text: #ffffff;      /* Logo text is white over purple navbar */
    --color-logo-sub: #e2e8f0;       /* Very light gray tagline over purple navbar */
    --color-logo-icon: #ffffff;      /* White sword over purple navbar */
    --color-logo-border: rgba(255, 255, 255, 0.2);
    --color-nav-link: #eeeeee;       /* Navigation links in repose are light gray */
    --color-nav-link-hover: #ffffff; /* Navigation links hover are white */
    --color-btn-nav-border: #ffffff; /* White border for nav Qualify CTA button */
    --color-btn-nav-text: #ffffff;   /* White text for nav Qualify CTA button */
    --color-btn-nav-hover-bg: #ffffff;
    --color-btn-nav-hover-text: #3B2D86;
    
    /* Footer layout overrides (Classic page has a gorgeous dark slate footer, darkened by 10% base) */
    --color-footer-bg: #172630;      /* Darkened by 10% deep slate blue footer! */
    --color-footer-text: #94a3b8;    /* Footer body descriptions are kept readable light gray */
    --color-footer-title: #ffffff;   /* Footer headings are white */
    --color-footer-hover: #834bcb;   /* Amethyst Purple replacing Cyan for footer hovers! */
    --color-footer-border: rgba(255, 255, 255, 0.08);
    --color-footer-heading-line: rgba(131, 75, 203, 0.35); /* Purple heading underline instead of gold */
    --color-theme-btn: #ffffff;      /* Theme switch button is white */
    --color-footer-powered-hover: #00EBFF;   /* Cyan Clarito hover for MediaWorks link! */
    --color-phone-border: #1f2937;           /* Reverted phone mockup border to dark slate */
    --color-avatar-border: rgba(0, 235, 255, 0.5); /* Cyan Clarito at 50% opacity */
}

/* global resets & smooth layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth dissolve transition when changing themes and hovering */
html, body, header, section, footer, div, .service-card, .price-card, .btn-gold, .btn-outline, .btn-nav, .form-input, select, .nav-link, svg, path {
    transition: background-color 0.8s ease, 
                background 0.8s ease, 
                color 0.8s ease, 
                border-color 0.8s ease, 
                box-shadow 0.8s ease,
                filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

body {
    background-image: var(--color-body-bg-image);
    background-attachment: fixed;
    line-height: 1.6;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary-navy);
    border-radius: 4px;
    border: 2px solid var(--color-bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary-gold);
}

/* container wrapper */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =================================================================
   HEADER & NAVIGATION
   ================================================================= */
.premium-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.premium-navbar.scrolled {
    padding: 0.5rem 0;
    background: var(--navbar-bg-scrolled);
    border-bottom: 1px solid var(--color-border-gold);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 98px;
    max-width: 1200px;
    padding: 0 2rem;
    margin: 0 auto;
    width: 100%;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.premium-navbar.scrolled .navbar-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo-img {
    height: 77px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 3px;
    transition: var(--transition-smooth);
}

.premium-navbar.scrolled .logo-img {
    height: 52px;
    margin-bottom: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.4rem;
    flex-shrink: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--color-nav-link);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 0 2px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-brand-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-nav-link-hover);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid var(--color-btn-nav-border);
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    color: var(--color-btn-nav-text);
    transition: var(--transition-smooth);
    font-size: 0.85rem;
}

.btn-nav:hover {
    background-color: var(--color-btn-nav-hover-bg);
    color: var(--color-btn-nav-hover-text);
    box-shadow: var(--shadow-gold-glow);
}

/* =================================================================
   HERO SECTION
   ================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

/* Panoramic Legal Desk Background Image at 60% Opacity */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('resource/hero_law_desk_bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.6; /* Exactly 60% opacity (0.6) */
    z-index: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

/* Subtle gradient mask to enhance text contrast and blend bottom seam */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 40%, rgba(9, 13, 22, 0.45) 0%, rgba(9, 13, 22, 0.88) 100%),
                linear-gradient(to bottom, transparent 65%, var(--color-bg-dark) 100%);
    z-index: 1;
    pointer-events: none;
}

:root.light-theme .hero::before {
    opacity: 0.35;
    filter: brightness(1.05) contrast(0.95);
}

:root.light-theme .hero::after {
    background: radial-gradient(circle at 25% 40%, rgba(246, 247, 249, 0.6) 0%, rgba(246, 247, 249, 0.92) 100%),
                linear-gradient(to bottom, transparent 65%, var(--color-bg-dark) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.tagline {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

.hero-title span {
    color: var(--color-secondary-gold);
    background: linear-gradient(135deg, var(--color-secondary-gold) 0%, var(--color-gold-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 790px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-gold {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-block;
    background: linear-gradient(135deg, var(--color-btn-bg-start) 0%, var(--color-btn-bg-end) 100%);
    color: var(--color-btn-text);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px -10px rgba(197, 168, 128, 0.4);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-secondary-gold) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold:hover::before {
    opacity: 1;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(197, 168, 128, 0.6), var(--shadow-gold-glow);
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--color-text-muted);
    color: var(--color-text-main);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    cursor: pointer;
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--color-secondary-gold);
    color: var(--color-secondary-gold);
    background: rgba(197, 168, 128, 0.05);
}

/* =================================================================
   INTERACTIVE LEGAL TRIAGE & DIAGNOSTIC EXPRESS WIDGET (TATRS)
   ================================================================= */
.intake-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.intake-card-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.12) 0%, rgba(57, 61, 179, 0.08) 50%, transparent 75%);
    border-radius: 28px;
    z-index: -1;
    pointer-events: none;
}

.intake-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border-gold);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: var(--shadow-premium), var(--shadow-gold-glow);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.intake-card:hover {
    border-color: rgba(197, 168, 128, 0.45);
    box-shadow: var(--shadow-premium), 0 0 35px rgba(197, 168, 128, 0.25);
}

/* Header */
.intake-card-header {
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.intake-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 168, 128, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.pulse-status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.status-badge-text {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-secondary-gold);
}

.intake-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.intake-subheading {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

/* Steps */
.intake-step-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.intake-step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.step-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-secondary-gold);
    color: var(--color-primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

/* Options Grid */
.intake-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.intake-opt-btn {
    background: var(--color-input-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--color-text-main);
    font-family: inherit;
    width: 100%;
}

.opt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.intake-opt-btn .opt-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.2;
    transition: var(--transition-smooth);
    flex: 1;
}

.intake-opt-btn .opt-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.intake-opt-btn .opt-desc {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.intake-opt-btn:hover {
    border-color: rgba(197, 168, 128, 0.4);
    background: rgba(197, 168, 128, 0.06);
    transform: translateY(-1px);
}

.intake-opt-btn.active {
    background: rgba(197, 168, 128, 0.14);
    border-color: var(--color-secondary-gold);
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.2);
}

.intake-opt-btn.active .opt-title {
    color: var(--color-secondary-gold);
}

/* Urgency Pills */
.intake-urgency-pills {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
}

.urgency-pill-btn {
    background: var(--color-input-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem 0.4rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.urgency-pill-btn:hover {
    border-color: rgba(197, 168, 128, 0.4);
    color: var(--color-text-main);
}

.urgency-pill-btn.active {
    background: rgba(197, 168, 128, 0.16);
    border-color: var(--color-secondary-gold);
    color: var(--color-secondary-gold);
    box-shadow: 0 0 12px rgba(197, 168, 128, 0.18);
    font-weight: 700;
}

/* Actions Block */
.intake-actions-block {
    margin-top: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.btn-intake-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    padding: 0.9rem 1.4rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px -8px rgba(37, 211, 102, 0.45);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-intake-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -6px rgba(37, 211, 102, 0.6), 0 0 20px rgba(37, 211, 102, 0.3);
    color: #ffffff;
}

.btn-intake-form-link {
    text-align: center;
    font-size: 0.76rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 2px 0;
}

.btn-intake-form-link:hover {
    color: var(--color-secondary-gold);
    text-decoration: underline;
}

/* Security Badge */
.intake-security-badge {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    color: var(--color-text-muted);
    line-height: 1.35;
}

/* =================================================================
   SECTION COMMON STYLES
   ================================================================= */
.section {
    padding: 8rem 0;
    position: relative;
}

#nosotros, #servicios, #casos, #planes, #contacto {
    padding-top: calc(8rem - 15px);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

:root.light-theme .section-tagline {
    color: var(--color-gold-bright);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

:root.light-theme .section-title {
    color: var(--color-primary-navy);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-secondary-gold);
}

/* =================================================================
   NOSOTROS SECTION
   ================================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.about-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-secondary-gold);
}

:root.light-theme .about-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: 0 15px 35px rgba(32, 53, 65, 0.06);
}

:root.light-theme .about-card::after {
    background-color: var(--color-primary-navy);
}

/* Emblem Header */
.about-card-emblem-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.about-emblem-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.15) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1.5px solid var(--color-secondary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.15);
}

:root.light-theme .about-emblem-circle {
    background: linear-gradient(135deg, rgba(59, 45, 134, 0.08) 0%, rgba(131, 75, 203, 0.12) 100%);
    border: 1.5px solid var(--color-primary-navy);
    box-shadow: 0 4px 15px rgba(59, 45, 134, 0.1);
}

.about-emblem-svg {
    width: 26px;
    height: 34px;
    fill: var(--color-secondary-gold);
    display: block;
}

:root.light-theme .about-emblem-svg {
    fill: var(--color-primary-navy);
}

.about-card-seal-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.seal-firm {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-text-main);
    line-height: 1.2;
}

.seal-dept {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--color-secondary-gold);
    text-transform: uppercase;
}

:root.light-theme .seal-dept {
    color: var(--color-primary-navy);
}

/* Body Content */
.about-name {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--color-text-main);
    line-height: 1.2;
}

.about-subtitle {
    font-size: 0.85rem;
    color: var(--color-secondary-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

:root.light-theme .about-subtitle {
    color: var(--color-brand-accent);
}

.about-card-quote {
    font-size: 0.92rem;
    font-style: italic;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    background: rgba(197, 168, 128, 0.05);
    border-left: 2.5px solid var(--color-secondary-gold);
    border-radius: 0 6px 6px 0;
}

:root.light-theme .about-card-quote {
    background: rgba(59, 45, 134, 0.04);
    border-left-color: var(--color-primary-navy);
    color: var(--color-text-main);
}

/* Credentials List */
.about-credentials-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

:root.light-theme .credential-item {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(32, 53, 65, 0.02);
}

.credential-item:hover {
    border-color: var(--color-secondary-gold);
    transform: translateX(4px);
}

:root.light-theme .credential-item:hover {
    border-color: var(--color-primary-navy);
}

.credential-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.credential-text {
    font-size: 0.82rem;
    color: var(--color-text-main);
    line-height: 1.35;
}

.credential-text strong {
    color: var(--color-text-main);
    font-weight: 600;
}

/* Card Footer */
.about-card-footer {
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.experience-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.1) 0%, rgba(15, 23, 42, 0.4) 100%);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(197, 168, 128, 0.25);
}

:root.light-theme .experience-badge {
    background: linear-gradient(135deg, rgba(59, 45, 134, 0.05) 0%, rgba(131, 75, 203, 0.06) 100%);
    border: 1px solid rgba(59, 45, 134, 0.15);
}

.exp-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-secondary-gold);
    line-height: 1;
    font-family: inherit;
}

:root.light-theme .exp-number {
    color: var(--color-primary-navy);
}

.exp-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exp-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.2;
}

.exp-sub {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.2;
}

.about-text-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.about-paragraph {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    display: flex;
    flex-direction: column;
}

.highlight-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-secondary-gold);
    margin-bottom: 0.5rem;
}

.highlight-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* =================================================================
   DIAGNÓSTICO LEGAL 360° SHOWCASE SECTION
   ================================================================= */
.showcase-section {
    background: linear-gradient(180deg, rgba(9, 22, 42, 0.45) 0%, rgba(3, 13, 25, 0.75) 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 6rem 0;
    position: relative;
}

:root.light-theme .showcase-section {
    background: linear-gradient(180deg, rgba(59, 45, 134, 0.04) 0%, rgba(246, 247, 249, 0.95) 100%);
    border-top: 1px solid rgba(59, 45, 134, 0.12);
    border-bottom: 1px solid rgba(59, 45, 134, 0.12);
}

.diagnostico-subtitle {
    color: var(--color-secondary-gold);
    font-size: 1.15rem;
    margin-top: 0.8rem;
    max-width: 750px;
    text-align: center;
    font-style: italic;
    font-weight: 500;
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .pilares-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 580px) {
    .pilares-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.pilar-card {
    background: var(--glass-bg);
    border: 1px solid var(--color-border-gold);
    padding: 2.1rem 1.35rem;
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    width: 100%;
}

:root.light-theme .pilar-card {
    background: #ffffff;
    border: 1px solid rgba(59, 45, 134, 0.14);
    box-shadow: 0 4px 20px rgba(59, 45, 134, 0.07);
}

.pilar-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary-gold);
    box-shadow: var(--shadow-premium), var(--shadow-gold-glow);
}

:root.light-theme .pilar-card:hover {
    border-color: var(--color-secondary-gold);
    box-shadow: 0 10px 25px rgba(59, 45, 134, 0.14);
}

.pilar-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(197, 168, 128, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.22);
    margin: 0 auto 1.1rem auto;
}

:root.light-theme .pilar-icon-wrapper {
    background: rgba(59, 45, 134, 0.05);
    border: 1px solid rgba(59, 45, 134, 0.14);
}

.pilar-title-icon {
    width: 24px;
    height: 24px;
    color: var(--color-secondary-gold);
    display: block;
}

:root.light-theme .pilar-title-icon {
    color: var(--color-gold-bright);
}

.pilar-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary-gold);
    margin-bottom: 0.6rem;
}

:root.light-theme .pilar-badge {
    color: var(--color-gold-bright);
}

.pilar-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

:root.light-theme .pilar-title {
    color: var(--color-primary-navy);
}

.pilar-desc {
    font-size: 0.98rem;
    color: #cbd5e1; /* Aclarado 15% hacia blanco para mayor nitidez */
    line-height: 1.6;
    flex: 1;
}

:root.light-theme .pilar-desc {
    color: var(--color-text-muted);
}

/* =================================================================
   SERVICIOS SECTION
   ================================================================= */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-premium);
    transition: border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    flex: 1 1 320px;
    max-width: 380px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 80%, rgba(197, 168, 128, 0.05) 100%);
    transition: var(--transition-smooth);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-card-hover-border);
    box-shadow: var(--shadow-premium), 0 0 25px var(--card-hover-glow);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--color-secondary-gold);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.case-icon {
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-main);
    letter-spacing: 0.5px;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.service-link {
    text-decoration: none;
    color: var(--color-secondary-gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.case-icon {
    margin: 0 0 1.2rem 0 !important; /* Alineado a la izquierda para los casos */
    display: block !important;
}

/* =================================================================
   PRICING / TIERS SECTION (MODELOS RETAINER B2B - TATRS 2026)
   ================================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    max-width: 1240px;
    margin: 0 auto;
}

@media (max-width: 1080px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        gap: 2.5rem;
    }
}

.price-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.8rem 2rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

:root.light-theme .price-card {
    background: #ffffff;
    border: 1px solid rgba(59, 45, 134, 0.12);
    box-shadow: 0 10px 30px rgba(59, 45, 134, 0.06);
}

.price-card.popular {
    border-color: var(--color-secondary-gold);
    box-shadow: var(--shadow-premium), var(--shadow-gold-glow);
}

:root.light-theme .price-card.popular {
    border: 2px solid var(--color-secondary-gold);
    box-shadow: 0 15px 35px rgba(59, 45, 134, 0.15);
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-card-hover-border);
    box-shadow: var(--shadow-premium), 0 0 25px var(--card-hover-glow);
}

.price-card.popular:hover {
    border-color: var(--color-secondary-gold);
    box-shadow: var(--shadow-premium), var(--shadow-gold-glow), 0 0 25px var(--card-hover-glow);
}

.price-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--color-btn-bg-start) 0%, var(--color-btn-bg-end) 100%);
    color: var(--color-btn-text);
    padding: 0.3rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.tier-category-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-secondary-gold);
    margin-bottom: 0.6rem;
    display: inline-block;
}

:root.light-theme .tier-category-badge {
    color: var(--color-gold-bright);
}

.tier-category-badge.gold {
    color: var(--color-secondary-gold);
}

:root.light-theme .tier-category-badge.gold {
    color: var(--color-primary-navy);
}

.price-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--color-text-main);
    line-height: 1.25;
}

:root.light-theme .price-title {
    color: var(--color-primary-navy);
}

.price-subtitle {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.5;
    min-height: 42px;
}

.tier-investment-box {
    background: rgba(197, 168, 128, 0.05);
    border: 1px dashed var(--color-border-gold);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

:root.light-theme .tier-investment-box {
    background: rgba(59, 45, 134, 0.03);
    border: 1px dashed rgba(59, 45, 134, 0.2);
}

.tier-investment-box.popular-box {
    background: rgba(197, 168, 128, 0.12);
    border: 1px solid var(--color-secondary-gold);
}

:root.light-theme .tier-investment-box.popular-box {
    background: rgba(59, 45, 134, 0.07);
    border: 1px solid var(--color-secondary-gold);
}

.tier-investment-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.tier-investment-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.2px;
}

:root.light-theme .tier-investment-val {
    color: var(--color-text-main);
}

.tier-investment-val.gold {
    color: var(--color-secondary-gold);
}

:root.light-theme .tier-investment-val.gold {
    color: var(--color-primary-navy);
}

.tier-investment-sub {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.price-features {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.price-feature-item {
    font-size: 0.9rem;
    color: var(--color-price-feature);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

:root.light-theme .price-feature-item {
    color: var(--color-text-main);
}

.price-feature-item::before {
    content: "✓";
    color: var(--color-secondary-gold);
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: -1px;
}

:root.light-theme .price-feature-item::before {
    color: var(--color-gold-bright);
}

.tier-btn-action {
    padding: 0.95rem 1.5rem;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* =================================================================
   CONTACT SECTION & MAP
   ================================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

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

.contact-info .section-title::after {
    left: 0;
    transform: none;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-item-icon {
    font-size: 1.5rem;
    color: var(--color-secondary-gold);
    margin-top: 3px;
}

.contact-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.contact-item-value {
    font-size: 1.05rem;
    color: var(--color-text-main);
    word-break: break-word;
}

.contact-form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-premium);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    max-width: 100%;
    background: var(--color-input-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.9rem 1.2rem;
    color: var(--color-text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--color-secondary-gold);
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.15);
}

textarea.form-input {
    resize: none;
    min-height: 120px;
}

/* =================================================================
   FOOTER SECTION
   ================================================================= */
.premium-footer {
    background: var(--color-footer-bg);
    padding: 5rem 0 3rem 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-footer-text);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-about-logo {
    margin: 0 auto 1.5rem auto;
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    height: 78px;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.footer-about-desc {
    max-width: 320px;
    line-height: 1.6;
    margin: 0 auto;
}

.footer-column h4 {
    color: var(--color-footer-title);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background-color: var(--color-footer-heading-line, rgba(197, 168, 128, 0.3));
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.footer-link {
    color: var(--color-footer-text);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--color-footer-hover);
    padding-left: 0; /* Remove left padding shift for centered layout */
    text-shadow: 0 0 10px rgba(197, 168, 128, 0.4);
}

.social-link-item {
    color: var(--color-footer-text);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
}

.social-link-item:hover {
    border-color: var(--color-footer-hover);
    color: var(--color-footer-hover);
    box-shadow: 0 0 15px var(--card-hover-glow);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-footer-border, rgba(255, 255, 255, 0.08));
    padding-top: 2rem;
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-theme-btn, var(--color-secondary-gold));
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}
.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile Menu Button Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    z-index: 2001; /* Stay above the menu drawer */
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-btn .bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-text-main);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Morphing hamburger lines into 'X' close button */
.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Chat Reset Button Styles */
#chat-reset-btn {
    background: none;
    border: none;
    color: #c5a880; /* Fixed luxury gold for high contrast in dark WhatsApp header */
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 20px; /* Fully rounded capsule shape */
    border: 1px solid rgba(197, 168, 128, 0.4);
    transition: all 0.2s ease;
    margin-left: auto;
    letter-spacing: 0.5px;
}
#chat-reset-btn:hover {
    background: #c5a880;
    color: #1f2c34; /* Maximum contrast dark text on gold background */
}

/* Powered By Link Contrast Styles */
.footer-powered {
    font-size: 0.8rem;
    color: var(--color-footer-text);
    margin-top: 2px;
    opacity: 0.8;
}
.footer-powered a {
    color: var(--color-footer-hover, var(--color-secondary-gold));
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}
.footer-powered a:hover {
    color: var(--color-footer-powered-hover, var(--color-brand-accent));
}

/* =================================================================
   ANIMATIONS & KEYFRAMES
   ================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================================================
   MW-FX ANIMATION SYSTEM — SCROLL REVEAL & STAGGER ENGINE
   ================================================================= */
.tz-reveal {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    will-change: opacity, transform;
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.tz-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.tz-reveal-scale {
    opacity: 0;
    transform: scale(0.96) translate3d(0, 20px, 0);
    will-change: opacity, transform;
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.tz-reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
}

/* Stagger Delays (80ms harmonic cadence from SGP 2.0 / MW-FX) */
.tz-stagger-1 { transition-delay: 0.08s; }
.tz-stagger-2 { transition-delay: 0.16s; }
.tz-stagger-3 { transition-delay: 0.24s; }
.tz-stagger-4 { transition-delay: 0.32s; }
.tz-stagger-5 { transition-delay: 0.40s; }
.tz-stagger-6 { transition-delay: 0.48s; }
.tz-stagger-7 { transition-delay: 0.56s; }
.tz-stagger-8 { transition-delay: 0.64s; }

/* Backward-compatibility with existing animate-fade-in */
.animate-fade-in {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-in.active,
.animate-fade-in.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s !important;
}

.delay-100 { transition-delay: 0.08s; }
.delay-150 { transition-delay: 0.16s; }
.delay-200 { transition-delay: 0.24s; }
.delay-300 { transition-delay: 0.32s; }
.delay-400 { transition-delay: 0.40s; }

/* =================================================================
   FADE-SKILL — SERVICES FILTER BAR & PURE OPTICAL CROSS-DISSOLVE
   ================================================================= */
.service-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 3rem auto;
    max-width: 860px;
}

.filter-pill-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    padding: 0.6rem 1.3rem;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    text-decoration: none;
}

:root.light-theme .filter-pill-btn {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #475569;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.filter-pill-btn:hover {
    border-color: var(--color-secondary-gold);
    color: var(--color-text-main);
    transform: translateY(-2px);
}

:root.light-theme .filter-pill-btn:hover {
    border-color: var(--color-brand-accent);
    color: var(--color-primary-navy);
    box-shadow: 0 4px 12px rgba(57, 61, 179, 0.12);
}

.filter-pill-btn.active {
    background: linear-gradient(135deg, var(--color-btn-bg-start) 0%, var(--color-btn-bg-end) 100%);
    color: var(--color-btn-text);
    border-color: var(--color-secondary-gold);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(197, 168, 128, 0.3);
    transform: translateY(-1px);
}

:root.light-theme .filter-pill-btn.active {
    background: linear-gradient(135deg, var(--color-brand-accent) 0%, #2b2e88 100%);
    color: #ffffff;
    border-color: var(--color-brand-accent);
    box-shadow: 0 4px 16px rgba(57, 61, 179, 0.28);
}

.filter-pill-count {
    font-size: 0.75rem;
    opacity: 0.85;
    background: rgba(0, 0, 0, 0.18);
    padding: 2px 7px;
    border-radius: 12px;
    line-height: 1;
}

:root.light-theme .filter-pill-btn.active .filter-pill-count {
    background: rgba(255, 255, 255, 0.25);
}

/* View Transitions API isolation for Services */
.tz-service-crossfade {
    view-transition-name: service-catalog-crossfade;
    width: 100%;
}

::view-transition-old(service-catalog-crossfade),
::view-transition-new(service-catalog-crossfade) {
    mix-blend-mode: normal;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

::view-transition-old(service-catalog-crossfade) {
    animation: 250ms cubic-bezier(0.4, 0, 0.2, 1) both tzFadeOut;
}

::view-transition-new(service-catalog-crossfade) {
    animation: 250ms cubic-bezier(0.4, 0, 0.2, 1) both tzFadeIn;
}

@keyframes tzFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes tzFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fallback pure optical fade classes */
.service-card.tz-fading-out {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.service-card.tz-fading-in {
    opacity: 1 !important;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.service-card.is-hidden {
    display: none !important;
}

/* Micro-interaction card spring lift */
.service-card, .pilar-card, .price-card, .about-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pilar-card:hover, .price-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-card-hover-border);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.45), 0 0 25px var(--card-hover-glow);
}

:root.light-theme .pilar-card:hover,
:root.light-theme .price-card:hover {
    box-shadow: 0 20px 40px -10px rgba(32, 53, 65, 0.12), 0 0 20px rgba(57, 61, 179, 0.15);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .tz-reveal,
    .tz-reveal-scale,
    .animate-fade-in,
    .service-card,
    .pilar-card,
    .price-card,
    .filter-pill-btn {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* =================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ================================================================= */
@media (max-width: 968px) {
    .container {
        padding: 0 1.25rem;
    }

    .navbar-container {
        padding: 0 0.75rem;
        height: 78px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .btn-nav {
        display: none !important; /* Hide CTA inside header on mobile to prevent overflow/collisions */
    }
    
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(180deg, rgba(3, 13, 25, 0.90) 0%, rgba(3, 13, 25, 0.90) 70%, rgba(35, 15, 67, 0.90) 100%); /* 90% opacity, 70/30 distribution: top #030d19, bottom #230f43 */
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        justify-content: center;
        align-items: center;
        gap: 2.2rem;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
                    visibility 0.9s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 2rem;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .light-theme .nav-menu {
        background: linear-gradient(180deg, rgba(246, 247, 249, 0.90) 0%, rgba(246, 247, 249, 0.90) 70%, rgba(196, 171, 229, 0.90) 100%) !important; /* Soft premium purple-mist gradient bottom at 90% opacity */
    }
    
    /* Camera depth-of-field background blur effect when mobile menu is open */
    body.mobile-menu-active section,
    body.mobile-menu-active footer {
        filter: blur(6px) brightness(0.75); /* Soft camera focus blur reduced by 50% + cinematic darkening to let text stand out */
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu .nav-link {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--color-text-main);
        display: block;
        padding: 0.5rem 0;
        letter-spacing: 2px;
    }
    
    .nav-menu .nav-link::after {
        display: none;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 4rem;
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.2;
    }
    
    .hero-description {
        margin: 0 auto 2rem auto;
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-visual {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .about-card {
        padding: 1.75rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 2rem;
    }

    .price-card {
        padding: 2.25rem 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info {
        text-align: center;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .contact-info h2 {
        text-align: center !important;
    }

    .contact-info h2::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .contact-details {
        align-items: flex-start;
        text-align: left;
        max-width: 320px;
        margin: 0 auto;
    }

    .contact-form-card {
        padding: 1.75rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-about-desc {
        max-width: 100%;
    }
}

@media (max-width: 580px) {
    body {
        overflow-x: hidden;
    }

    .section {
        padding: 4.5rem 0;
    }

    #nosotros, #servicios, #casos, #planes, #contacto {
        padding-top: calc(4.5rem - 15px);
    }

    .section-header {
        margin-bottom: 2.2rem;
    }

    .service-filter-bar {
        gap: 0.5rem;
        margin-bottom: 2rem;
        padding: 0 0.25rem;
    }

    .filter-pill-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.95rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .about-text-content h3 {
        font-size: 1.6rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

    .phone-mockup-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }

    .phone-container {
        border-width: 3px;
        border-radius: 35px;
    }

    .whatsapp-screen {
        border-radius: 27px;
    }

    .whatsapp-header {
        padding: 25px 12px 8px 12px;
    }

    .header-name {
        font-size: 0.8rem;
    }

    .header-status {
        font-size: 0.55rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    /* Navbar adjustment for absolute narrow screens */
    .btn-nav {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .logo-img {
        height: 56px;
        margin-bottom: 2px;
    }

    .footer-logo-img {
        height: 62px;
    }

    /* Mobile adjustments for price card and recommended badge */
    .price-card {
        padding: 2.5rem 1.5rem;
    }

    .price-badge {
        position: static;
        align-self: flex-end;
        margin-bottom: 1.25rem;
        top: auto;
        right: auto;
    }
}

/* Section background bindings for dynamic theme rendering */
#servicios {
    background: var(--bg-section-servicios);
}
#casos {
    background: var(--bg-section-casos);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
#contacto {
    background: var(--bg-section-contacto);
}

/* =================================================================
   FLOATING WHATSAPP BUTTON & TOAST NOTIFICATION SYSTEM
   ================================================================= */
.whatsapp-float-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float-btn svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

.whatsapp-float-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-secondary-gold);
    color: var(--color-primary-navy);
    font-size: 0.65rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-dark);
}

/* Toast Container */
#toast-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.tizona-toast {
    background: var(--glass-bg);
    border: 1px solid var(--color-secondary-gold);
    color: var(--color-text-main);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-premium), 0 0 20px rgba(197, 168, 128, 0.2);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.tizona-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tizona-toast-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.tizona-toast-title {
    font-weight: 700;
    color: var(--color-secondary-gold);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

