/* ==========================================================
   G.A.S. PREMIUM DESIGN SYSTEM (v2.0)
   ========================================================= */

/* --- 1. FONTS (Google Fonts: Legal Tech Stack) --- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&family=IBM+Plex+Serif:wght@400;700&family=Inter:wght@300;400;600&display=swap');

/* --- 2. TOKENS --- */
:root {
    /* TYPOGRAPHY */
    --gas-font-heading: 'IBM Plex Serif', serif;
    --gas-font-body: 'Inter', sans-serif;
    --gas-font-mono: 'IBM Plex Mono', monospace;
    --gas-font-name: 'IBM Plex Serif', serif;
    /* Unifying name font too */

    /* PALETTE */
    --gas-navy: #050a14;
    /* Deepest Midnight */
    --gas-charcoal: #34495E;
    /* Corporate Gray-Blue */
    --gas-gold: #B8860B;
    /* Muted Gold */
    --gas-gold-light: #D4AF37;
    --gas-white: #FFFFFF;
    --gas-black: #000000;

    /* GRADIENTS */
    --gas-gradient-hero: linear-gradient(135deg, rgba(5, 10, 20, 0.97), rgba(0, 31, 63, 0.9), rgba(184, 134, 11, 0.18));
    --gas-gradient-panel: linear-gradient(145deg, rgba(10, 17, 40, 0.88), rgba(10, 17, 40, 0.6));
    --gas-gradient-gold-soft: linear-gradient(135deg, rgba(184, 134, 11, 0.12), rgba(184, 134, 11, 0.35));

    /* EFFECTS */
    --gas-shadow-elevated: 0 18px 45px rgba(0, 0, 0, 0.55);
    --gas-glow-gold: 0 0 18px rgba(184, 134, 11, 0.45);

    /* METRICS */
    --gas-radius-card: 16px;
    --gas-radius-button: 999px;
    /* Pill */
    --gas-section-padding-y: clamp(4rem, 10vh, 10rem);
    --gas-gap-lg: clamp(2rem, 5vw, 4rem);
    --gas-gap-md: clamp(1.5rem, 3vw, 2.5rem);
    --gas-gap-sm: clamp(1rem, 2vw, 1.5rem);

    /* LAYOUT */
    --page-content-width: 1200px;
    --gas-header-height: 3.5rem;

    /* FLUID ENGINE (Utopia-like Scaling) */
    /* Space scales from 1rem at 320px to 5rem at 1240px */
    --gas-space-fluid: clamp(1rem, 0.5rem + 4vw, 5rem);

    /* Gaps scale symmetrically */
    --gas-gap-fluid: clamp(1.5rem, 1rem + 2vw, 3rem);
}

/* --- UNIFIED CONTAINER OVERRIDE --- */
/* Forces ALL .container elements (from main.css) to match hero/header width */
.container {
    width: 100% !important;
    max-width: var(--page-content-width) !important;
    padding-left: var(--gas-gap-fluid) !important;
    padding-right: var(--gas-gap-fluid) !important;
    box-sizing: border-box;
}

/* --- 3. RESET & BASE --- */
body,
input,
select,
textarea {
    font-family: var(--gas-font-body) !important;
    font-weight: 300;
    color: var(--gas-white) !important;
    /* Fixed: White Text */
    background-color: var(--gas-navy) !important;
    /* Fixed: Navy Background */
}

#page-wrapper {
    background-color: var(--gas-navy);
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--gas-font-heading) !important;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: inherit;
}

/* Global Fluid Headings */
h1 {
    font-size: clamp(2.2rem, 7vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

/* --- 4. UTILITY CLASSES (Animation) --- */
.gas-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.gas-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MONO UTILITIES (Legal Tech Detail) --- */
.tech-label,
.code-detail,
.mono-text {
    font-family: var(--gas-font-mono) !important;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Specific Targets for Mono Polish */
.hero-eyebrow {
    font-family: var(--gas-font-mono) !important;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
}

/* Removed broken fragment */

.gas-soft-scale {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.gas-soft-scale:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--gas-shadow-elevated);
}

.gas-icon-pulse {
    transition: transform 0.3s ease;
}

.gas-soft-scale:hover .gas-icon-pulse {
    transform: scale(1.1);
    color: var(--gas-gold-light);
}

.gas-card-underline {
    display: inline-block;
    position: relative;
    padding-bottom: 4px;
}

.gas-card-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gas-gold);
    transition: width 0.4s ease;
}

.gas-soft-scale:hover .gas-card-underline::after {
    width: 100%;
}

.gas-name {
    font-family: var(--gas-font-name) !important;
    font-size: 1.8em;
    color: var(--gas-gold);
    display: block;
    margin: var(--gas-gap-sm) 0;
    text-transform: none !important;
    /* Signature is proper case */
}

/* --- 5. HERO ARCHITECTURE (Replaces #banner) --- */
/* (Deleted nested #hero wrapper) */

#hero {
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5vh;
    background-color: var(--gas-navy);
    background-image: url("assets/hero-bg.webp");
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Dual Layer Elite Overlay */
    background: radial-gradient(circle at center, rgba(5, 10, 20, 0.45) 0%, rgba(5, 10, 20, 0.85) 100%),
        linear-gradient(to bottom, transparent 70%, var(--gas-navy) 100%);
    backdrop-filter: blur(1.5px);
    z-index: 1;
}

/* Elite Temporal Flow: Fixed Parallax for Desktop */
@media (min-width: 1025px) {
    #hero {
        background-attachment: fixed;
    }
}

/* Mobile Focal Shift & Stability */
@media (max-width: 980px) {
    .hero-grid-system {
        height: auto;
        min-height: 80vh;
        padding-top: 10vh;
        padding-bottom: 15vh;
    }
}

@media (max-width: 768px) {
    #hero {
        background-position: 60% center;
        background-attachment: scroll;
    }

    .hero-col-content {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        padding: 0;
        justify-content: flex-start !important;
        /* Root Fix: Don't force center vertically */
        margin-top: 2rem !important;
        /* Gentle natural top margin */
    }

    .hero-col-visual {
        display: none;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions .gas-submit-btn,
    .hero-actions .button {
        width: 100% !important;
        max-width: 400px;
    }
}

.hero-grid-system {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--page-content-width);
    margin: 0 auto;
    padding: 0 var(--gas-gap-fluid);
    display: flex;
    flex-direction: row;
    align-items: center;
    height: calc(100svh - 5vh);
    box-sizing: border-box;
}

.hero-col-content {
    flex: 0 0 57%;
    max-width: 57%;
    z-index: 15;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.8rem, 2vh, 2rem);
    padding-right: 0;
}

.hero-col-content>* {
    margin: 0 !important;
}

.hero-col-visual {
    flex: 0 0 58%;
    margin-left: -15%;
    z-index: 5;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: visible !important;
}

/* Header Override for Visibility */
#header {
    z-index: 1000 !important;
    position: relative;
}

#header nav a,
#header h1 a {
    color: #ffffff !important;
}

.hero-text-zone {
    flex: 0 0 50%;
    /* Standard 50% split */
    max-width: 50%;
    text-align: left;
    z-index: 20;
    padding-right: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* REMOVED: Duplicate .hero-col-visual block — now defined only at line 262 */

/* Canvas Positioning */
/* Canvas Positioning */
#justiceCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    /* Brought to Front (Above Gradient Overlay) */
    pointer-events: none;
    opacity: 1;
    /* Fully Opaque */
}

/* Foreground Justice (Right Column) */
#justiceHero {
    width: 100%;
    height: 100%;
    /* Fill the column */
    display: block;
    /* Ensure no inline gaps */
    /* pointer-events: none; allow interaction if needed, or act as bg */
}

/* Typography Overrides for Hero */
.hero-premium-tagline {
    font-family: var(--gas-font-heading);
    color: var(--gas-gold);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

/* Removed: orphaned #hero h1 rule — typography controlled by .hero-claim */

/* Professional Card Component */
.professional-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--gas-gold);
    border-radius: 8px;
    /* Not pill */
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.card-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--gas-gold);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.4);
}

.card-details h3 {
    font-size: 1rem;
    color: var(--gas-white);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-details h3 strong {
    color: var(--gas-gold);
    font-weight: 800;
}

.card-details p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-specialties {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-specialties .bullet {
    color: var(--gas-gold);
    margin: 0 0.5rem;
}

/* CTA Wrapper */
.hero-cta-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.cta-subtext {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-left: 0.5rem;
}

/* Button Glow Effect (Primary) */
.button.primary.glow-effect {
    box-shadow: 0 0 20px rgba(228, 76, 101, 0.4);
    /* Base Red Glow matching theme */
    transition: all 0.3s ease;
    border: none;
}

.button.primary.glow-effect:hover {
    box-shadow: 0 0 30px rgba(228, 76, 101, 0.7), 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Button Ghost Effect (Secondary) */
.button.ghost-effect {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: none;
    transition: all 0.3s ease;
}

.button.ghost-effect:hover {
    border-color: var(--gas-white);
    color: var(--gas-white) !important;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}




/* --- 6. WIZARD COMMAND CENTER (Big Cards) --- */
/* --- 6. DECISION CENTER (WIZARD) --- */

/* Background: Point-Cloud Pantheon */
#command-center {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    background:
        linear-gradient(180deg,
            var(--gas-navy) 0%,
            rgba(10, 17, 30, 0.49) 30%,
            rgba(10, 17, 30, 0.42) 70%,
            var(--gas-navy) 100%),
        url('images/fondo-wizard.png') center bottom / cover no-repeat;
    overflow: hidden;
    padding: 6rem 0 8rem 0 !important;
}

/* Fix: Change red theme line to gold for the wizard section */
#command-center header.major {
    margin-bottom: 2rem !important;
}

#command-center header.major:after {
    background: var(--gas-gold) !important;
}

