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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-logo-text);
}

.logo-main {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-logo-text);
    line-height: 1;
}

.logo-sub {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-logo-sub);
    margin-top: 2px;
}

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

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

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

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

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

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

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

/* =================================================================
   HERO SECTION
   ================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* =================================================================
   INTERACTIVE PHONE MOCKUP (WHATSAPP SIMULATOR)
   ================================================================= */
.phone-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.phone-mockup-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, transparent 70%);
    border-radius: 50px;
    z-index: -1;
}

.phone-container {
    background: #000;
    border-radius: 40px;
    padding: 10px;
    border: 4px solid var(--color-phone-border, #1f2937);
    box-shadow: var(--shadow-premium), 0 0 40px rgba(34, 172, 244, 0.15); /* Glowing cyan-tinged mockup shadow */
    position: relative;
    overflow: hidden;
    aspect-ratio: 9 / 18.5;
}

/* Phone speaker/camera notch */
.phone-notch {
    width: 120px;
    height: 25px;
    background: #000;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

/* Inside WhatsApp Interface */
.whatsapp-screen {
    width: 100%;
    height: 100%;
    background-color: #0b141a; /* WhatsApp Dark Mode Background */
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.whatsapp-header {
    background: #1f2c34; /* WhatsApp header color */
    padding: 30px 15px 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #233138;
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--color-brand-accent);
    border: 1px solid var(--color-avatar-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-right: 10px;
}

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

.header-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e9edef;
}

.header-status {
    font-size: 0.65rem;
    color: #8696a0;
}

.whatsapp-chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-image: radial-gradient(rgba(197, 168, 128, 0.03) 1px, transparent 0);
    background-size: 12px 12px;
}

/* Chat bubble styling */
.chat-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeInUp 0.3s ease-out forwards;
    position: relative;
}

.chat-bubble.incoming {
    align-self: flex-start;
    background: #202c33;
    color: #e9edef;
    border-top-left-radius: 0;
}

.chat-bubble.outgoing {
    align-self: flex-end;
    background: #005c4b; /* WhatsApp Sent bubble color */
    color: #e9edef;
    border-top-right-radius: 0;
}

.message-time {
    display: block;
    font-size: 0.6rem;
    color: #8696a0;
    text-align: right;
    margin-top: 4px;
}

/* Quick choices panel */
.choices-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 5px;
}

.btn-choice {
    background: #233138;
    color: #e5c697; /* Fixed bright luxury gold for readability inside WhatsApp Dark background */
    border: 1px solid rgba(229, 198, 151, 0.3);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.btn-choice:hover {
    background: #e5c697;
    color: #0b141a; /* Maximum readability hover contrast */
    border-color: #e5c697;
}

/* WhatsApp Input Area */
.whatsapp-input-area {
    background: #1f2c34;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #233138;
}

.whatsapp-input {
    flex: 1;
    background: #2a3942;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    color: #e9edef;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}

.btn-send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00a884; /* WhatsApp Green */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.btn-send svg {
    width: 14px;
    height: 14px;
    fill: white;
}

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

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

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

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

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

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

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

.about-visual {
    position: relative;
}

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

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

.about-img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(197, 168, 128, 0.1) 100%);
    border-radius: 4px;
    border: 1px dashed var(--color-secondary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary-gold);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.about-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-dark);
    transition: var(--transition-smooth);
}

.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

.about-card:hover .about-img-wrapper img {
    transform: scale(1.04);
}

.about-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

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

.about-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.about-badge {
    background: rgba(57, 61, 179, 0.25);
    border: 1px solid rgba(197, 168, 128, 0.25);
    color: var(--color-secondary-gold);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* =================================================================
   PRICING / TIERS SECTION
   ================================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 960px;
    margin: 0 auto;
}

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

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

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

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

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

.price-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.price-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.price-number {
    display: flex;
    align-items: baseline;
    margin-bottom: 2.5rem;
}

.currency {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-secondary-gold);
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1;
    margin: 0 4px;
}

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

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

.price-feature-item {
    font-size: 0.95rem;
    color: var(--color-price-feature);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-feature-item.muted {
    color: var(--color-price-feature-muted);
    text-decoration: line-through;
}

.price-feature-item::before {
    content: "✓";
    color: var(--color-secondary-gold);
    font-weight: bold;
}

.price-feature-item.muted::before {
    content: "✕";
    color: var(--color-price-feature-muted);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.animate-fade-in {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-in.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s !important; /* Resets transition-delay once revealed for instant hover response! */
}

/* Scroll reveal cascade transition delays */
.delay-100 { transition-delay: 0.1s; }
.delay-150 { transition-delay: 0.15s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

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

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

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

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

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

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

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

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

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

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

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

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

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

    .section {
        padding: 4.5rem 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .logo-main {
        font-size: 1.25rem !important;
        letter-spacing: 3px !important;
    }

    .logo-sub {
        font-size: 0.45rem !important;
        max-width: 110px !important;
    }

    .logo-icon {
        width: 28px !important;
        height: 34px !important;
    }

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

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

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

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

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

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

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

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

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

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

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

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