/* Force scrolly arrow to always stay below section content */
#command-center .goto-next {
    bottom: 2.5rem !important;
    z-index: 10;
}

/* Subtle vignette for depth */
#command-center::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, var(--gas-navy) 100%);
    pointer-events: none;
    z-index: 1;
}

#command-center>.container {
    position: relative;
    z-index: 2;
}

.wizard-stepper {
    position: relative;
    max-width: 850px;
    margin: 2rem auto;
    /* Glassmorphism: semi-transparent with blur */
    background: rgba(10, 17, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: clamp(1.5rem, 4vw, 3rem);
    overflow: hidden;
}

/* Progress Bar */
.wizard-progress-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 2.5rem;
    position: relative;
}

.wizard-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gas-gold);
    width: 33.33%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--gas-gold);
}

.wizard-progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.75rem;
    color: var(--gas-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Steps Transition */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.wizard-question-title {
    color: var(--gas-white);
    font-size: clamp(1.4rem, 4vh, 2rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.wizard-question-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* Step 1: Cards */
.wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.wizard-card {
    background: linear-gradient(145deg, #1e2a3a, #151e29);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 380px;
    margin: 0 auto;
}

.wizard-card:hover {
    border-color: var(--gas-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* UX Strategy: Active Call to Action (Breathing Glow) - Subtle 30% less */
@keyframes wizardPulse {
    0% {
        box-shadow: 0 0 10px 0 rgba(212, 175, 55, 0.2);
        border-color: rgba(212, 175, 55, 0.2);
    }

    50% {
        box-shadow: 0 0 18px 3px rgba(212, 175, 55, 0.6);
        border-color: rgba(212, 175, 55, 0.7);
    }

    100% {
        box-shadow: 0 0 10px 0 rgba(212, 175, 55, 0.2);
        border-color: rgba(212, 175, 55, 0.2);
    }
}

.wizard-card.pulse-prompt {
    animation: wizardPulse 2.5s infinite;
}

.wizard-card.pulse-prompt:hover {
    animation: none;
    /* Stop pulsing when interacting */
    border-color: var(--gas-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.wizard-card h3 {
    color: var(--gas-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.wizard-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.wizard-card-action {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gas-gold);
    font-weight: 700;
}

/* Step 2: Descriptive Questions */
.wizard-step2-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wizard-step2-profile {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--gas-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.wizard-subtitle {
    font-size: 1.3rem;
    color: var(--gas-white);
    margin: 0;
}

.wizard-q-block {
    margin-bottom: 1.5rem;
}

.wizard-q-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--gas-gold);
}

.wizard-options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wizard-option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.4;
}

.wizard-option-btn:hover {
    border-color: var(--gas-gold);
    background: rgba(255, 215, 0, 0.05);
}

.wizard-option-btn.selected {
    border-color: var(--gas-gold);
    background: rgba(255, 215, 0, 0.1);
    color: var(--gas-white);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.wizard-opt-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.wizard-opt-label {
    flex: 1;
}

/* Step 2 Navigation */
.wizard-step2-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wizard-nav-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
}

.wizard-nav-btn:hover {
    border-color: var(--gas-gold);
    color: var(--gas-gold);
}

.wizard-nav-btn.wizard-next {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--gas-gold);
    color: rgba(255, 215, 0, 0.4);
}

.wizard-nav-btn.wizard-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wizard-nav-btn.wizard-next.ready {
    background: var(--gas-gold);
    color: var(--gas-black);
    font-weight: 700;
    opacity: 1;
}

/* Step 3: Personalized Result */
.wizard-payoff {
    text-align: center;
    padding: 2rem 1rem;
}

.wizard-payoff-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.wizard-payoff-title {
    font-size: 1.4rem;
    color: var(--gas-gold);
    margin-bottom: 1rem;
}

.wizard-personalized-msg {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-personalized-detail {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-lead-mini {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
}

.wizard-lead-mini input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gas-white);
    font-size: 0.9rem;
}

.wizard-lead-mini input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.wizard-submit-btn {
    margin-top: 0.5rem;
}

.wizard-micro {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.wizard-confirmed {
    animation: fadeIn 0.5s ease forwards;
}

.wizard-step3-nav {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* Diagnostic Card (Step 3) */
.wizard-diagnostic {
    background: linear-gradient(145deg, rgba(30, 42, 58, 0.9), rgba(21, 30, 41, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
}

.wizard-diagnostic-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.wizard-diag-icon {
    font-size: 1.8rem;
}

.wizard-diag-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gas-gold);
    font-weight: 700;
}

.wizard-diag-title {
    font-size: 1.3rem;
    color: var(--gas-white);
    line-height: 1.4;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-diag-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wizard-diag-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gas-gold);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.wizard-diag-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.wizard-diag-actions {
    text-align: center;
    padding-top: 1rem;
}

.wizard-diag-cta {
    display: inline-block;
    font-size: 0.85rem !important;
}

/* Wizard Icons Stylying */
.wizard-card-icon,
.wizard-opt-icon,
.wizard-diag-icon {
    transition: all 0.3s ease;
    color: var(--gas-gold);
}

.wizard-card-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.wizard-card:hover .wizard-card-icon,
.wizard-card.active .wizard-card-icon {
    color: var(--gas-white);
    transform: scale(1.1);
}

.wizard-opt-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.wizard-option-btn.selected .wizard-opt-icon {
    color: var(--gas-white);
}

.wizard-diag-icon {
    font-size: 2rem;
    margin-right: 1rem;
}


/* --- 7. AUTHORITY SECTION (Grid) --- */
.authority-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.authority-list-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: right;
}

.auth-item {
    border-right: 3px solid var(--gas-gold);
    padding-right: 1.5rem;
    transition: all 0.3s ease;
}

.auth-item:hover {
    padding-right: 2rem;
    border-color: var(--gas-white);
}

.auth-role {
    display: block;
    font-size: 0.85rem;
    color: var(--gas-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.auth-entity {
    font-size: 1.2rem;
    color: var(--gas-navy);
    font-weight: 700;
    margin: 0;
}

/* Case Study Card */
.case-study-card {
    background: var(--gas-navy);
    color: var(--gas-white);
    padding: 3rem;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 50px rgba(5, 10, 20, 0.3);
    text-align: left;
}

.case-badge {
    background: var(--gas-gold);
    color: var(--gas-navy);
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    margin-bottom: 1rem;
}

.case-study-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.case-metrics {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.metric .val {
    display: block;
    font-size: 2.5rem;
    color: var(--gas-gold);
    line-height: 1;
}

.metric .lbl {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- 8. PHASES (Stepper) --- */
#phases-section {
    background: #fff;
}

.stepper-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    text-align: left;
    padding: 2rem;
    border-top: 4px solid var(--gas-charcoal);
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--gas-gold);
    background: #fdfdfd;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
}

.step-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

/* --- WIZARD CARDS (Profiles) --- */
.wizard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Mobile Stacking Fix */
@media screen and (max-width: 980px) {
    .wizard-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 1.5rem;
    }
}

.wizard-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 31, 63, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    position: relative;
}

/* Hover Polish */
.wizard-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--gas-gold);
}

/* --- 9. SOLUTIONS (Grid) --- */
#solutions-section {
    background: #f4f6f8;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.solution-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
}

.sol-icon {
    font-size: 2rem;
    color: var(--gas-gold);
    margin-bottom: 1.5rem;
}

.solution-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* --- 10. DIAGNOSTIC FORM (Card) --- */
#diagnostic-section {
    background: var(--gas-navy);
}

.diagnostic-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.diagnostic-header {
    background: var(--gas-charcoal);
    padding: 3rem;
    color: #fff;
}

.diagnostic-header h2 {
    color: #fff;
    margin: 0.5rem 0;
}

.diagnostic-header .eyebrow {
    color: var(--gas-gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.diagnostic-body {
    display: flex;
}

.diagnostic-context {
    width: 35%;
    background: #f8f9fa;
    padding: 3rem;
    text-align: left;
    border-right: 1px solid #eee;
}

.diagnostic-form-col {
    width: 65%;
    padding: 3rem;
}

.context-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.context-list li {
    margin-bottom: 1rem;
    color: var(--gas-charcoal);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.context-list i {
    color: var(--gas-gold);
}

/* Mobile Responsive */
@media screen and (max-width: 980px) {

    .authority-grid-container,
    .stepper-container,
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .authority-list-col {
        text-align: left;
    }

    .auth-item {
        border-right: none;
        border-left: 3px solid var(--gas-gold);
        padding-right: 0;
        padding-left: 1.5rem;
    }

    .diagnostic-body {
        flex-direction: column;
    }

    .diagnostic-context,
    .diagnostic-form-col {
        width: 100%;
        padding: 2rem;
    }
}

/* ==========================================================
   3. NUCLEAR OVERRIDES (Fixing "Colors Not Applied")
   ========================================================== */

/* --- WIZARD PANEL (Landing) --- */
.wizard-panel .icon,
.wizard-panel .panel-icon {
    color: var(--gas-gold) !important;
}

.wizard-panel .panel-cta {
    color: var(--gas-gold) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wizard-panel:hover {
    border-color: var(--gas-gold) !important;
    background-color: rgba(184, 134, 11, 0.05) !important;
    /* Gold tint */
}

/* --- MULTI-STEP APPLICATION FORM --- */
.premium-application {
    background: #fff;
    padding: clamp(2rem, 4vw, 2.5rem);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-top: 5px solid var(--gas-gold);
    max-width: 720px;
    /* Increased from 520px to fit BOFU Split Panel */
    margin: 0 auto;
}

.application-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Progress Bar */
/* ============================
   PREMIUM FORM — GLASSMORPHISM
   ============================ */

.premium-application {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: clamp(2rem, 4vw, 2.5rem);
    max-width: 720px;
    /* Increased from 520px to fit BOFU Split Panel */
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-eyebrow {
    font-family: var(--gas-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gas-gold) !important;
    display: block;
    margin-bottom: 0.75rem;
}

.form-title {
    font-family: var(--gas-font-heading) !important;
    font-size: 1.6rem !important;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem !important;
    line-height: 1.3;
}

.form-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.6;
    margin: 0;
}

.form-divider {
    width: 60px;
    height: 2px;
    background: var(--gas-gold);
    margin: 1.5rem auto 0;
}

/* Form Grid */
.gas-form {
    max-width: 100% !important;
    margin: 0 !important;
}

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

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Floating Label Inputs */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem 0.75rem 0.5rem !important;
    height: auto !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px 4px 0 0 !important;
    color: #ffffff !important;
    font-family: var(--gas-font-body) !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none !important;
    box-sizing: border-box;
    box-shadow: none !important;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label {
    position: absolute;
    left: 0.75rem;
    top: 0.85rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4) !important;
    pointer-events: none;
    transition: all 0.25s ease;
    font-family: var(--gas-font-body);
}

/* Floating label: move up on focus or when input has content */
.form-group input:focus+label,
.form-group.has-content input+label,
.form-group textarea:focus+label,
.form-group.has-content textarea+label {
    top: 0.35rem;
    font-size: 0.65rem;
    color: var(--gas-gold) !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Gold bottom border on focus */
.form-line {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gas-gold);
    transition: width 0.4s ease;
}

.form-group input:focus~.form-line,
.form-group textarea:focus~.form-line {
    width: 100%;
}

/* Focus background glow */
.form-group input:focus,
.form-group textarea:focus {
    background: rgba(184, 134, 11, 0.05) !important;
    box-shadow: none !important;
}

/* ==========================================================
   BOFU CONTACT SYSTEM (Split-Decision Panel)
   ========================================================== */
.bofu-decision-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(184, 134, 11, 0.2);
    width: 100%;
}

.decision-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    /* Pushes the button and helper text apart symmetrically */
    gap: 1.2rem;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-sizing: border-box;
    transition: background 0.3s ease;
    width: 100%;
    /* Force obedience to grid column */
    overflow: hidden;
    /* Prevent inner text from breaking the card */
}

.decision-col:hover {
    background: rgba(255, 255, 255, 0.04);
}

.decision-microcopy {
    font-family: var(--gas-font-body);
    font-size: 0.85rem;
    color: var(--gas-light-gray);
    /* Same color for both to indicate equal hierarchy */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.decision-microcopy i {
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* Identical color for the icons and text in the microcopy to keep strict hierarchy */
.decision-microcopy.highlight {
    color: var(--gas-light-gray);
}

.decision-microcopy.highlight i {
    opacity: 0.7;
}

.decision-helper {
    font-size: 0.8rem;
    color: rgba(230, 230, 230, 0.6);
    margin: 0;
    max-width: 95%;
    /* Increased to allow proper wrapping inside the card */
    line-height: 1.4;
}

/* Base button modifications for equal weight */
.bofu-decision-panel .decision-btn {
    width: 100%;
    max-width: 320px;
    min-height: 60px;
    /* Force absolute identical height */
    white-space: nowrap;
    /* Prevent differential text wrapping */
}

.gas-ghost-btn {
    background: rgba(10, 20, 35, 0.4);
    border: 1px solid rgba(184, 134, 11, 0.8);
    /* Stronger gold border */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--gas-gold);
    /* Gold text to match border */
    /* Exact match to gas-submit-btn constants */
    padding: 1rem 2.5rem;
    font-family: var(--gas-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.gas-ghost-btn:hover {
    background: rgba(10, 20, 35, 0.8);
    border-color: var(--gas-gold);
    color: var(--gas-gold);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.2);
}

.gas-ghost-btn .btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.gas-ghost-btn .btn-icon i {
    color: var(--gas-gold);
}

.gas-ghost-btn:hover .btn-icon {
    transform: scale(1.1);
}

/* ==========================================================
   MEDIA QUERIES (Mobile Adjustments)
   ========================================================== */
@media screen and (max-width: 980px) {
    .bofu-decision-panel {
        gap: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .bofu-decision-panel {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 1.5rem;
    }

    .decision-col {
        padding: 1.5rem 1rem;
        width: 100%;
    }

    /* Reverse Order on Mobile: WhatsApp First */
    .decision-col.fast-route {
        order: -1;
    }

    .bofu-decision-panel .decision-btn {
        max-width: 100%;
        /* Full width on mobile */
    }

    .decision-helper {
        max-width: 100%;
        font-size: 0.75rem;
    }
}

/* Submit Button */
.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.gas-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gas-gold), var(--gas-gold-light));
    color: var(--gas-navy) !important;
    font-family: var(--gas-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gas-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.3);
}

.gas-submit-btn .btn-icon {
    transition: transform 0.3s ease;
}

.gas-submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Shimmer sweep on hover */
.gas-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s ease;
}

.gas-submit-btn:hover::before {
    left: 100%;
}

/* Privacy Note */
.form-privacy {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35) !important;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.form-privacy i {
    color: var(--gas-gold);
    margin-right: 0.4rem;
}

/* Mobile: stack form grid */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .premium-application {
        padding: 2rem 1.5rem;
    }
}

/* --- ICON REFINEMENT (Technical Diagram Look) --- */
.icon.major,
.panel-icon {
    /* Added panel-icon here */
    width: 3.5rem;
    height: 3.5rem;
    line-height: 3.5rem;
    border: 1px solid var(--gas-gold);
    border-radius: 50%;
    /* Circle */
    background: rgba(255, 255, 255, 0.05);
    /* Glassy fill */
    color: var(--gas-gold) !important;
    font-size: 1.5rem !important;
    /* Force size */
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
    display: inline-block;
    margin-bottom: 1rem;
}

.icon.alt {
    color: var(--gas-navy) !important;
    border-color: var(--gas-navy);
}

/* Specific overrides for cleaner look */
.panel-icon {
    font-size: 1.8rem !important;
    /* Slightly larger for Command Center icons */
}

.service-card .icon {
    background: #fff;
    /* White bg for service cards */
}

/* --- FOOTER OVERRIDE --- */
#footer {
    background-color: #111;
    /* Dark footer */
    color: #888;
    padding: 4rem 0 2rem 0;
}

/* --- COMMAND CENTER (Strategic Selector) --- */
#command-center {
    background-color: #1b1b1b;
    /* Darker than Hero Navy */
    padding: 6rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

#command-center header.major h2 {
    color: var(--gas-gold);
    font-family: var(--gas-font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

#command-center header.major p {
    color: #ccc;
    font-size: 1.1rem;
}

.route-card {
    background: rgba(40, 40, 40, 0.6);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle border */
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.route-card:hover {
    background: rgba(20, 30, 60, 0.8);
    /* Navy hint on hover */
    border-color: var(--gas-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.route-card .icon-container {
    color: var(--gas-gold);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.route-card:hover .icon-container {
    transform: scale(1.1);
}

.route-card h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.route-card blockquote {
    border-left: none;
    padding: 0;
    font-style: italic;
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.route-card .actions .button {
    background: transparent;
    border: 1px solid var(--gas-gold);
    color: var(--gas-gold);
    transition: all 0.3s ease;
}

.route-card:hover .actions .button {
    background: var(--gas-gold);
    color: #000;
}

/* --- AUTHORITY SECTION (Dynamic & Dark) --- */
#dynamic-authority-section {
    display: block !important;
    background-color: #050a14 !important;
    background-image:
        linear-gradient(to bottom, rgba(5, 10, 20, 0.6), rgba(5, 10, 20, 0.65)),
        url("images/Fondo 3.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
    background-repeat: no-repeat !important;
    padding: 5rem 0 !important;
    color: #ffffff !important;
    position: relative !important;
    z-index: 5;
    opacity: 1 !important;
    visibility: visible !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Force dark-mode text — BELT AND SUSPENDERS */
/* Level 1: Class-based (works even if ID changes) */
.authority-wrapper,
.authority-wrapper h2,
.authority-wrapper h3,
.authority-wrapper p,
.authority-wrapper strong,
.authority-wrapper span,
.authority-wrapper li {
    color: #ffffff !important;
}

/* Level 2: ID-based (highest specificity) */
#dynamic-authority-section,
#dynamic-authority-section h2,
#dynamic-authority-section h3,
#dynamic-authority-section p,
#dynamic-authority-section strong,
#dynamic-authority-section span:not(.case-badge),
#dynamic-authority-section li {
    color: #ffffff !important;
}

/* Level 3: Structural child selectors */
.authority-wrapper .auth-header h2,
.authority-wrapper .auth-header p,
.authority-wrapper .container h2,
.authority-wrapper .container p {
    color: #ffffff !important;
}

/* Exceptions: elements that need different colors */
.authority-wrapper .auth-role,
#dynamic-authority-section .auth-role {
    color: var(--gas-gold) !important;
}

.authority-wrapper .stat-val,
#dynamic-authority-section .stat-val {
    color: #ffffff !important;
}

.authority-wrapper .stat-label,
#dynamic-authority-section .stat-label {
    color: rgba(255, 255, 255, 0.6) !important;
}

.authority-wrapper .deal-desc,
#dynamic-authority-section .deal-desc {
    color: rgba(255, 255, 255, 0.8) !important;
}

.authority-wrapper .deal-sheet-card h3,
#dynamic-authority-section .deal-sheet-card h3 {
    color: var(--gas-gold) !important;
}

#dynamic-authority-section .case-badge {
    color: var(--gas-navy) !important;
    background-color: var(--gas-gold) !important;
}

/* Transition State */
#dynamic-authority-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#dynamic-authority-section.inactive {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.authority-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.authority-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.authority-list li:last-child {
    border-bottom: none;
}

.auth-role {
    display: block;
    font-size: 0.9rem;
    color: var(--gas-gold);
    /* Gold Role */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.auth-entity {
    display: block;
    font-size: 1.2rem;
    color: var(--gas-white);
    /* White Entity */
}

/* Deal Sheet Card */
.deal-sheet-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--gas-gold);
    text-align: left;
}

.deal-sheet-card h3 {
    font-size: 0.85rem;
    color: var(--gas-gold) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.deal-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gas-white) !important;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

.deal-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    margin: 0;
}

/* --- EDITORIAL ROWS (Replacing Spotlights) --- */
.editorial-row {
    padding: 6rem 0;
    position: relative;
    overflow: visible;
}

.editorial-row.style2 {
    background: #fff;
    color: var(--gas-charcoal);
}

.editorial-row.style3 {
    background: var(--gas-navy);
    color: #fff;
}

.editorial-eyebrow {
    display: block;
    font-family: var(--gas-font-heading);
    color: var(--gas-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.editorial-content header h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.editorial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Image Wrappers for "Module" look */
.image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    /* Placeholder for future CSS Shapes/Diagrams */
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.02);
}

/* Alt alignment handled by Flexbox 'order' if needed, but HTML structure handles it */


/* --- MOBILE OVERRIDES RE-CHECK --- */
/* Default Links: Charcoal */
a {
    color: var(--gas-charcoal);
    border-bottom-color: rgba(52, 73, 94, 0.2);
    /* Charcoal faint */
}

/* Links on Hover: Gold */
a:hover {
    color: var(--gas-gold) !important;
    border-bottom-color: transparent;
}

/* Links on DARK Backgrounds (Navy/Black) */
#banner a,
#footer a,
#cta a,
.wrapper.style2 a,
section.spotlight a {
    color: var(--gas-white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

#banner a:hover,
#footer a:hover,
#cta a:hover {
    color: var(--gas-gold) !important;
}

/* --- ALPHA TEMPLATE SPECIFICS --- */
/* CTA Section - Force Navy */
#cta {
    background-color: var(--gas-navy) !important;
    background-image: none !important;
    /* Remove Peach gradient */
    color: var(--gas-white) !important;
}

#cta h2,
#cta h3,
#cta p {
    color: var(--gas-white) !important;
}

#cta input[type="submit"],
#cta .button {
    background-color: var(--gas-gold) !important;
    color: var(--gas-black) !important;
}

/* Main Content Box - Force White/Black */
#main .box {
    background-color: var(--gas-white) !important;
    color: var(--gas-black) !important;
}

#main .box h2,
#main .box h3,
#main .box h4 {
    color: var(--gas-black) !important;
}

/* --- LANDED TEMPLATE SPECIFICS --- */
/* Wizard/Features Grid - Force White/Black if not already */
.wrapper.style1 {
    background-color: var(--gas-white) !important;
}

.wrapper.style1 h2,
.wrapper.style1 h3,
.wrapper.style1 p {
    color: var(--gas-black);
}

/* Fix for specific Orange icons in Landed Features */
.features .icon,
.spotlight .icon {
    color: var(--gas-gold) !important;
}

/* --- SPOTLIGHT THREAD RELICS (Remove Vivid Borders) --- */
.spotlight.style1 .content,
.spotlight.style2 .content,
.spotlight.style3 .content {
    border-color: var(--gas-gold) !important;
    /* Was Pink/Blue/Green */
    border-width: 0.35em !important;
    /* Maintain structural feel */
}

/* --- SYSTEM HIGHLIGHTS & FOCUS --- */
::selection {
    background: var(--gas-gold);
    color: var(--gas-white);
}

::-moz-selection {
    background: var(--gas-gold);
    color: var(--gas-white);
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    border-color: var(--gas-gold) !important;
    box-shadow: 0 0 0 1px var(--gas-gold) !important;
    outline: none;
}

/* Remove Orange from localized areas if any remain */
.image:before {
    background: rgba(0, 31, 63, 0.5) !important;
    /* Navy tint instead of default */
}

/* ==========================================================
   4. PROFILE HERO & AESTHETIC POLISH
   ========================================================== */

/* --- PROFILE HERO (Alpha Template) --- */
#banner {
    background-color: #050a14;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    padding: 6em 2em;
}

/* Ensure Overlay for readability if image is bright, but image is hero_bg.png (map) */
#banner:after {
    background: rgba(5, 10, 20, 0.45);
    /* LIGHTENED: Reveal map and justice figure */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Profile Hero Text - Clear and Centered (SCOPED) */
body.profile-page #banner .content {
    margin: 0 auto !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
}

body.profile-page #banner h2 {
    color: var(--gas-white) !important;
    font-size: 2.5em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 1 !important;
    filter: none !important;
    margin-bottom: 0.5em;
}

body.profile-page #banner p {
    color: #A0AEC0 !important;
    font-size: 1.1em;
    opacity: 1 !important;
    filter: none !important;
    max-width: 800px;
    margin: 0 auto 2em auto !important;
}

/* ==========================================================================
   2. HERO SECTION (Refined: Lady Justice & Professional Card)
   ========================================================================== */

/* NEUTRALIZED: Duplicate #hero block — conflicts with Block 1 at line 185 */
/* Original re-added display:flex, align-items:center, overflow:hidden */
/* These are now controlled ONLY by the Block 1 definition */

.hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    /* Allow stacking on mobile */
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

/* --- LEFT COLUMN: CONTENT (55%) --- */
/* --- LEFT COLUMN: CONTENT (55%) --- */
/* Consolidated with .hero-col-content for symmetry */

/* BLOCK 1: CLAIM */
.hero-claim {
    font-family: var(--gas-font-heading);
    font-size: clamp(1.8rem, 5.5vh, 4rem);
    /* vh-based: scales with screen HEIGHT */
    line-height: 1.1;
    color: var(--gas-white);
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.02em;
}

/* BLOCK 2: AUTHORITY */
.hero-authority {
    font-family: var(--gas-font-body);
    font-size: clamp(0.9rem, 2vh, 1.3rem);
    /* vh-based: proportional to claim */
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    max-width: 95%;
    font-weight: 300;
}

.hero-authority .highlight {
    color: var(--gas-gold);
    font-weight: 600;
}

/* BLOCK 3: PROFILE */
.hero-profile-block {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--gas-gold);
    padding: clamp(0.8rem, 1.5vh, 1.5rem);
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.profile-name {
    font-family: var(--gas-font-heading);
    font-size: clamp(1.1rem, 2.5vh, 1.6rem);
    margin: 0;
    text-transform: none;
    /* Shimmer effect */
    background: linear-gradient(90deg,
            var(--gas-white) 0%,
            var(--gas-white) 40%,
            var(--gas-gold-light) 50%,
            var(--gas-white) 60%,
            var(--gas-white) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 6s ease-in-out infinite;
}

.profile-subtitle {
    font-family: var(--gas-font-body);
    font-size: clamp(0.75rem, 1.5vh, 1rem);
    color: var(--gas-gold);
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profile-micro {
    font-family: var(--gas-font-mono);
    font-size: clamp(0.7rem, 1.2vh, 0.85rem);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* BLOCK 4: ACTIONS */
.hero-actions {
    display: flex;
    gap: clamp(0.8rem, 1.5vh, 1.5rem);
    align-items: center;
}

/* Hero-scoped button override: smaller within viewport-fit system */
.hero-actions .button {
    font-size: clamp(0.7rem, 1.3vh, 0.9rem);
    height: clamp(2rem, 4.5vh, 3rem);
    line-height: clamp(2rem, 4.5vh, 3rem);
    padding: 0 clamp(1rem, 2.5vh, 2rem);
    letter-spacing: 0.05em;
}

.button.primary {
    background-color: var(--gas-gold);
    color: var(--gas-black) !important;
    border: 2px solid var(--gas-gold);
    font-weight: 600;
}

.button.alt {
    background-color: transparent;
    color: var(--gas-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.button.alt:hover {
    border-color: var(--gas-gold);
    color: var(--gas-gold) !important;
}

.hero-disclaimer {
    display: none !important;
    /* Force hide across all versions */
}

.cta-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-left: 0.5rem;
}

/* --- PROFESSIONAL CARD COMPONENT --- */
.professional-card {
    background: rgba(20, 30, 60, 0.85);
    /* Semi-transparent Navy */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    /* Subtle Gold Border */
    border-left: 4px solid var(--gas-gold);
    /* Gold Accent */
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    transition: transform 0.3s ease;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.card-photo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--gas-gold);
    overflow: hidden;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-details h3 {
    font-family: var(--gas-font-heading);
    color: var(--gas-gold);
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-details h3 strong {
    color: #fff;
    font-weight: 800;
}

.card-details p {
    font-family: var(--gas-font-body);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

.card-specialties {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.card-specialties .bullet {
    color: var(--gas-gold);
}

/* --- RIGHT COLUMN: VISUAL (Animated Justice) --- */
.hero-visual {
    flex: 0 0 45%;
    max-width: 45%;
    /* Visual container is empty, serves as spacer for layout */
    height: 100%;
}

/* Canvas Positioning */
#justiceCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind content but visible */
    pointer-events: none;
    /* Allow clicks to pass through */
    /* Opacity handled in JS (0.4) */
}

/* --- LADY JUSTICE STABILIZED (HYBRID) --- */
#morph-container {
    position: absolute !important;
    top: 0;
    left: 0 !important;
    /* Always full-bleed to stabilize resize */
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 10;
    /* Frontal absolute visibility for Desktop */
    opacity: 0.85;
    /* Refined for immanence without saturation */
    transition: opacity 1s ease;
}

/* Ensure Hero is the relative anchor */
#hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 0 !important;
    /* Critical: Purge base padding */
}

/* Control layering of the grid system */
.hero-grid-system {
    position: relative !important;
    z-index: 5 !important;
    background: transparent !important;
    padding-top: 0px !important;
    /* Managed by children */
}

/* --- HERO OVERLAY MANAGEMENT --- */
/* Ensure content is above canvas */
.hero-inner {
    z-index: 10;
    position: relative;
}

/* --- HEADER REFINEMENTS (AURA JURIDICA) --- */
@keyframes gasHeaderAura {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 5px rgba(184, 134, 11, 0.1);
    }

    100% {
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(184, 134, 11, 0.3);
    }
}

#header {
    background: rgba(5, 10, 20, 0.85) !important;
    /* Glassmorphism Base */
    backdrop-filter: blur(12px);
    /* Frosted Glass Effect */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.25) !important;
    /* Hairline Gold Border */
    animation: gasHeaderAura 6s ease-in-out infinite alternate;
    /* Dynamic Aura Shadow */
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    z-index: 1000 !important;
}

/* Elite Branding Animation: Moving Light on Static Text */
@keyframes eliteShimmer {
    0% {
        background-position: -200% center;
        filter: drop-shadow(0 0 8px rgba(184, 134, 11, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    }

    100% {
        background-position: 200% center;
        filter: drop_shadow(0 0 8px rgba(184, 134, 11, 0.3));
    }
}

#header h1#logo {
    display: flex;
    align-items: center;
    line-height: 1;
    margin: 0;
}

#header h1#logo a {
    font-family: 'Via Appia', serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    margin-top: 5px;

    /* Dynamic Gold Gradient Structure */
    background: linear-gradient(110deg,
            #d4af37 0%,
            #b8860b 25%,
            #fff8dc 50%,
            /* Pure light strike */
            #b8860b 75%,
            #d4af37 100%);
    background-size: 200% auto;
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Apply the light and shadow movement */
    animation: eliteShimmer 7s linear infinite;
}

/* (Legacy mobile overrides removed — all responsive rules consolidated at end of file) */


/* REMOVE LEGACY BANNER on LANDING page only (perfil.html uses #banner) */
body.landing #banner {
    display: none !important;
}

/* Force Content container ABOVE overlay */
.landing #banner .content {
    z-index: 100 !important;
    position: relative !important;
}

/* Force Photo Frame HIGHER */
.landing #banner .hero-photo-frame {
    z-index: 101 !important;
    position: relative !important;
    opacity: 1 !important;
}

/* Force Image Container HIGHER and CLEAR */
.landing #banner .hero-photo-frame .image {
    z-index: 102 !important;
    position: relative !important;
    opacity: 1 !important;
    filter: none !important;
    background: none !important;
    /* Remove inset shadow to ensure no darkening */
    box-shadow: 0 0 0 4px rgba(10, 35, 66, 0.8), 0 0 20px rgba(184, 134, 11, 0.4) !important;
}

/* Force IMG element HIGHER and SOLID */
.landing #banner .hero-photo-frame .image img {
    z-index: 103 !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* B. LADY JUSTICE DEPTH */
/* Lower opacity to "appear behind" text */
/* B. LADY JUSTICE DEPTH (REMOVED: Restoring Full Brightness) */
/* #justiceCanvas opacity handled in main block at bottom */

/* C. WIZARD TYPOGRAPHY (Hierarchy Reorganized) */
.wizard-panel h4 {
    font-size: 0.95em !important;
    text-transform: uppercase !important;
}

.wizard-panel i {
    font-size: 1.5em !important;
}

/* D. SPOTLIGHT BORDERS (Double Border Fix) */
.spotlight .content {
    border-width: 2px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    border-style: solid !important;
}

/* E. PROFILE HERO (Alpha Template Only) - Scoped to avoid breaking Landing */
body:not(.landing) #banner {
    text-align: center !important;
}

body:not(.landing) #banner h2,
body:not(.landing) #banner p,
body:not(.landing) #banner .subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    max-width: 1200px;
}

#banner .actions {
    display: flex;
    justify-content: center;
    width: 100%;
}

#banner:after {
    background: rgba(5, 10, 20, 0.45) !important;
    /* Enforce visibility restoration */
}

body:not(.landing) #banner .inner {
    margin: 0 auto;
    width: 100%;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body:not(.landing) #banner .content {
    text-align: center !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

.landing #banner .inner {
    text-align: right !important;
    /* Absolute right alignment for Hero */
}

/* F. PROFILE SECTION BORDERS (Subtle Navy Dossier Look) */
#main .box.special {
    border: 1px solid rgba(0, 31, 63, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================
   10. WIZARD TRUNCATION FIX (Phase 18)
   ========================================================= */

/* FIX: Allow spotlight sections to grow beyond 100vh if content requires it */
.spotlight {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    /* Allow content to spill if needed */
}

/* FIX: Allow content box to expand naturally */
.spotlight.left .content,
.spotlight.right .content {
    height: auto !important;
    min-height: 100% !important;
    /* Ensure it still covers at least the full section */
}

/* ==========================================================
   11. VISUAL POLISH & TYPOGRAPHY (Phase 19)
   ========================================================= */

/* A. Typography Expansion */
.spotlight .content h2 {
    font-size: 2.5em !important;
    margin-bottom: 0.5em !important;
}

.spotlight .content p {
    font-size: 1.25em !important;
    line-height: 1.6 !important;
    text-align: justify;
}

/* B. Glassmorphism (Replacing Gold Borders) */
.spotlight .content {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    /* Subtle edge */
    background: rgba(23, 24, 32, 0.85) !important;
    /* Darker, slightly transparent */
    backdrop-filter: blur(10px) !important;
    /* The Glass Effect */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
    /* Deep shadow */
    border-radius: 8px !important;
    /* Soft corners */
}

/* Specific Border Color Overrides (Keep subtle tint but rely on glass) */
.spotlight.style1 .content,
.spotlight.style2 .content,
.spotlight.style3 .content {
    border-color: rgba(255, 255, 255, 0.1) !important;
    /* Force glass edge on all sides */
    border-top-width: 4px !important;
    /* Accent width */
}

/* Accent Colors for Top Border Only */
.spotlight.style1 .content {
    border-top-color: rgba(228, 76, 101, 0.8) !important;
}

.spotlight.style2 .content {
    border-top-color: rgba(84, 128, 241, 0.8) !important;
}

.spotlight.style3 .content {
    border-top-color: rgba(57, 192, 136, 0.8) !important;
}

/* C. Entry Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.spotlight:not(.inactive) .content h2 {
    animation: fadeInUp 0.8s ease forwards;
}

.spotlight:not(.inactive) .content p {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    /* 200ms delay */
    opacity: 0;
    /* Start hidden for animation */
}

/* D. Wizard Tabs Polish */
.wizard-header {
    background: rgba(23, 24, 32, 0.9) !important;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-tab.active {
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 -2px 0 var(--color-accent);
}

/* ==========================================================
   12. BACKGROUND REFINEMENT (Phase 20)
   ========================================================= */

/* User Request: Make Hero, Form, Header, and Footer Blue (#001F3F), keeping Global Navy as Midnight */
#banner,
.wrapper.style2 {
    background-color: #001F3F !important;
    /* Oxford Blue */
}

/* User Request: Header/Footer DARKER than Oxford Blue */
#header,
#footer {
    background-color: #000D1A !important;
    /* Deepest Navy (Darker than #001F3F) */
}

/* Ensure banner overlay matches the new blue */
#banner {
    background-image: linear-gradient(rgba(0, 31, 63, 0.85), rgba(0, 31, 63, 0.85)), url("images/hero_bg.png") !important;
}

/* ==========================================================
   13. HERO WIZARD POLISH (Phase 21)
   ========================================================= */

/* A. Glassmorphism Base */
.wizard-panel {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px;
    /* Ensure rounded corners */
}

/* B. Pulsating Glow Animation */
@keyframes glassPulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.15);
    }

    50% {
        /* Subtle Glow Peak */
        box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
        /* Soft Blue/Cyan Glow */
        border-color: rgba(255, 255, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.15);
    }
}

.wizard-panel {
    animation: glassPulse 4s infinite ease-in-out !important;
}

/* HERO REBUILD STYLES (Zero-Based) */

/* 1. CONTAINER & LAYOUT */
#hero-clean {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 800px;
    /* Prevent cramping on short screens */
    background-color: var(--gas-navy);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. LAYERS (Z-Index Hierarchy) */
#justiceCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    /* FOREGROUND HOLOGRAM (User Request) */
    pointer-events: none;
    /* Click-through */
    opacity: 1;
}

#justiceHero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 51;
    /* Slightly above bg to ensure visibility if needed, or same */
    pointer-events: none;
    opacity: 1;
}



/* 4. TYPOGRAPHY & ELEMENTS */
.hero-eyebrow {
    font-family: var(--gas-font-heading);
    color: var(--gas-gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#hero-clean h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* Responsive Type */
    line-height: 1.1;
    margin-bottom: 2.5rem;
    color: var(--gas-white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* 5. PROFESSIONAL CARD (Glassmorphism) */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Disclaimer removed globally */

/* 6. MOBILE RESPONSIVENESS */
@media screen and (max-width: 980px) {
    .landing #hero {
        min-height: 100vh;
        display: flex;
        align-items: stretch;
    }

    .hero-grid-system {
        flex-direction: column;
        text-align: center;
        padding-top: 320px !important;
        /* Doubled from 160px per user request */
        padding-bottom: 100px !important;
        /* Matches visible top gap */
        align-items: center;
        justify-content: space-evenly;
        /* Evenly distribute content within the balanced area */
        min-height: 100vh;
        width: 100%;
        gap: 1.5rem;
        /* Tighter grouping for a more elite, professional feel */
    }

    .hero-claim {
        font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
        margin: 0 0 1rem 0 !important;
        line-height: 1.1;
        width: 100%;
    }

    .hero-authority {
        font-size: 1rem !important;
        line-height: 1.4;
        margin: 0 auto 1.5rem auto !important;
        max-width: 95%;
    }

    .hero-profile-block {
        padding: 1.25rem !important;
        margin: 0 auto 1.5rem auto !important;
        width: 100%;
        max-width: 480px;
    }

    .profile-micro {
        display: block !important;
        line-height: 1.5;
        font-size: 0.75rem !important;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 0.75rem !important;
        margin: 0 auto !important;
    }

    .hero-actions .gas-submit-btn,
    .hero-actions .button {
        width: 100% !important;
        height: 3.2rem !important;
        line-height: 3.2rem !important;
        font-size: 0.85rem !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-col-content {
        flex: 0 0 100%;
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero-col-visual {
        display: none;
        /* Collapse right column on mobile */
    }

    #justiceCanvas {
        opacity: 0.15;
        /* Dim background for readability */
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .button {
        width: 100%;
        /* Full width buttons */
    }

    /* --- FIX DOUBLE MENU BUG --- */
    /* If both Landed theme and app.js create a toggle, we hide the redundant one */
    #navButton,
    .mobile-nav-toggle {
        display: none !important;
    }

    /* Ensure only the theme-provided one (if any) or the app.js one shows correctly.
       Looking at the screenshot, we have two icons. We will keep only one. */
    #navPanelToggle,
    .navPanelToggle {
        display: block !important;
    }
}

/* ==========================================================
   FORCE LIGHT THEME ON PHASES (Consolidated from index.html)
   ========================================================= */
#one.wrapper.style2,
#two.wrapper.style3,
#three.wrapper.style2 {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #333333 !important;
}

#two.wrapper.style3 {
    background-color: #f4f6f8 !important;
}

section#one h2,
section#two h2,
section#three h2 {
    color: #050a14 !important;
}

section#one p,
section#two p,
section#three p {
    color: #444444 !important;
}

section#one .editorial-eyebrow,
section#two .editorial-eyebrow,
section#three .editorial-eyebrow {
    color: #B8860B !important;
}

/* --- HEADER ALIGNMENT FIX --- */
/* Matches .hero-grid-system constraints */
.header-container {
    width: 100% !important;
    max-width: var(--page-content-width) !important;
    margin: 0 auto !important;
    /* Fluid Gutters match Hero */
    padding-left: var(--gas-gap-fluid) !important;
    padding-right: var(--gas-gap-fluid) !important;

    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    gap: var(--gas-gap-lg);
}

/* Override existing absolute positioning from main.css */
#header h1 {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    line-height: normal !important;
    height: auto !important;
}

#header nav {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

#header nav ul {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

#header nav ul li:last-child {
    margin-right: -1.25em;
    /* Offset for button padding to align perfectly with the grid edge */
}

/* Ensure header itself allows flex child height */
#header {
    display: flex;
    justify-content: center;
    /* Remove main.css padding overrides */
    padding: 0 !important;
}


/* ==========================================================
   PREMIUM VISUAL EFFECTS SYSTEM (v1.0 — "Manhattan")
   ========================================================= */

/* --- KEYFRAMES --- */

@keyframes goldShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(184, 134, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 24px rgba(184, 134, 11, 0.6), 0 0 48px rgba(184, 134, 11, 0.15);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes subtleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* --- UTILITY CLASSES --- */

/* Gold Gradient Text */
.gas-text-gradient-gold {
    background: linear-gradient(135deg,
            var(--gas-gold) 0%,
            var(--gas-gold-light) 40%,
            #f0d878 60%,
            var(--gas-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold Text Glow */
.gas-text-glow {
    text-shadow:
        0 0 10px rgba(184, 134, 11, 0.2),
        0 0 30px rgba(184, 134, 11, 0.1);
}

/* Hover Lift with Gold Shadow */
.gas-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gas-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(184, 134, 11, 0.1);
}

/* Intersection Observer Reveal */
.gas-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.gas-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children reveals */
.gas-reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gas-reveal-stagger.revealed>*:nth-child(1) {
    transition-delay: 0.05s;
}

.gas-reveal-stagger.revealed>*:nth-child(2) {
    transition-delay: 0.15s;
}

.gas-reveal-stagger.revealed>*:nth-child(3) {
    transition-delay: 0.25s;
}

.gas-reveal-stagger.revealed>*:nth-child(4) {
    transition-delay: 0.35s;
}

.gas-reveal-stagger.revealed>* {
    opacity: 1;
    transform: translateY(0);
}


/* ============================
   SECTION-SPECIFIC POLISH
   ============================ */

/* --- HERO POLISH --- */

/* Gold shimmer on profile name */
/* (profile-name shimmer merged into main rule above) */

/* Highlight glow in hero */
.hero-authority .highlight {
    text-shadow: 0 0 15px rgba(184, 134, 11, 0.35);
}

/* Primary CTA pulse */
#hero .button.primary {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Secondary CTA gold border hover */
#hero .button.alt:hover {
    border-color: var(--gas-gold) !important;
    color: var(--gas-gold) !important;
    box-shadow: 0 0 12px rgba(184, 134, 11, 0.2);
}


/* --- WIZARD POLISH --- */

/* Gold gradient on wizard main title */
#command-center header.major h2 {
    background: linear-gradient(135deg,
            var(--gas-white) 0%,
            var(--gas-gold-light) 50%,
            var(--gas-white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold glow on question title */
.wizard-question-title {
    text-shadow: 0 0 20px rgba(184, 134, 11, 0.15);
}

/* Diagnostic card border glow on hover */
.wizard-diagnostic:hover {
    border-color: rgba(184, 134, 11, 0.4);
    box-shadow: 0 0 25px rgba(184, 134, 11, 0.1);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}


/* --- EDITORIAL POLISH --- */

/* Eyebrow entrance animation */
.editorial-eyebrow {
    transition: letter-spacing 0.6s ease, opacity 0.6s ease;
}

.gas-reveal.revealed .editorial-eyebrow,
.editorial-row.revealed .editorial-eyebrow {
    letter-spacing: 3px;
}

/* Editorial images: subtle scale on hover */
.editorial-visual .image-wrapper {
    overflow: hidden;
    border-radius: 8px;
}

.editorial-visual .image-wrapper img {
    transition: transform 0.6s ease;
}

.editorial-visual .image-wrapper:hover img {
    transform: scale(1.03);
}

/* Editorial buttons: gold underline sweep */
.editorial-row .actions .button {
    position: relative;
}

.editorial-row .actions .button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gas-gold);
    transition: width 0.4s ease;
}

.editorial-row .actions .button:hover::after {
    width: 100%;
}


/* --- TRAYECTORIA POLISH --- */

/* Deal sheet card hover lift */
.deal-sheet-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.deal-sheet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(184, 134, 11, 0.1);
    border-color: rgba(184, 134, 11, 0.3);
}

/* Auth list item hover accent */
.authority-list li {
    transition: padding-left 0.3s ease, border-color 0.3s ease;
}

.authority-list li:hover {
    padding-left: 0.5rem;
    border-bottom-color: rgba(184, 134, 11, 0.3) !important;
}


/* --- FEATURES GRID POLISH --- */

/* Service cards entrance & layout */
.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Reduced horizontal padding to give titles more room to breathe */
    padding: clamp(1.2rem, 2vw, 2rem);
    background: transparent;
    border-radius: var(--gas-radius-card);
    transition: all 0.4s var(--gas-ease-out);
    position: relative;
    z-index: 1;
}

/* Ensure headings stay inside and break naturally */
.service-card h3 {
    font-size: clamp(1rem, 1.4vw, 1.25rem) !important;
    word-break: normal;
    overflow-wrap: normal;
    margin-bottom: 1rem;
    line-height: 1.4;
    /* Prevent hyphens entirely */
    -webkit-hyphens: none;
    hyphens: none;
}

/* Ensure descriptions don't crash */
.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: var(--gas-charcoal) !important;
    /* Keeps it legible */
}

/* Hover State: Physical card elevation */
.service-card:hover {
    transform: translateY(-8px);
    background: var(--gas-white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

/* Hover Action: Make icon pop */
.service-card:hover .icon {
    color: var(--gas-gold);
    transform: scale(1.1);
}

/* Features section title gradient (dark text) */
#four header.major h2 {
    background: linear-gradient(135deg, #050a14 0%, #34495E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================
   DYNAMIC AGENT CTA (End of Solutions Section)
   ========================================================== */

.gas-agent-cta {
    margin-top: 4rem;
    background: linear-gradient(145deg, rgba(15, 25, 40, 0.9), rgba(5, 10, 20, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: opacity 0.6s var(--gas-ease-out), transform 0.6s var(--gas-ease-out);
}

.gas-agent-cta.inactive {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.cta-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e2a3a, #0a0f1e);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 2px solid var(--gas-gold);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.3);
}

.cta-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 1px solid rgba(184, 134, 11, 0.4);
    animation: pingRing 3s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pingRing {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.cta-content {
    flex-grow: 1;
    text-align: left;
}

.cta-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff !important;
    /* pure white for max contrast */
    margin: 0;
    font-weight: 400;
    /* Increased from 300 for readability */
    font-style: italic;
    border-left: 2px solid var(--gas-gold);
    padding-left: 1.5rem;
}

.cta-action {
    flex-shrink: 0;
}

/* Button override to match Form UI (No Red) */
.gas-agent-cta .button.primary {
    transition: all 0.3s var(--gas-ease-out);
}

.gas-agent-cta .button.primary:hover {
    background-color: #050a14 !important;
    color: var(--gas-gold) !important;
    box-shadow: inset 0 0 0 1px var(--gas-gold) !important;
}

/* Responsive CTA */
@media screen and (max-width: 980px) {
    .gas-agent-cta {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }

    .cta-content {
        text-align: center;
    }

    .cta-message {
        border-left: none;
        padding-left: 0;
        font-size: 1rem;
    }
}


/* --- FORM POLISH --- */

/* (Form styles are now handled in the PREMIUM FORM — GLASSMORPHISM section above) */

/* Form title gold accent */
.form-title {
    text-shadow: 0 0 20px rgba(184, 134, 11, 0.15);
}


/* --- FOOTER POLISH --- */

/* Gold hover on social icons */
#footer .icons a {
    transition: color 0.3s ease, border-color 0.3s ease;
}

#footer .icons a:hover {
    color: var(--gas-gold) !important;
    border-color: var(--gas-gold) !important;
}

/* ==========================================================
   UX CONTEXT AWARENESS (The "Sticky Persona Badge")
   ========================================================== */

.gas-context-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 60px;
    background: rgba(10, 20, 35, 0.85);
    /* Deep Navy Glass matching WA */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 134, 11, 0.4);
    border-radius: 30px;
    /* Perfect pill */
    padding: 0 70px 0 20px;
    /* Right padding handles WA button overlap */
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    /* Just below WA button (9999) */

    /* Animation States: Slide out from behind WA button */
    transform: translateX(40px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.gas-context-badge.is-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.gas-context-badge .badge-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gas-white);
    font-size: 0.85rem;
    white-space: nowrap;
}

.gas-context-badge .badge-icon {
    color: var(--gas-gold);
    font-size: 1.1rem;
}

.gas-context-badge .badge-text strong {
    color: var(--gas-gold);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.gas-context-badge .badge-action {
    background: transparent;
    border: 1px solid rgba(184, 134, 11, 0.5);
    color: var(--gas-gold) !important;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.70rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gas-context-badge .badge-action:hover {
    background: rgba(184, 134, 11, 0.15);
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.3);
}

/* When the badge is visible, we modify the WA button slightly via JS class */
.whatsapp-concierge.merged-mode {
    background: rgba(10, 20, 35, 0.1);
    /* Let the pill background show through */
    box-shadow: none;
    /* Pill casts the shadow */
    border-color: transparent;
    /* Seamless merge */
}

.whatsapp-concierge.merged-mode:hover {
    background: rgba(184, 134, 11, 0.15);
    /* Restore hover interactability */
    border-color: var(--gas-gold);
}

@media screen and (max-width: 768px) {
    .gas-context-badge {
        bottom: 20px;
        right: 20px;
        height: 55px;
        padding: 0 65px 0 15px;
        /* Mobile WA button overlap */
    }

    .gas-context-badge .badge-action {
        padding: 0.3rem 0.6rem;
    }
}

@media screen and (max-width: 480px) {
    .gas-context-badge .badge-text {
        display: none;
    }
}

/* ==========================================================
   PROFILE PAGE STYLES (perfil.html)
   ========================================================== */

/* --- PROFILE HERO --- */
#profile-hero {
    display: flex !important;
    position: relative;
    min-height: auto !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    align-items: flex-start !important;
    justify-content: center;
    padding: 9rem 2rem 5rem !important;
    overflow: hidden;
}

.profile-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 15, 35, 0.45) 0%,
            rgba(0, 31, 63, 0.40) 50%,
            rgba(0, 15, 35, 0.50) 100%);
    z-index: 1;
}

.profile-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.profile-hero-eyebrow {
    display: inline-block;
    font-family: var(--gas-font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gas-gold);
    margin-bottom: 1rem;
    border: 1px solid rgba(184, 134, 11, 0.3);
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
}

.profile-hero-claim {
    font-family: var(--gas-font-heading) !important;
    font-size: clamp(1.6rem, 4vw, 2.8rem) !important;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.15;
    margin-bottom: 0.25rem;
}

.profile-hero-sub {
    font-family: var(--gas-font-body);
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    color: var(--gas-gold);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.profile-hero-credentials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.profile-hero-credentials span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profile-hero-credentials i {
    color: var(--gas-gold);
    font-size: 0.9rem;
}

/* --- PROFILE SECTIONS --- */
.profile-section {
    padding: 5rem 0;
}

.profile-dark {
    background-color: #001F3F;
    color: #ffffff;
}

.profile-light {
    background-color: #f8f9fa;
    color: #333333;
}

.profile-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-eyebrow {
    display: inline-block;
    font-family: var(--gas-font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gas-gold);
    margin-bottom: 0.75rem;
}

.profile-eyebrow.dark {
    color: var(--gas-gold);
}

.profile-section-title {
    font-family: var(--gas-font-heading) !important;
    font-size: clamp(1.4rem, 3vw, 2.2rem) !important;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.profile-section-title.dark {
    color: var(--gas-navy) !important;
}

.gold-accent {
    color: var(--gas-gold) !important;
}

.profile-section-desc {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.profile-body-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

/* --- AUTHORITY GRID --- */
.profile-authority-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.profile-photo-col {
    text-align: center;
}

.profile-photo-frame {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--gas-gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.profile-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-name {
    font-family: var(--gas-font-heading);
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-photo-title {
    font-size: 0.85rem;
    color: var(--gas-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.profile-photo-uni {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.3rem;
}

.profile-photo-uni i {
    color: var(--gas-gold);
    margin-right: 0.3rem;
}

/* Credential List */
.profile-credential-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.credential-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--gas-gold);
    border-radius: 0 8px 8px 0;
    transition: background 0.3s;
}

.credential-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.credential-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 50%;
    color: var(--gas-gold);
    font-size: 1rem;
}

.credential-item h4 {
    font-family: var(--gas-font-heading);
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.credential-item p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

/* --- METHOD PILLARS --- */
.profile-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.profile-pillar-card {
    background: #ffffff;
    border: 1px solid rgba(0, 31, 63, 0.08);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.profile-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--gas-gold);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border: 1px solid var(--gas-gold);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--gas-gold);
    font-size: 1.4rem;
    background: rgba(184, 134, 11, 0.05);
}

.profile-pillar-card h3 {
    font-family: var(--gas-font-heading);
    font-size: 1rem;
    color: var(--gas-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.profile-pillar-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* --- STATS BANNER --- */
.profile-stats-banner {
    background: linear-gradient(135deg, #001F3F 0%, #000D1A 100%);
    padding: 4rem 0;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-family: var(--gas-font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, var(--gas-gold) 0%, var(--gas-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- PERSPECTIVES --- */
.profile-perspectives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.perspective-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.perspective-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.perspective-img {
    height: 220px;
    overflow: hidden;
}

.perspective-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.perspective-card:hover .perspective-img img {
    transform: scale(1.05);
}

.perspective-body {
    padding: 2rem;
}

.perspective-body h3 {
    font-family: var(--gas-font-heading);
    font-size: 1.1rem;
    color: var(--gas-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.perspective-body p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.perspective-body strong {
    color: #ffffff;
}

/* --- PROFILE CTA SECTION --- */
.profile-cta-section {
    background-color: #001F3F;
    padding: 5rem 0;
}


/* ==========================================================
   CONSOLIDATED RESPONSIVE SYSTEM
   ========================================================== */

/* --- TABLET PORTRAIT (≤768px) --- */
@media screen and (max-width: 768px) {

    /* Navigation: hide desktop nav */
    #nav {
        display: none !important;
    }

    #header .header-container {
        justify-content: space-between;
        padding: 0 1.5rem;
    }

    #header #logo {
        text-align: left;
        width: auto;
    }

    /* --- MOBILE TITLE BAR REDESIGN --- */
    #titleBar {
        background: var(--gas-navy) !important;
        border-bottom: 2px solid rgba(184, 134, 11, 0.3) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
        height: 60px !important;
    }

    #titleBar .title {
        height: 60px !important;
        line-height: 60px !important;
        font-family: var(--gas-font-heading) !important;
        letter-spacing: 0.1em !important;
    }

    #titleBar .title a {
        font-size: 0.9rem !important;
        color: var(--gas-white) !important;
    }

    #titleBar .toggle {
        height: 60px !important;
        width: 60px !important;
    }

    #titleBar .toggle:before {
        background: transparent !important;
        /* Remove template red */
        color: var(--gas-gold) !important;
        font-size: 1.4rem !important;
        line-height: 60px !important;
        width: 60px !important;
    }

    /* --- MOBILE NAV PANEL REDESIGN --- */
    #navPanel {
        background: linear-gradient(180deg, #050a14 0%, #001F3F 100%) !important;
        border-right: 2px solid var(--gas-gold) !important;
        padding: 2rem 1rem !important;
    }

    #navPanel .link {
        font-family: var(--gas-font-heading) !important;
        color: var(--gas-white) !important;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding: 1.2rem 0 !important;
        height: auto !important;
        line-height: 1.5 !important;
    }

    #navPanel .link.active,
    #navPanel .link:hover {
        color: var(--gas-gold) !important;
    }

    #navPanel .link.depth-0 {
        font-weight: 700 !important;
    }

    /* Editorial Rows: Stacking & Hierarchy */
    .editorial-row .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .editorial-row {
        flex-direction: column !important;
        gap: 2rem;
    }

    .editorial-row .row {
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    .editorial-row .row>* {
        padding-left: 0 !important;
        padding-top: 0 !important;
    }

    .editorial-content,
    .editorial-visual {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        text-align: center;
    }

    .editorial-visual {
        order: -1 !important;
        /* Image ALWAYS first on mobile/tablet */
    }

    .editorial-content header {
        text-align: center;
    }

    .editorial-eyebrow {
        text-align: center;
    }

    .image-wrapper img {
        max-height: 280px;
        width: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    .editorial-text {
        font-size: 0.95rem;
        text-align: center;
    }

    .editorial-row .actions {
        text-align: center;
        justify-content: center;
    }

    /* Wizard Tablet Tuning */
    .wizard-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
    }

    .wizard-card {
        padding: 1.5rem !important;
    }
}

/* --- MOBILE (≤480px) --- */
@media screen and (max-width: 480px) {
    .hero-claim {
        font-size: 1.8rem !important;
        line-height: 1.25;
    }

    .hero-authority {
        font-size: 0.9rem !important;
        line-height: 1.5;
    }

    /* Wizard Mobile Stacking */
    .wizard-grid {
        grid-template-columns: 1fr !important;
    }

    .wizard-card {
        padding: 1.25rem !important;
    }

    .wizard-question-title {
        font-size: 1.1rem !important;
    }

    /* Agent CTA Stacking */
    .gas-agent-cta {
        flex-direction: column !important;
        text-align: center;
        padding: 1.5rem !important;
    }

    .cta-message {
        border-left: none !important;
        padding: 0 !important;
        font-size: 1rem !important;
    }

    .cta-action,
    .cta-action .gas-submit-btn {
        width: 100% !important;
    }

    /* Premium Form: 100% Width Fields */
    .row.gtr-50>.col-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    #five .gas-submit-btn {
        width: 100% !important;
    }
}

/* --- TABLET CONTINUED (≤768px) --- */
@media screen and (max-width: 768px) {

    /* Trayectoria */
    .authority-wrapper .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .authority-wrapper .row {
        flex-direction: column !important;
    }

    .authority-wrapper .col-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .deal-sheet-card {
        margin-top: 1.5rem;
    }

    .deal-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat {
        flex: 1 1 40%;
        min-width: 100px;
    }

    .auth-header {
        margin-bottom: 1rem !important;
    }

    /* Features Grid: tighter padding */
    #four .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    /* Wizard: tighten */
    #command-center {
        padding: 4rem 0 !important;
        min-height: auto;
    }

    .wizard-question-title {
        font-size: 1.1rem;
    }

    .wizard-question-sub {
        font-size: 0.85rem;
    }

    /* Footer: compact */
    #footer {
        padding: 3rem 1.5rem !important;
    }

    #footer .icons {
        gap: 0.75rem;
    }

    #footer ul.copyright {
        font-size: 0.7rem;
    }

    #footer ul.copyright li {
        padding: 0 0.5rem;
    }

    /* Profile page: stack grids */
    .profile-authority-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .profile-cred-col {
        text-align: center;
    }

    .credential-item {
        text-align: left;
    }

    .profile-pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .profile-perspectives-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-section {
        padding: 3.5rem 0;
    }

    .profile-hero-credentials {
        flex-direction: column;
        gap: 0.75rem;
    }

    body.profile-page #banner {
        padding: 6rem 1.5rem 3rem;
        min-height: 60vh;
        background-attachment: scroll;
    }
}

/* --- PHONE CONTINUED (≤480px) --- */
@media screen and (max-width: 480px) {

    /* Hero: tighter */


    .hero-claim {
        font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
    }

    .hero-authority {
        font-size: 0.85rem;
    }

    .hero-profile-block {
        padding: 0.75rem;
    }

    .profile-name {
        font-size: 1rem !important;
    }

    .hero-actions {
        max-width: 100%;
    }

    .hero-actions .button {
        font-size: 0.8rem;
        padding: 0.8rem 1.5rem;
    }

    /* Wizard: extra compact */
    #command-center {
        padding: 3rem 0 !important;
    }

    .wizard-panel {
        padding: 1.2rem;
    }

    .wizard-panel h4 {
        font-size: 0.9rem;
    }

    /* Editorial: mobile-first text */
    .editorial-row h2 {
        font-size: 1.1rem !important;
    }

    .editorial-text {
        font-size: 0.85rem;
    }

    /* Form: phone-slim */
    .premium-application {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .form-title {
        font-size: 1.2rem !important;
    }

    .gas-submit-btn {
        width: 100%;
        justify-content: center;
    }

    /* Features: single column emphasis */
    .service-card {
        padding: 1.2rem 0.8rem;
    }

    #four header.major h2 {
        font-size: 1.2rem !important;
    }

    /* Footer */
    #footer .icons li a {
        font-size: 0.9rem;
        width: 2.5rem;
        height: 2.5rem;
        line-height: 2.5rem;
    }

    /* Profile: phone */
    .profile-hero-claim {
        font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
    }

    .profile-section-title {
        font-size: 1.2rem !important;
    }

    .credential-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .profile-pillar-card {
        padding: 1.5rem 1.2rem;
    }

    .perspective-img {
        height: 160px;
    }

    .perspective-body {
        padding: 1.5rem;
    }

    .profile-photo-frame {
        width: 140px !important;
        height: 140px !important;
        margin: 0 auto 1.5rem !important;
    }

    .profile-photo-col {
        text-align: center;
        margin-bottom: 3rem;
    }

    .profile-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    .stat-number {
        font-size: 1.8rem !important;
    }
}



/* =====================================================
   WHATSAPP CONCIERGE (FRENTE 1 & FRENTE 2)
   ===================================================== */

/* FRENTE 1: Floating Button (Glassmorphism & Aura) */
.whatsapp-concierge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(10, 20, 35, 0.85);
    /* Deep Navy Glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 134, 11, 0.4);
    /* Gold Accent Border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: gasWhatsAppPulse 4s infinite alternate;
}

.whatsapp-concierge i {
    color: var(--gas-gold);
    font-size: 28px;
    transition: transform 0.3s ease;
}

.whatsapp-concierge:hover {
    background: rgba(184, 134, 11, 0.15);
    /* Slight Gold fill on hover */
    border-color: var(--gas-gold);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.4);
    transform: translateY(-5px);
}

.whatsapp-concierge:hover i {
    transform: scale(1.1);
}

@keyframes gasWhatsAppPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.4);
    }

    100% {
        box-shadow: 0 0 0 15px rgba(184, 134, 11, 0);
    }
}

/* FRENTE 2: Wizard Modal (Incognito Lead Capture) */
.whatsapp-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 20, 0.85);
    /* Dark Glass Overlay */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.whatsapp-modal.is-active {
    display: flex;
}

.whatsapp-modal.show {
    opacity: 1;
}

.whatsapp-modal-content {
    background: linear-gradient(145deg, rgba(20, 35, 60, 0.95), rgba(10, 20, 35, 0.98));
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 12px;
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-modal.show .whatsapp-modal-content {
    transform: translateY(0);
}

.whatsapp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--gas-light-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    line-height: 1;
}

.whatsapp-modal-close:hover {
    color: var(--gas-gold);
}

.whatsapp-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.whatsapp-icon-large {
    font-size: 3rem;
    color: var(--gas-gold);
    margin-bottom: 1rem;
}

.whatsapp-modal-header h3 {
    color: var(--gas-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--gas-font-heading);
}

.whatsapp-modal-header p {
    color: var(--gas-light-gray);
    font-size: 0.95rem;
    margin: 0;
}

.whatsapp-modal-body .gas-submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .whatsapp-concierge {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-modal-content {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================
   MASTER MOBILE SYMMETRY & SYNC FIX (FINAL WORD)
   ========================================================== */
@media screen and (max-width: 980px) {

    /* Nuclear Selector to override ANY previous rules */
    section#hero .hero-grid-system {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding-top: 320px !important;
        /* Final requested symmetry boost */
        padding-bottom: 200px !important;
        /* Balanced for bottom symmetry */
        min-height: 100vh !important;
        gap: 2.5rem !important;
        text-align: center !important;
    }

    /* DOUBLE MENU RESOLUTION: Nuclear Suppression */
    #header .toggle,
    #navButton,
    .mobile-nav-toggle,
    #titleBar .toggle {
        display: none !important;
    }

    /* Keep ONLY the main one injected by util.js/main.js if it exists, 
       otherwise the first .toggle found in header */
    #header .toggle:first-of-type {
        display: block !important;
    }
}