:root {
    
    --accent:          #C6FF00;
    --bg-base:         #050505;
    --text-main:       #F6E5CC;
    --color-navy:      #1B263B;
    --color-cream:     #F6E5CC;
    --color-black:     #0D0D0D;
    --color-lime:      #C6FF00;

    
    --glass-bg:        rgba(255, 255, 255, 0.04);
    --glass-border:    rgba(255, 255, 255, 0.08);
    --glass-master-bg: rgba(13, 13, 13, 0.6);
    --btn-bg:          rgba(255, 255, 255, 0.05);

    
    --font-body: 1.111rem;      

    
    --text-xs:   0.75rem;       
    --text-ui-sm: 0.9rem;       
    --text-sm:   0.875rem;      
    --text-base: var(--font-body); 
    --text-md:   1.1rem;        
    --text-lg:   1.25rem;       
    --text-xl:   1.45rem;       
    --text-2xl:  1.875rem;      

    
    
}

html[data-theme="light"] {
    --accent:          #1B263B;
    --bg-base:         #F6E5CC;
    --text-main:       #0D0D0D;
    --glass-bg:        rgba(0, 0, 0, 0.05);
    --glass-border:    rgba(0, 0, 0, 0.1);
    --glass-master-bg: rgba(255, 255, 255, 0.5);
    --btn-bg:          rgba(0, 0, 0, 0.05);
}

@property --angle          { syntax: '<angle>';  initial-value: 0deg; inherits: false; }
@property --marcas-fade-w  { syntax: '<length>'; initial-value: 0px;  inherits: false; }

* {
    font-family: 'Roboto', system-ui, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    hyphens: none;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
    font-size: 18px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-size: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

.font-numbers    { font-family: 'Ubuntu', 'Roboto', sans-serif; }
.font-handwritten{ font-family: 'Indie Flower', cursive; font-weight: 700; }
.count-up        { font-family: 'Ubuntu', 'Roboto', sans-serif; display: inline-block; }

.text-accent { color: var(--accent); }
.font-bold   { font-weight: 700; }

#canvas-container         { position: fixed; inset: 0; background: var(--bg-base); z-index: -1; }

#canvas-overlay {
    position: fixed; inset: 0; z-index: 1;
    pointer-events: none;
    background: rgba(246,229,204,0.60);
    transition: background 0.6s ease;
}
html:not([data-theme="light"]) #canvas-overlay { background: rgba(5,5,5,0.50); }

main {
    width: 100%; max-width: 1400px;
    margin: 0 auto;
    padding: 5rem clamp(1rem, 4vw, 3.5rem);
    z-index: 10; position: relative;
    display: flex; justify-content: center; flex: 1; align-items: center;
    box-sizing: border-box; overflow-x: hidden;
}

.glass-master {
    width: 100%; max-width: 1300px;
    background: var(--glass-master-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 3rem;
    margin-top: 1rem;
    position: relative; align-self: center; overflow: hidden; min-width: 0;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: background 0.3s ease;
}

.glass-padded { padding: 2rem; }

.section-divider { height: 1px; background: var(--glass-border); margin: 2.5rem 0; }

.view          { display: none; animation: fadeIn 0.4s ease forwards; }
.view.active   { display: block; }

.skip-link {
    position: fixed; top: -200px; left: 0;
    background: var(--accent); color: var(--bg-base);
    padding: 8px 16px; z-index: 9999; font-weight: 700;
    text-decoration: none; border-radius: 0 0 8px 0; transition: top 0.3s;
}
.skip-link:focus { top: 0; }

.site-header-wrap {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    z-index: 100; width: calc(100% - 2rem); max-width: 1200px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: auto;
}
.site-header-wrap.header-hidden {
    transform: translateX(-50%) translateY(-120%); opacity: 0; pointer-events: none;
}
.site-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem clamp(1rem, 3vw, 2rem); width: 100%; box-sizing: border-box;
    background: var(--glass-master-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.site-header nav { display: flex; align-items: center; gap: 0.8rem; }

.logo-wrapper {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; text-decoration: none; z-index: 102; flex: 0 0 auto;
}
.logo-container-svg img { height: 40px; width: auto; }
.logo-night     { display: block; }
.logo-day       { display: none; }
html[data-theme="light"] .logo-night { display: none; }
html[data-theme="light"] .logo-day   { display: block; }

.nav-inner {
    display: flex; align-items: center; gap: 0.8rem;
}
.nav-container {
    position: relative; background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 16px; padding: 4px;
    display: flex;
}
.nav-link {
    color: var(--text-main); text-decoration: none;
    padding: 8px 18px; font-weight: 700; font-size: var(--text-xs);
    border: none; background: none; cursor: pointer;
    position: relative; z-index: 2; text-transform: uppercase; white-space: nowrap;
}
.nav-link.active { color: var(--bg-base) !important; }
.nav-indicator {
    position: absolute; height: calc(100% - 8px); top: 4px; left: 4px;
    background: var(--accent); border-radius: 12px; z-index: 1;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.header-toggles     { display: none; }
.toggles-mobile-row { display: flex; gap: 15px; }
#navInnerPortal     { display: none; }

.hamburger-btn {
    display: none; background: none; border: none;
    color: var(--text-main); font-size: var(--text-2xl); cursor: pointer; z-index: 102;
}

.mobile-overlay {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,0.6); z-index: 99;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

.btn-primary, .theme-btn, .lang-btn {
    background: var(--btn-bg); color: var(--text-main);
    border: 1px solid var(--glass-border); border-radius: 12px;
    padding: 10px 20px; cursor: pointer; font-weight: 700;
    font-size: var(--text-sm); text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; transition: all 0.3s ease;
}
.btn-primary:hover, .theme-btn:hover, .lang-btn:hover {
    background: var(--text-main); color: var(--bg-base); border-color: var(--text-main);
}
.btn-primary.btn-full { width: 100%; }

.btn-giant { padding: 0.9rem 2.5rem; font-size: var(--text-base); border-radius: 12px; }

.btn-udemy-shiny {
    --border-width: 2px; --radius: 12px;
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: var(--radius);
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: var(--text-main) !important; font-weight: 700;
    text-decoration: none; cursor: pointer; z-index: 1;
    border: var(--border-width) solid transparent;
    transition: background 0.2s ease, color 0.2s ease;
}
.btn-udemy-shiny::before {
    content: ""; position: absolute; inset: calc(var(--border-width) * -1);
    border-radius: calc(var(--radius) + 1px);
    background: conic-gradient(from var(--angle), transparent 0%, transparent 70%, var(--accent) 100%);
    animation: spin-angle 3s linear infinite; padding: var(--border-width);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude; z-index: -1; pointer-events: none;
}
.btn-udemy-shiny i   { color: var(--accent); margin-right: 10px; filter: drop-shadow(0 0 5px var(--accent)); transition: color 0.4s ease, filter 0.4s ease; }
.btn-udemy-shiny svg { color: var(--accent); transition: color 0.4s ease; }
.btn-udemy-shiny:hover            { background: var(--text-main); color: var(--bg-base) !important; }
.btn-udemy-shiny:hover i          { color: var(--bg-base); filter: none; }
.btn-udemy-shiny:hover svg        { color: var(--bg-base); }

.btn-broker {
    margin-top: auto; width: 100%; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: inherit; cursor: pointer;
    padding: 0.74rem 1.32rem; border-radius: 13px;
    border: 1px solid var(--glass-border); background: var(--glass-bg);
    font-size: var(--text-base); font-weight: 700; color: var(--text-main);
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
    -webkit-appearance: none; appearance: none; white-space: nowrap;
}
html[data-theme="light"] .btn-broker { border-color: rgba(0,0,0,0.13); background: rgba(0,0,0,0.04); color: var(--color-navy); }
html:not([data-theme="light"]) .btn-broker:hover { background: var(--text-main); border-color: transparent; color: var(--bg-base); }
html[data-theme="light"]       .btn-broker:hover { background: var(--color-navy); border-color: transparent; color: var(--color-cream); }

.btn-compromise {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-family: inherit; cursor: pointer;
    padding: 0.74rem 1.32rem; border-radius: 13px;
    border: 1px solid var(--glass-border); background: var(--glass-bg);
    font-size: var(--text-base); font-weight: 700; color: var(--text-main);
    transition: background .2s, border-color .2s, color .2s;
    -webkit-appearance: none; appearance: none; white-space: nowrap;
}
html[data-theme="light"] .btn-compromise { border-color: rgba(0,0,0,0.13); background: rgba(0,0,0,0.04); color: var(--color-navy); }
html:not([data-theme="light"]) .btn-compromise:hover { background: var(--text-main); border-color: transparent; color: var(--bg-base); }
html[data-theme="light"]       .btn-compromise:hover { background: var(--color-navy); border-color: transparent; color: var(--color-cream); }

.hero-split {
    display: grid; grid-template-columns: 0.6fr 1.4fr;
    gap: 3rem; align-items: center; margin-bottom: 4rem;
}
.hero-split h1::after { content: ""; display: block; }
.hero-h1  { font-size: clamp(2.4rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 1.5rem; }
.hero-sub { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; color: var(--accent); margin-bottom: 1.5rem; }
html[data-theme="light"] .hero-sub { color: var(--color-navy); }
.hero-desc{ font-size: var(--font-body); opacity: 0.8; line-height: 1.6; margin-bottom: 2rem; }

.home-buttons-container { display: flex; flex-direction: row; gap: 2rem; }

.avatar-placeholder { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: transparent; }
.avatar-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.home-credentials       { margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2rem); }
.home-cred-intro        { font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 900; color: var(--accent); margin-bottom: 0.25rem; text-align: center; }
.home-cred-intro-text   { font-size: var(--font-body); opacity: 0.8; max-width: 580px; line-height: 1.6; margin: 0 auto; }
.home-credentials-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.6rem, 2vw, 1rem); }
.home-cred-card         { padding: clamp(1.1rem, 3vw, 1.8rem) clamp(0.8rem, 2vw, 1.5rem); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.55rem; min-width: 0; overflow: hidden; }
.home-cred-number       { display: flex; align-items: baseline; gap: 0.4em; line-height: 1; flex-wrap: nowrap; }
.home-cred-number .count-up,
.home-cred-number .font-numbers { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; color: var(--accent); line-height: 1; }
.home-cred-label        { font-size: clamp(0.875rem, 1.8vw, 1.05rem); font-weight: 700; opacity: 0.9; line-height: 1.45; }
.sponsorship-header     { text-align: center; margin-bottom: 2.5rem; }
.sponsorship-header h2,
.sponsorship-header h3  { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; margin-bottom: 1rem; color: var(--accent); }
html[data-theme="light"] .sponsorship-header h2,
html[data-theme="light"] .sponsorship-header h3 { color: var(--color-navy); }
.sponsorship-header p   { font-size: var(--font-body); opacity: 0.8; max-width: 800px; margin: 0 auto; line-height: 1.6; }

.inv-header                 { text-align: center; margin-bottom: 2rem; overflow: hidden; }
.anim-chart-svg             { width: 100%; height: 280px; margin: 0 auto; display: block; }

/* Estado inicial oculto — siempre, independientemente de .active-anim.
   Sin esto el browser renderiza los elementos visibles un frame antes de que
   el JS añada .active-anim, provocando el parpadeo visible→invisible→animación. */
.anim-chart-svg .white-line { stroke-dasharray: 400; stroke-dashoffset: 400; }
.anim-chart-svg .anim-dot   { opacity: 0; transform: scale(0.5); transform-origin: 400px 180px; }
.anim-chart-svg .anim-text  { opacity: 0; transform: translateY(-10px); }
.anim-chart-svg .green-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; }

/* .active-anim sólo añade la animación — el estado FROM ya está definido arriba */
.active-anim .white-line    { animation: drawLine 1s ease-out forwards; }
.active-anim .anim-dot      { animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 1s; }
.active-anim .anim-text     { animation: fadeDown 0.5s ease-out forwards; animation-delay: 1.2s; }
.active-anim .green-line    { animation: drawLine 2s ease-out forwards; animation-delay: 1.8s; }

.inv-intro   { text-align: center; margin-bottom: 2.5rem; padding: 0 1rem; }
.inv-intro p { font-size: var(--font-body); opacity: 0.8; line-height: 1.7; max-width: 600px; margin: 0 auto; }
.inv-section-title { display: flex; align-items: center; gap: 10px; font-size: var(--text-md); font-weight: 700; margin-bottom: 1.5rem; opacity: 0.9; }
.inv-section-title--center { justify-content: center; font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; opacity: 1; color: var(--accent); }
html[data-theme="light"] .inv-section-title--center { color: var(--color-navy); }
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; min-width: 0; }
.inv-grid .glass { display: flex; flex-direction: column; height: 100%; min-width: 0; overflow: hidden; word-break: break-word; }
.inv-grid .glass .btn-primary { margin-top: auto; }
.inv-grid--mb-sm { margin-bottom: 1.5rem; }

.inv-kit-card { padding: 2rem; text-align: center; }
.inv-kit-title { font-weight: 700; margin-bottom: 1.5rem; font-size: var(--text-base); }

.kit-warning-box   { margin-bottom: 3rem; }
.kit-warning-label { display: block; margin-bottom: 0; line-height: 1.7; font-size: var(--font-body); text-transform: none; opacity: 0.85; font-weight: normal; }
.no-accept-box     { border: 1px solid rgba(180, 165, 120, 0.25); background: rgba(180, 165, 120, 0.04); border-radius: 12px; padding: 1.2rem 1.5rem; text-align: center; }
.no-accept-label   { display: block; font-size: var(--text-ui-sm); font-weight: 700; opacity: 0.7; margin-bottom: 0.6rem; color: rgba(210, 195, 150, 0.95); }
.no-accept-tags    { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.no-accept-tags span { font-size: var(--text-ui-sm); padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(180, 165, 120, 0.2); opacity: 0.45; }
html[data-theme="light"] .no-accept-box      { border: 1px solid rgba(120, 95, 50, 0.30); background: rgba(180, 140, 80, 0.08); }
html[data-theme="light"] .no-accept-label    { color: rgba(60, 50, 30, 0.85); opacity: 1; }
html[data-theme="light"] .no-accept-tags span{ border: 1px solid rgba(100, 75, 40, 0.35); color: rgba(70, 55, 35, 0.80); opacity: 1; }

.course-card     { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding: 2.5rem; margin-bottom: 3rem; position: relative; }
#calculadora .course-card { margin-bottom: 0; }
.course-badge    { position: absolute; top: 20px; right: 20px; background: var(--btn-bg); padding: 6px 14px; border-radius: 20px; font-size: var(--text-ui-sm); border: 1px solid var(--glass-border); white-space: nowrap; display: flex; align-items: center; gap: 8px; z-index: 2; }
.course-badge i  { color: var(--accent); font-size: var(--text-sm); }
.stars           { display: inline-flex !important; align-items: center !important; gap: 2px; line-height: 1 !important; vertical-align: middle; }
.course-left     { display: flex; flex-direction: column; }
.course-right    { display: flex; flex-direction: column; gap: 1.6rem; }
.course-img      { height: 300px; width: auto; border-radius: 20px; object-fit: contain; border: 1px solid var(--glass-border); margin-top: 40px; display: block; }
.course-tag-row  { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.course-tag-label{ font-weight: 700; }
.course-title-h2 { font-size: var(--text-xl); margin-bottom: 1rem; }
.course-desc-p   { font-size: var(--font-body); opacity: 0.7; margin-bottom: 1rem; line-height: 1.6; }
.course-checklist{ list-style: none; margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.course-checklist li   { display: flex; align-items: center; gap: 8px; font-size: var(--font-body); opacity: 0.8; }
.course-checklist li i { color: var(--accent); font-size: var(--font-body); flex-shrink: 0; }
.udemy-badge       { background: var(--btn-bg); padding: 0.9rem 14px; border-radius: 20px; font-size: var(--text-xs); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; aspect-ratio: 4/1; box-sizing: border-box; }
.udemy-badge i     { color: var(--accent); font-size: 1.4rem; flex-shrink: 0; }
.udemy-badge-texts { display: flex; flex-direction: column; gap: 3px; line-height: 1.2; }
.udemy-badge-eyebrow { font-size: var(--text-ui-sm); font-weight: 700; opacity: 0.6; }
.udemy-badge-title   { font-size: var(--text-base); font-weight: 700; }

.broker-section-title { justify-content: center; margin: 2.5rem 0 1.5rem; }
.broker-logo {
    height: 34px; width: auto; object-fit: contain; opacity: 0.9;
    filter: brightness(0) saturate(100%) invert(95%) sepia(15%) saturate(400%) hue-rotate(340deg) brightness(100%);
    transition: filter 0.4s; display: block;
}
html[data-theme="light"] .broker-logo { filter: brightness(0) saturate(100%) invert(13%) sepia(30%) saturate(700%) hue-rotate(180deg) brightness(90%); }
.broker-logo[alt="MyInvestor"] { height: 41px; } 
.broker-card { display: flex; flex-direction: column; gap: 1rem; padding: 2rem; cursor: default; }
.broker-card p { font-size: var(--font-body); opacity: 0.78; line-height: 1.65; margin: 0; flex: 1; text-align: justify; }

.compromise-wrap  { display: flex; justify-content: center; margin-bottom: 2rem; }
.compromise-box   { display: none; margin-top: 1rem; }
.compromise-box.open { display: block; }
.compromise-box.no-accept-box   { border-color: var(--glass-border); background: var(--glass-bg); margin-bottom: 3rem; }
.compromise-box .no-accept-label{ color: var(--text-main); opacity: 0.85; font-weight: 400; font-size: var(--font-body); text-transform: none; white-space: pre-line; line-height: 1.9; margin-bottom: 0; }
html[data-theme="light"] .compromise-box.no-accept-box    { border-color: var(--glass-border); background: var(--glass-bg); }
html[data-theme="light"] .compromise-box .no-accept-label { color: var(--text-main); opacity: 0.85; }

.youtube-block         { text-align: center; padding: 3rem 2rem; }
.yt-play-btn           { display: inline-block; font-size: 2.5rem; margin-bottom: 1.5rem; opacity: 0.8; color: var(--text-main); }
.youtube-block h2,
.youtube-block h3      { font-size: var(--text-xl); font-weight: 700; margin-bottom: 1.5rem; }
.youtube-block .btn-primary { display: inline-flex; }

.contact-cta              { text-align: center; padding: 2.5rem 2rem; }
.contact-cta .mail-icon   { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.8; display: block; }
.contact-cta h2,
.contact-cta h3           { font-size: var(--text-xl); font-weight: 900; margin-bottom: 1.5rem; }
.contact-cta .contact-email { margin-top: 1rem; font-size: var(--text-sm); opacity: 0.5; }
.contact-cta .contact-email a { color: var(--text-main); }
.contact-cta .btn-primary   { display: inline-flex; }

.text-justified { text-align: justify; text-justify: inter-word; }
.audience-section .text-justified { margin-bottom: 2rem; }
.pg-locked-inner > .text-justified { margin-bottom: 2rem; }
.audience-section    { margin: 1.5rem 0 0; }
.audience-title      { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; margin-bottom: 1rem; color: var(--accent); text-align: center; }
html[data-theme="light"] .audience-title { color: var(--color-navy); }
.audience-section p  { text-align: justify; text-justify: inter-word; margin-bottom: 2rem; }

.marcas-header    { text-align: center; margin-bottom: 2.5rem; }
.marcas-header h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); font-weight: 900; margin-bottom: 0.8rem; color: var(--accent); }
html[data-theme="light"] .marcas-header h2 { color: var(--color-navy); }
.marcas-header p  { font-size: var(--font-body); opacity: 0.7; max-width: 600px; margin: 0 auto; line-height: 1.65; }

.yt-section       { margin-bottom: 2.5rem; padding: 2rem 2.5rem; }
.stats-row        { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-box         { text-align: center; min-width: 0; }
.stat-box .stat-label { font-size: var(--text-ui-sm); opacity: 0.7; margin-bottom: 6px; font-weight: 700; }
.stat-box .stat-value { font-size: var(--text-2xl); font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -0.01em; font-family: 'Ubuntu', 'Roboto', sans-serif; }

#social-networks-container { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.social-grid-wrap { flex: 1; min-width: 0; width: 100%; }
.social-row       { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; }
.social-item      { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.5rem 1rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); min-width: 0; overflow: hidden; }
.social-item-icon { font-size: 2rem; }
.social-val       { font-size: var(--text-2xl); font-weight: 700; color: var(--accent); word-break: keep-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.social-lbl       { font-size: var(--text-ui-sm); opacity: 0.7; font-weight: 700; }

#monthly-glass-box {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 3rem; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1rem;
    flex: 1; min-width: 280px; text-align: center; overflow: hidden;
}
.monthly-box-icon  { font-size: 2rem; }
.monthly-box-label { font-size: var(--text-ui-sm); font-weight: 700; opacity: 0.7; }
.monthly-box-value { font-size: 3rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1; word-break: keep-all; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.sponsorship-grid  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.sponsor-card      { background: var(--btn-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 1.8rem; transition: border-color 0.3s ease; min-width: 0; overflow: hidden; word-break: break-word; outline: none; }
@media (hover: hover) and (pointer: fine) { .sponsor-card:hover { border-color: var(--accent); } }
.sponsor-card-title{ display: flex; align-items: center; gap: 10px; font-size: var(--text-lg); font-weight: 800; margin-bottom: 1rem; flex-wrap: wrap; }
.sponsor-card-title i { color: var(--accent); font-size: 1.4rem; flex-shrink: 0; }
.sponsor-card-desc { font-size: var(--font-body); opacity: 0.75; line-height: 1.5; margin-bottom: 1.5rem; }

.formats-container { text-align: center; background: var(--glass-bg); border-radius: 24px; padding: 2rem; border: 1px solid var(--glass-border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.formats-title     { font-size: var(--text-xl); font-weight: 800; margin-bottom: 1.5rem; }
.formats-list      { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.format-item       { background: var(--btn-bg); border: 1px solid var(--glass-border); padding: 12px 24px; border-radius: 12px; font-weight: 600; font-size: var(--text-sm); display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.format-item:hover { border-color: var(--accent); color: var(--text-main); }
.format-item i     { color: var(--accent); }

.marcas-ver-btn-wrap { display: flex; justify-content: center; margin: 2rem 0 0.5rem; }

@keyframes marcas-sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
#marcas-ver-ejemplos-btn {
    font-size: var(--text-sm); font-weight: 700; padding: 12px 28px;
    width: 100%; border-radius: 12px; border: 1px solid var(--glass-border);
    background: var(--btn-bg); color: var(--text-main); cursor: pointer;
    font-family: inherit; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
#marcas-ver-ejemplos-btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(27,38,59,0.25) 50%, transparent 100%);
    animation: marcas-sweep 2.8s ease-in-out infinite; pointer-events: none;
}
html:not([data-theme="light"]) #marcas-ver-ejemplos-btn::after { background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%); }
#marcas-ver-ejemplos-btn:hover { background: var(--text-main); color: var(--bg-base); border-color: var(--text-main); }

#marcas-videos-section { margin-top: 1.5rem; }

.marcas-videos-grid   { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 0.25rem; }
.calc-videos-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 0.2rem 0 2rem; }

.calc-video-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 6px 28px rgba(0,0,0,0.18);
    padding: 1.4rem 1.4rem 1.2rem;
    display: flex; flex-direction: column; gap: 0;
}
html[data-theme="light"] .calc-video-card { box-shadow: 0 4px 18px rgba(0,0,0,0.07); }
.calc-video-card h2,
.calc-video-card h3 { font-size: var(--text-sm); font-weight: 700; line-height: 1.4; margin: 0 0 0.85rem; text-align: left; color: var(--text-main); }

.calc-video-thumb {
    position: relative; display: block; width: 100%;
    aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
    cursor: pointer; text-decoration: none;
    background: var(--color-black); flex-shrink: 0; margin-top: auto;
}
.calc-video-thumb img                    { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.calc-video-thumb:hover img              { transform: scale(1.04); }
.calc-video-play-overlay                 { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.28); transition: background .25s; }
.calc-video-thumb:hover .calc-video-play-overlay { background: rgba(0,0,0,0.46); }
.calc-video-play-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,0.93);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.32);
    transition: transform .2s, box-shadow .2s; flex-shrink: 0;
}
.calc-video-play-btn i { font-size: 18px; color: var(--color-navy); margin-left: 3px; }
.calc-video-thumb:hover .calc-video-play-btn { transform: scale(1.08); box-shadow: 0 8px 30px rgba(0,0,0,0.42); }

.calc-video-iframe-wrap {
    position: relative; width: 100%; aspect-ratio: 16/9;
    border-radius: 12px; overflow: hidden; background: #000; flex-shrink: 0;
}
.calc-video-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.marcas-videos-grid .calc-video-thumb { margin-top: 0; }

.marcas-vid-logo   { height: 22px; width: auto; display: inline-block; opacity: .85; transition: filter .4s; -webkit-user-drag: none; }
html:not([data-theme="light"]) .marcas-vid-logo { filter: brightness(0) saturate(100%) invert(95%) sepia(15%) saturate(400%) hue-rotate(340deg) brightness(100%); }
html[data-theme="light"]       .marcas-vid-logo { filter: brightness(0) saturate(100%) invert(13%) sepia(30%) saturate(700%) hue-rotate(180deg) brightness(90%); }
.marcas-vid-logos       { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 1rem; flex-wrap: wrap; user-select: none; -webkit-user-select: none; }
.marcas-vid-title       { font-size: var(--text-sm); font-weight: 700; line-height: 1.4; margin: 0 0 0.3rem; min-height: 2.58rem; }
.marcas-vid-views-wrap  { display: flex; justify-content: center; margin-top: auto; padding-top: 0.75rem; }
.marcas-vid-views       { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.7rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: var(--text-xs); font-weight: 700; color: var(--accent); white-space: nowrap; }
html[data-theme="light"] .marcas-vid-views { background: rgba(27,38,59,0.06); border-color: rgba(27,38,59,0.15); }

.marcas-vid-scrubber        { width: 100%; height: 18px; margin-top: 4px; position: relative; cursor: pointer; flex-shrink: 0; touch-action: none; display: flex; align-items: center; }
.marcas-vid-scrubber-track  { width: 100%; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.18); position: relative; transition: height .18s ease; }
html[data-theme="light"] .marcas-vid-scrubber-track { background: rgba(27,38,59,0.18); }
.marcas-vid-scrubber:hover .marcas-vid-scrubber-track,
.marcas-vid-scrubber:active .marcas-vid-scrubber-track { height: 16px; }
.marcas-vid-scrubber-thumb  { position: absolute; top: 0; left: 0; height: 100%; width: 33.333%; border-radius: 999px; background: var(--accent); pointer-events: none; will-change: left; }
html[data-theme="light"] .marcas-vid-scrubber-thumb { background: var(--color-navy); }
.marcas-vid-scrubber-thumb.animated { transition: left .3s cubic-bezier(.4,0,.2,1); }

.marcas-vid5-track-outer { overflow: hidden; --marcas-fade-w: 0px; transition: --marcas-fade-w 0.12s ease; -webkit-mask-image: linear-gradient(to right, transparent, black var(--marcas-fade-w), black calc(100% - var(--marcas-fade-w)), transparent); mask-image: linear-gradient(to right, transparent, black var(--marcas-fade-w), black calc(100% - var(--marcas-fade-w)), transparent); }
.marcas-vid5-track-outer.fading { --marcas-fade-w: 48px; }
.marcas-vid-scroll-track  { display: flex; gap: 0; overflow: visible; cursor: grab; }
.marcas-vid-scroll-track.dragging { cursor: grabbing; user-select: none; }
.marcas-vid-scroll-item   { flex: 0 0 100%; scroll-snap-align: start; }

.marcas-vid-close-btn {
    position: absolute; top: 14px; right: 14px; z-index: 30;
    width: 32px; height: 32px; padding: 0; border-radius: 10px;
    border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--text-main);
    font-size: var(--text-sm); font-family: inherit; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.28); opacity: 0; pointer-events: none;
    transition: opacity 0.22s ease, background 0.2s, border-color 0.2s, color 0.2s;
}
.marcas-vid-close-btn.visible { opacity: 1; pointer-events: auto; }
html:not([data-theme="light"]) .marcas-vid-close-btn:hover { background: rgba(198,255,0,0.12); border-color: rgba(198,255,0,0.4); color: var(--accent); }
html[data-theme="light"] .marcas-vid-close-btn { border-color: rgba(0,0,0,0.13); background: rgba(0,0,0,0.04); color: var(--color-navy); }
html[data-theme="light"] .marcas-vid-close-btn:hover { background: rgba(27,38,59,0.08); border-color: rgba(27,38,59,0.3); }

.marcas-vid-expanding { display: flex; flex-direction: column; }
.marcas-vid-expanding .calc-video-thumb,
.marcas-vid-expanding .calc-video-iframe-wrap { flex: 1 1 0 !important; aspect-ratio: unset !important; min-height: 0 !important; margin-top: 0 !important; }
.marcas-vid-expanding .marcas-vid5-track-outer { flex: 1 1 0; min-height: 0; overflow: visible; -webkit-mask-image: none !important; mask-image: none !important; position: relative; }
.marcas-vid-expanding .marcas-vid5-track-outer .marcas-vid-scroll-track { overflow: visible; }
.marcas-vid-expanding .marcas-vid5-track-outer .calc-video-iframe-wrap { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; aspect-ratio: unset !important; border-radius: 0 !important; flex: none !important; }

.collab-info         { margin: 1.5rem 0; padding: 2rem 1.8rem; padding-bottom: 4.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; position: relative; }
.collab-info-list    { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; margin-bottom: 1.8rem; }
.collab-info-list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--font-body); opacity: 0.75; line-height: 1.5; }
.collab-info-list li i { color: var(--accent); font-size: var(--text-xs); line-height: 1; margin-top: 0.46rem; flex-shrink: 0; }
.collab-info-footer  { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); font-size: var(--text-ui-sm); opacity: 0.7; display: inline-flex; align-items: center; gap: 8px; background: var(--btn-bg); padding: 6px 14px; border-radius: 20px; border: 1px solid var(--glass-border); white-space: nowrap; }
.collab-info-footer i{ color: var(--accent); font-size: var(--text-ui-sm); flex-shrink: 0; }

.geo-section                { margin-top: 2.5rem; margin-bottom: 2rem; }
.geo-section .section-label { margin-bottom: 1.2rem; }
.geo-grid                   { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem; }
.geo-bar-item               { display: flex; flex-direction: column; gap: 4px; }
.geo-bar-header             { display: flex; justify-content: space-between; align-items: center; }
.geo-bar-header span:first-child { font-size: var(--text-ui-sm); font-weight: 700; }
.geo-bar-header span:last-child  { font-size: var(--text-ui-sm); font-weight: 700; color: var(--accent); font-family: 'Ubuntu', 'Roboto', sans-serif; }
.geo-bar-track              { height: 4px; background: var(--glass-border); border-radius: 4px; overflow: hidden; }
.geo-bar-fill               { height: 100%; background: var(--accent); border-radius: 4px; width: 0; transition: width 1.6s cubic-bezier(0.4,0,0.2,1); }

.donuts-row          { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.donut-card          { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.5rem; }
.donut-card .donut-label { font-size: var(--text-sm); font-weight: 700; }
.donut-wrap          { position: relative; width: 110px; height: 110px; }
.donut-wrap svg      { width: 110px; height: 110px; transform: rotate(-90deg); }
.donut-wrap .donut-bg   { fill: none; stroke: var(--glass-border); stroke-width: 10; }
.donut-wrap .donut-fill { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.8s cubic-bezier(0.4,0,0.2,1); }
.donut-wrap .donut-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: var(--text-lg); font-weight: 700; color: var(--accent); font-family: 'Ubuntu', 'Roboto', sans-serif; }

.medios-isotipo-icon     { display: block; opacity: 0.9; }
.medios-isotipo-icon-day { display: none; opacity: 0.9; }
html[data-theme="light"] .medios-isotipo-icon     { display: none !important; }
html[data-theme="light"] .medios-isotipo-icon-day { display: block !important; opacity: 0.9; }
.medios-isotipo-icon,
.medios-isotipo-icon-day { width: 20px; height: 20px; object-fit: contain; }

.medios-grid { margin-top: 2rem; margin-bottom: 2rem; }
.medios-glass-card { padding: 2rem; position: relative; }
.medios-copy-row { display: flex; align-items: flex-start; gap: 0.5rem; }

.medios-desc-p {
    font-size: var(--font-body); opacity: 0.78; line-height: 1.65;
    text-align: justify; flex: 1;
}
.medios-copy-btn, .medios-copy-btn-inline {
    background: none; border: none; color: var(--text-main);
    opacity: 0.45; cursor: pointer; padding: 2px 4px;
    flex-shrink: 0; display: inline-flex; align-items: center;
    transition: opacity 0.2s; vertical-align: middle;
}
.medios-copy-btn       { margin-left: 4px; }
.medios-copy-btn-inline{ align-self: flex-start; margin-top: 0.2rem; }
.medios-copy-btn:hover,
.medios-copy-btn-inline:hover { opacity: 1; }
.medios-copy-btn i,
.medios-copy-btn-inline i { font-size: var(--text-sm); }

.medios-contact-row   { display: flex; align-items: center; gap: 0.6rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 0.6rem 0.9rem; min-width: 0; }
.medios-contact-list  { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.medios-contact-icon  { color: var(--accent); font-size: var(--text-base); flex-shrink: 0; width: 18px; text-align: center; }
.medios-contact-label { font-size: var(--text-ui-sm); font-weight: 700; opacity: 0.6; flex-shrink: 0; width: 72px; }
.medios-contact-link  { font-size: var(--font-body); opacity: 0.85; text-decoration: none; color: inherit; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.medios-text-justify    { text-align: justify !important; text-justify: inter-word; }

.ment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1.2rem; }
.ment-card { display: flex; align-items: flex-start; gap: 1rem; }
.ment-card-icon { font-size: 1.4rem; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
html[data-theme="light"] .ment-card-icon { color: var(--color-navy); }
.ment-card-title { font-size: var(--font-body); line-height: 1.55; opacity: 0.9; }
.ment-pill-row { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.ment-terms-group { margin: 3rem 0; display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.ment-terms-group .ment-pill-row { margin-bottom: 0; }
.ment-pill { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-ui-sm); opacity: 0.7; background: var(--btn-bg); padding: 6px 14px; border-radius: 20px; border: 1px solid var(--glass-border); }
.ment-pill i { color: var(--accent); font-size: var(--text-ui-sm); flex-shrink: 0; }
html[data-theme="light"] .ment-pill i { color: var(--color-navy); }
.ment-pill-row--duo { gap: 1rem; }
.ment-section-label { margin-top: 0.5rem; }
.ment-results-card { margin-bottom: 3rem; }
.ment-results-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.ment-results-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: var(--font-body); line-height: 1.55; }
.ment-results-list li i { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
html[data-theme="light"] .ment-results-list li i { color: var(--color-navy); }
.ment-price-block { display: flex; justify-content: center; margin-bottom: 3rem; }
.ment-price-card { text-align: center; max-width: 480px; width: 100%; }
.ment-price-amount { font-size: clamp(2.8rem, 6vw, 3.8rem); font-weight: 900; color: var(--accent); margin-bottom: 0.3rem; font-family: var(--font-numbers, 'Roboto', sans-serif); }
html[data-theme="light"] .ment-price-amount { color: var(--color-navy); }
.ment-price-detail { font-size: var(--font-body); opacity: 0.8; margin-bottom: 0.6rem; }
.ment-price-scarcity { font-size: var(--text-sm, 0.85rem); opacity: 0.6; margin-bottom: 0; line-height: 1.5; }
.ment-cal-soldout { margin-bottom: 3rem; text-align: center; }
.ment-slots-header { text-align: center; margin-bottom: 1.5rem; }
.ment-slots-text { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 700; }
.ment-slots-num { display: inline-block; min-width: 1.6em; color: var(--accent); font-family: var(--font-numbers, 'Roboto', sans-serif); font-weight: 900; font-size: 1.1em; position: relative; overflow: hidden; vertical-align: baseline; height: 1.2em; text-align: center; }
html[data-theme="light"] .ment-slots-num { color: var(--color-navy); }
.ment-slots-num .ment-slot-digit { display: block; line-height: 1.2; transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1); }
.ment-soldout-card { max-width: 550px; margin: 0 auto; }
.ment-soldout-title { font-size: clamp(1rem, 2.5vw, 1.2rem); font-weight: 700; margin-bottom: 0.5rem; }
.ment-soldout-sub { font-size: var(--text-sm, 0.85rem); opacity: 0.6; line-height: 1.5; }
.ment-cal-embed { margin-bottom: 3rem; min-height: 500px; }
.ment-cal-embed > div { border-radius: 16px; overflow: hidden; }
.ment-cal-embed iframe { width: 100% !important; max-width: 100% !important; }
html[data-theme="light"] .cal-dark-only { display: none; }
html:not([data-theme="light"]) .cal-light-only { display: none; }

.ment-cal-popup { display: none; text-align: center; margin-bottom: 3rem; }

@media (max-width: 768px) {
  .ment-cal-embed { display: none; }
  .ment-cal-popup { display: block; }
  .ment-cal-popup[hidden] { display: none; }
  .ment-slots-hours { display: none; }
}

.ment-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 1rem 2.5rem;
  border: 2px solid var(--accent);
  border-radius: 14px;
  background: var(--accent);
  color: var(--bg-base);
  font-family: inherit;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.ment-cta-btn:active {
  transform: scale(0.96);
}

.ment-notify-form {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  margin-top: 1.2rem; max-width: 340px; margin-left: auto; margin-right: auto;
}
.ment-notify-input {
  width: 100%; padding: 0.7rem 1rem; border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--btn-bg); color: var(--text-main);
  font-size: var(--text-ui-sm); font-family: inherit;
  outline: none; transition: border-color 0.25s ease;
}
.ment-notify-input:focus { border-color: var(--accent); }
.ment-notify-input::placeholder { color: var(--text-main); opacity: 0.35; }
.ment-notify-btn {
  width: 100%; padding: 0.75rem 1rem; border: none; border-radius: 10px;
  background: var(--accent); color: var(--bg-base);
  font-weight: 700; font-size: var(--text-ui-sm); font-family: inherit;
  cursor: pointer; transition: opacity 0.2s ease;
}
.ment-notify-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ment-notify-feedback {
  margin-top: 1rem; font-size: var(--text-sm); line-height: 1.5; text-align: center;
  max-width: 340px; margin-left: auto; margin-right: auto;
}
.ment-notify-ok { color: var(--accent); }
html[data-theme="light"] .ment-notify-ok { color: var(--color-navy); }
.ment-notify-err { color: #ff4444; }
.ment-disclaimer { max-width: 700px; margin: 0 auto; text-align: center; font-size: var(--text-sm, 0.8rem); opacity: 0.4; line-height: 1.6; }

#calculadora-wrap { font-family: 'Roboto', system-ui, sans-serif; margin: 0 auto; padding: 0 0 1.2rem; color: var(--text-main); }

.calc-glass {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 22px; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 2.2rem 2.4rem; margin-bottom: 1.25rem; color: var(--text-main); overflow: hidden;
}
html[data-theme="light"] .calc-glass { background: rgba(255,255,255,0.60); border-color: rgba(0,0,0,0.08); box-shadow: 0 4px 24px rgba(0,0,0,0.07); }

.calc-form-title { font-size: clamp(1.45rem, 3.5vw, 2rem); font-weight: 900; margin: 0 0 1.8rem; line-height: 1.3; text-align: center; color: var(--accent); }
html[data-theme="light"] .calc-form-title { color: var(--color-navy); }

.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.56rem 1.95rem; margin-bottom: 2.35rem; }

.calc-field           { display: flex; flex-direction: column; gap: 0.4rem; position: relative; min-width: 0; }
.calc-field.boc-active{ padding-bottom: 1.5rem; }

.calc-label { font-size: var(--font-body); font-weight: 700; opacity: 0.75; line-height: 1.2; }
html[data-theme="light"]       .calc-label { color: var(--color-navy); }
html:not([data-theme="light"]) .calc-label { color: var(--color-cream); }

.calc-input-row {
    display: flex; align-items: stretch; width: 100%;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 13px; overflow: hidden; transition: border-color .2s; box-sizing: border-box;
}
html[data-theme="light"] .calc-input-row { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.15); }
.calc-input-row:focus-within { border-color: var(--accent); box-shadow: none !important; outline: none; }
html[data-theme="light"] .calc-input-row:focus-within { border-color: var(--color-navy); }

.calc-input-prefix {
    display: flex; align-items: center; justify-content: center;
    padding: 0 1.1rem; min-width: 3.25rem;
    background: rgba(255,255,255,0.06); border: none; border-right: 1px solid rgba(255,255,255,0.10);
    border-radius: 0; font-size: var(--text-lg); font-weight: 700;
    opacity: 0.85; flex-shrink: 0; user-select: none; cursor: pointer;
    transition: background .18s, color .18s, opacity .18s;
    -webkit-appearance: none; appearance: none; outline: none;
    font-family: 'Ubuntu', 'Roboto', sans-serif; line-height: 1;
}
.calc-input-prefix:hover { background: var(--color-cream); opacity: 1; }
html:not([data-theme="light"]) .calc-input-prefix:hover { background: var(--color-cream); color: var(--bg-base) !important; opacity: 1; }
html[data-theme="light"] .calc-input-prefix { background: rgba(0,0,0,0.05); border-right-color: rgba(0,0,0,0.09); color: var(--color-navy); }
html[data-theme="light"] .calc-input-prefix:hover { background: var(--color-navy); color: var(--color-cream); }
html:not([data-theme="light"]) .calc-input-prefix { color: var(--color-cream); }

.calc-input-prefix[title]:hover::after {
    content: attr(title); position: absolute; bottom: calc(100% + 6px); left: 0;
    background: var(--color-cream); color: var(--bg-base);
    font-size: var(--text-xs); border-radius: 5px; padding: 2px 7px;
    white-space: nowrap; pointer-events: none; z-index: 10;
}
html[data-theme="light"] .calc-input-prefix[title]:hover::after { background: var(--color-navy); color: var(--color-cream); }

.calc-input {
    flex: 1; min-width: 0; background: none; border: none; outline: none;
    padding: 0.975rem 1.17rem; font-size: var(--text-xl); font-weight: 700;
    font-family: 'Ubuntu', 'Roboto', sans-serif; -moz-appearance: textfield;
}
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html[data-theme="light"]       .calc-input { color: var(--color-navy); }
html:not([data-theme="light"]) .calc-input { color: var(--color-cream); }
.calc-input::placeholder { opacity: 0.38; }

.calc-suffix {
    display: flex; align-items: center; padding: 0 1.17rem;
    font-size: var(--font-body); font-weight: 700;
    font-family: 'Ubuntu', 'Roboto', sans-serif;
    opacity: 0.5; white-space: nowrap; flex-shrink: 0;
}
html[data-theme="light"]       .calc-suffix { color: var(--color-navy); }
html:not([data-theme="light"]) .calc-suffix { color: var(--color-cream); }

#calc-results         { display: none; }
#calc-results.visible { display: block; }

.calc-share-row {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    margin-bottom: 1.5rem; padding-bottom: 1.3rem;
    border-bottom: 1px solid var(--glass-border);
}
html[data-theme="light"] .calc-share-row { border-bottom-color: rgba(0,0,0,0.07); }

.calc-share-label { font-size: var(--font-body); font-weight: 700; opacity: 0.65; white-space: nowrap; flex-shrink: 0; }
html[data-theme="light"]       .calc-share-label { color: var(--color-navy); }
html:not([data-theme="light"]) .calc-share-label { color: var(--color-cream); }

.calc-share-input {
    flex: 1; min-width: 140px; background: var(--glass-bg);
    border: 1px solid var(--glass-border); border-radius: 10px;
    padding: 0.52rem 0.85rem; font-size: var(--text-sm); opacity: 0.82; outline: none;
}
html[data-theme="light"] .calc-share-input { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.10); color: var(--color-navy); }
html:not([data-theme="light"]) .calc-share-input { color: var(--color-cream); }

.calc-share-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.52rem 1.1rem; border-radius: 10px;
    border: 1px solid var(--glass-border); background: var(--glass-bg);
    font-size: var(--text-sm); font-weight: 700; cursor: pointer; white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s;
}
html[data-theme="light"]       .calc-share-btn { border-color: rgba(0,0,0,0.10); background: rgba(0,0,0,0.04); color: var(--color-navy); }
html:not([data-theme="light"]) .calc-share-btn { color: var(--color-cream); border-color: rgba(255,255,255,0.12); }
html:not([data-theme="light"]) .calc-share-btn:hover { background: var(--color-cream); color: var(--color-black); border-color: transparent; }
html[data-theme="light"]       .calc-share-btn:hover { background: var(--color-navy); color: var(--color-cream); border-color: transparent; }
html:not([data-theme="light"]) .calc-share-btn.copied { background: var(--color-cream) !important; color: var(--color-black) !important; border-color: transparent !important; }
html[data-theme="light"]       .calc-share-btn.copied { background: var(--color-navy) !important; color: var(--color-cream) !important; border-color: transparent !important; }

.calc-headline        { margin-bottom: 1.8rem; }
.calc-headline-pre    { font-size: var(--font-body); opacity: 0.72; margin-bottom: 0.1rem; }
html[data-theme="light"]       .calc-headline-pre { color: var(--color-navy); }
html:not([data-theme="light"]) .calc-headline-pre { color: var(--color-cream); }

.calc-headline-amount { font-size: 2.8rem; font-weight: 700; line-height: 1; margin-bottom: 0.3rem; letter-spacing: -0.02em; font-family: 'Ubuntu', 'Roboto', sans-serif; }
html:not([data-theme="light"]) .calc-headline-amount { color: #FFFFFF; }
html[data-theme="light"]       .calc-headline-amount { color: var(--color-navy); }

.calc-headline-sub    { font-size: var(--font-body); opacity: 0.65; }
html[data-theme="light"]       .calc-headline-sub { color: var(--color-navy); }
html:not([data-theme="light"]) .calc-headline-sub { color: var(--color-cream); }

.calc-ld-row       { display: flex; align-items: center; gap: 2.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.calc-legend-list  { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 0.85rem; }
.calc-legend-item  { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.calc-legend-left  { display: flex; align-items: center; gap: 0.65rem; }
.calc-legend-swatch{ width: 15px; height: 15px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.35); }
.calc-legend-key   { font-size: var(--text-ui-sm); font-weight: 400; }
html[data-theme="light"]       .calc-legend-key { color: var(--color-navy); }
html:not([data-theme="light"]) .calc-legend-key { color: var(--color-cream); }
.calc-legend-val   { font-size: var(--text-ui-sm); font-weight: 700; white-space: nowrap; font-family: 'Ubuntu', 'Roboto', sans-serif; }
html[data-theme="light"]       .calc-legend-val { color: var(--color-navy); }
html:not([data-theme="light"]) .calc-legend-val { color: var(--color-cream); }

.calc-donut-wrap  { width: 286px; height: 286px; flex-shrink: 0; }
.calc-bar-wrap    { position: relative; width: 100%; height: 320px; margin-bottom: 1.8rem; }

.calc-table-scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--glass-border); }
html[data-theme="light"] .calc-table-scroll { border-color: rgba(0,0,0,0.08); }
.calc-table        { width: 100%; border-collapse: collapse; font-size: var(--font-body); }
.calc-table th     { font-size: var(--text-xs); font-weight: 700; opacity: 0.65; padding: 0.85rem 1.1rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--glass-border); }
html[data-theme="light"]       .calc-table th { color: var(--color-navy); border-bottom-color: rgba(0,0,0,0.07); }
html:not([data-theme="light"]) .calc-table th { color: var(--color-cream); }
.calc-table th:first-child { text-align: center; }
.calc-table td     { padding: 0.68rem 1.1rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--glass-border); font-family: 'Ubuntu', 'Roboto', sans-serif; }
html[data-theme="light"]       .calc-table td { color: var(--color-navy); border-bottom-color: rgba(0,0,0,0.05); }
html:not([data-theme="light"]) .calc-table td { color: var(--color-cream); }
.calc-table td:first-child       { text-align: center; font-weight: 700; }
.calc-table tr:last-child td     { border-bottom: none; font-weight: 700; }

.calc-disclaimer   { font-size: var(--text-xs); opacity: 0.42; text-align: center; margin-top: 1.2rem; line-height: 1.5; }
html[data-theme="light"]       .calc-disclaimer { color: var(--color-navy); }
html:not([data-theme="light"]) .calc-disclaimer { color: var(--color-cream); }

.calc-btn-modo-consult { white-space: nowrap; }
.calc-consult-locked { display: none !important; }
.calc-consult-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); backdrop-filter: blur(24px) saturate(0.6); -webkit-backdrop-filter: blur(24px) saturate(0.6); z-index: 9999; }
.calc-consult-modal[hidden] { display: none; }
html[data-theme="light"] .calc-consult-modal { background: rgba(255,255,255,0.15); backdrop-filter: blur(24px) saturate(0.6); -webkit-backdrop-filter: blur(24px) saturate(0.6); }
.calc-consult-modal-card { background: rgba(10,10,10,0.93); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 8px 32px rgba(0,0,0,0.45); border-radius: 24px; padding: clamp(1.25rem,5vw,2rem); width: min(380px,90%); text-align: center; color: #FFFFFF; }
html[data-theme="light"] .calc-consult-modal-card { background: rgba(246,229,204,0.97); border-color: rgba(27,38,59,0.18); box-shadow: 0 8px 32px rgba(0,0,0,0.15); color: #1B263B; }
.calc-consult-modal-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.4rem; color: inherit; }
.calc-consult-modal-desc { font-size: var(--font-body); opacity: 0.7; margin-bottom: 1.2rem; color: inherit; }
.calc-consult-modal-input { width: 100%; padding: 0.7rem 1rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: #FFFFFF; font-size: 1rem; text-align: center; font-family: inherit; letter-spacing: 2px; margin-bottom: 0.5rem; box-sizing: border-box; }
html[data-theme="light"] .calc-consult-modal-input { border-color: rgba(27,38,59,0.25); background: rgba(27,38,59,0.06); color: #1B263B; }
.calc-consult-modal-input:focus { outline: none; border-color: var(--accent); }
.calc-consult-modal-err { color: #ff6b6b; font-size: var(--text-sm, 0.85rem); margin-bottom: 0.5rem; }
.calc-consult-modal-btns { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.8rem; }
.calc-consult-modal-cta { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); text-align: center; }
html[data-theme="light"] .calc-consult-modal-cta { border-color: rgba(27,38,59,0.12); }
.calc-consult-modal-cta p { margin-bottom: 0.6rem; font-size: 1.2rem; font-weight: 800; }
.calc-consult-ok { flex: 1; }

.calc-strategies-group { display: flex; align-items: center; gap: 0.5rem; position: relative; }

.calc-btn-strategy {
    display: inline-flex; align-items: center; gap: 0.45rem; font-family: inherit; cursor: pointer;
    padding: 0.74rem 1.32rem; border-radius: 13px;
    border: 1px solid var(--glass-border); background: var(--glass-bg);
    font-size: var(--text-base); font-weight: 700; color: var(--text-main);
    transition: background .2s, border-color .2s, color .2s;
    -webkit-appearance: none; appearance: none; white-space: nowrap;
}
html[data-theme="light"]       .calc-btn-strategy { border-color: rgba(0,0,0,0.13); background: rgba(0,0,0,0.04); color: var(--color-navy); }
html:not([data-theme="light"]) .calc-btn-strategy:hover { background: var(--color-cream); border-color: transparent; color: var(--bg-base); }
html[data-theme="light"]       .calc-btn-strategy:hover { background: var(--color-navy); border-color: transparent; color: var(--color-cream); }

.calc-btn-reset-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--text-main);
    font-size: var(--text-md); cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .15s;
    -webkit-appearance: none; appearance: none; flex-shrink: 0;
}
html[data-theme="light"]       .calc-btn-reset-icon { border-color: rgba(0,0,0,0.13); background: rgba(0,0,0,0.04); color: var(--color-navy); }
html:not([data-theme="light"]) .calc-btn-reset-icon:hover { background: var(--color-cream); border-color: transparent; color: var(--bg-base); }
html[data-theme="light"]       .calc-btn-reset-icon:hover { background: var(--color-navy); border-color: transparent; color: var(--color-cream); }
.calc-btn-reset-icon:active     { transform: rotate(-45deg) scale(0.95); }
.calc-btn-currency-icon         { font-weight: 900; font-size: var(--text-lg); }
.calc-btn-currency-icon:active  { transform: scale(0.88) !important; }

.calc-btn-mobile-strategies {
    display: none; align-items: center; gap: 0.45rem; font-family: inherit; cursor: pointer;
    padding: 0.74rem 1.32rem; border-radius: 13px;
    border: 1px solid var(--glass-border); background: var(--glass-bg);
    font-size: var(--font-body); font-weight: 700; color: var(--text-main);
    transition: background .2s, border-color .2s;
    -webkit-appearance: none; appearance: none; white-space: nowrap; position: relative;
}
html[data-theme="light"]       .calc-btn-mobile-strategies { border-color: rgba(0,0,0,0.13); background: rgba(0,0,0,0.04); color: var(--color-navy); }
html:not([data-theme="light"]) .calc-btn-mobile-strategies:hover { background: var(--color-cream); border-color: transparent; color: var(--bg-base); }
html[data-theme="light"]       .calc-btn-mobile-strategies:hover { background: var(--color-navy); border-color: transparent; color: var(--color-cream); }

.calc-strategies-dropdown {
    position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 100;
    background: rgba(18,28,18,0.92); border: 1px solid rgba(255,255,255,0.13);
    border-radius: 16px; padding: 0.5rem; display: none; flex-direction: column;
    gap: 0.3rem; min-width: 180px; box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
html[data-theme="light"] .calc-strategies-dropdown { background: rgba(242,232,215,0.92); border-color: rgba(27,38,59,0.14); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
.calc-strategies-dropdown.open { display: flex; }

.calc-dropdown-item {
    display: flex; align-items: center; font-family: inherit; cursor: pointer;
    padding: 0.65rem 1rem; border-radius: 10px; border: none; background: none;
    font-size: var(--font-body); font-weight: 700; color: var(--text-main);
    text-align: left; transition: background .15s;
    -webkit-appearance: none; appearance: none; white-space: nowrap; width: 100%;
}
html[data-theme="light"]       .calc-dropdown-item { color: var(--color-navy); }
html:not([data-theme="light"]) .calc-dropdown-item:hover { background: rgba(198,255,0,0.12); color: var(--accent); }
html[data-theme="light"]       .calc-dropdown-item:hover { background: rgba(27,38,59,0.07); }

.calc-btn-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 0.75rem; margin-top: 0.5rem; flex-wrap: wrap;
}
.calc-mobile-col      { display: contents; }
.calc-btn-reset-mobile{ display: none !important; }
.calc-btn-currency-mob{ display: none !important; }

@keyframes calc-sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
.calc-input-sweep     { position: relative; overflow: hidden; }
.calc-input-sweep::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(198,255,0,0.5) 50%, transparent 100%);
    animation: calc-sweep 0.52s ease forwards; pointer-events: none;
}
html[data-theme="light"] .calc-input-sweep::after { background: linear-gradient(90deg, transparent 0%, rgba(27,38,59,0.22) 50%, transparent 100%); }

.calc-bocadillo {
    position: absolute; left: 0; transform: none; z-index: 20;
    display: none; align-items: center; padding: 8px 14px; border-radius: 10px;
    font-size: var(--text-xs); font-weight: 700; line-height: 1.3; white-space: nowrap;
    pointer-events: none; animation: calc-pop .22s ease; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis;
}
html[data-theme="light"]       .calc-bocadillo { background: var(--color-navy); color: var(--color-cream); }
html:not([data-theme="light"]) .calc-bocadillo { background: var(--color-cream); color: var(--color-navy); }

.calc-btn-main {
    font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none;
    font-size: var(--text-base); font-weight: 700;
    padding: 0.74rem 1.8rem; border-radius: 13px; border: none;
    position: relative; overflow: hidden; white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center;
    text-align: center; transition: opacity .15s; flex-shrink: 0;
}
html[data-theme="light"]       .calc-btn-main { background: var(--color-navy); color: var(--color-cream); }
html:not([data-theme="light"]) .calc-btn-main { background: var(--color-cream); color: var(--color-navy); }
.calc-btn-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(27,38,59,0.55) 50%, transparent 100%); transform: translateX(-110%); transition: transform .45s ease; pointer-events: none; }
html[data-theme="light"] .calc-btn-main::after { background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%); }
.calc-btn-main:hover::after { transform: translateX(110%); }
.calc-btn-main.calc-btn-main--dimmed { background: var(--glass-bg) !important; color: var(--text-main) !important; border: 1px solid var(--glass-border) !important; opacity: 0.6; }
html[data-theme="light"] .calc-btn-main.calc-btn-main--dimmed { background: rgba(0,0,0,0.04) !important; border-color: rgba(0,0,0,0.13) !important; color: var(--color-navy) !important; }

.calc-help-btn-wrap {
    position: absolute; top: 0.85rem; right: 0.85rem; z-index: 12;
    display: inline-flex; align-items: center; gap: 0;
}
.calc-help-tooltip {
    display: none; position: absolute; top: 50%; right: calc(100% + 8px);
    transform: translateY(-50%); background: rgba(10,10,10,0.88);
    color: #fff; font-size: var(--text-xs); font-weight: 700;
    padding: 5px 11px; border-radius: 8px; white-space: nowrap; pointer-events: none;
}
html[data-theme="light"] .calc-help-tooltip { background: rgba(27,38,59,0.90); color: var(--color-cream); }
.calc-help-btn-wrap:hover .calc-help-tooltip { display: block; }
.calc-help-btn-wrap.open  .calc-help-tooltip { display: none !important; }

.calc-help-btn {
    width: auto; height: 32px; border-radius: 10px; padding: 0 14px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--text-main); font-size: var(--text-sm); font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2;
    transition: background .2s, border-color .2s, color .2s;
    -webkit-appearance: none; appearance: none; font-family: inherit;
}
.calc-help-btn i { pointer-events: none; }
html[data-theme="light"]       .calc-help-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.13); color: var(--color-navy); }
html:not([data-theme="light"]) .calc-help-btn:hover { background: rgba(198,255,0,0.12); border-color: rgba(198,255,0,0.4); color: var(--accent); }
html[data-theme="light"]       .calc-help-btn:hover { background: rgba(27,38,59,0.08); border-color: rgba(27,38,59,0.3); }

.calc-help-overlay {
    position: absolute; inset: 0; border-radius: 22px; z-index: 10;
    background: rgba(8,18,8,0.93); border: 1px solid rgba(198,255,0,0.2);
    display: none; padding: 0.9rem 1rem 1rem; box-sizing: border-box; overflow-y: auto;
}
html[data-theme="light"] .calc-help-overlay { background: rgba(240,228,210,0.96); border-color: rgba(27,38,59,0.18); }
.calc-help-overlay.open { display: block; }

.calc-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.35rem; }
.calc-help-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 0.75rem 0.9rem; display: flex; flex-direction: column; gap: 0.35rem; }
html[data-theme="light"] .calc-help-card { background: rgba(255,255,255,0.65); border-color: rgba(27,38,59,0.1); }
.calc-help-field-name { font-size: var(--text-lg); font-weight: 700; color: var(--text-main); }
.calc-help-desc       { font-size: var(--font-body); line-height: 1.55; color: var(--text-main); opacity: 0.82; }

.calc-premium-heading { text-align: center; font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; margin: 0 0 1.5rem; line-height: 1.3; color: var(--accent); }
html[data-theme="light"] .calc-premium-heading { color: var(--color-navy); }

#visor-container { font-family: 'Roboto', system-ui, sans-serif; margin: 2rem 0; }
.vl-wrap         { display: flex; flex-direction: column; gap: 1rem; }
.vl-type-bar     { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

.vl-type-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
    color: var(--text-main); font-size: var(--text-sm); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
html[data-theme="light"] .vl-type-btn { border-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.04); }
.vl-type-btn.active                   { background: var(--accent); border-color: var(--accent); color: var(--color-black); }
html[data-theme="light"] .vl-type-btn.active { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-cream); }
.vl-type-btn img { width: 18px; height: 18px; object-fit: contain; }

.vl-main         { display: flex; gap: 1rem; align-items: stretch; }
.vl-stage-wrap   {
    flex: 1; min-height: 220px; border-radius: 24px; overflow: hidden; position: relative;
    transition: background-color 0.4s ease; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.vl-stage-img    { position: absolute; max-width: 70%; max-height: 160px; object-fit: contain; opacity: 0; transition: opacity 0.25s ease; user-select: none; pointer-events: none; }
.vl-stage-img.visible { opacity: 1; }

.vl-color-rail { display: flex; flex-direction: column; gap: 0.5rem; justify-content: center; }
.vl-color-btn  {
    width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent;
    cursor: pointer; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3); flex-shrink: 0;
}
.vl-color-btn:hover  { transform: scale(1.15); }
.vl-color-btn.active { transform: scale(1.1); }
.vl-color-btn[data-hex="0D0D0D"] { border-color: #ffffff; }
.vl-color-btn[data-hex="1B263B"] { border-color: #ffffff; }
.vl-color-btn[data-hex="FFFFFF"] { border-color: rgba(0,0,0,0.15); }
html[data-theme="light"] .vl-color-btn[data-hex="0D0D0D"] { border-color: transparent; }
html[data-theme="light"] .vl-color-btn[data-hex="1B263B"] { border-color: transparent; }
html[data-theme="light"] .vl-color-btn[data-hex="F6E5CC"] { border-color: #000000; }
html[data-theme="light"] .vl-color-btn[data-hex="FFFFFF"] { border-color: #000000; }

.vl-dl-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.vl-dl-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
    color: var(--text-main); font-size: var(--text-sm); font-weight: 700;
    text-decoration: none; cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); letter-spacing: 0.03em;
}
html[data-theme="light"] .vl-dl-btn { border-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.04); }
.vl-dl-btn:hover { background: var(--text-main); color: var(--bg-base); border-color: transparent; }
html[data-theme="light"] .vl-dl-btn:hover { background: var(--text-main); color: var(--bg-base); }
.vl-dl-btn svg { flex-shrink: 0; }

.print-header    { display: none; }
.contenedor-boton-pdf { display: flex; justify-content: center; margin: 40px 0; }
.medios-followers-label { text-align: left; }

@keyframes fadeIn    { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drawLine  { to { stroke-dashoffset: 0; } }
@keyframes popIn     { to { opacity: 1; transform: scale(1); } }
@keyframes fadeDown  { to { opacity: 1; transform: translateY(0); } }
@keyframes spin-angle{ to { --angle: 360deg; } }
@keyframes calc-pop  { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }

@media print { body > * { display: none !important; } }

@media (max-width: 1024px) and (orientation: landscape) and (max-height: 560px) {
    .calc-videos-row       { grid-template-columns: 1fr; }
    .calc-video-iframe-wrap{ aspect-ratio: unset; height: 52vh; }
}

@media (max-width: 860px) {
    .marcas-videos-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 850px) {
    .site-header-wrap  { top: 10px; width: calc(100% - 1.5rem); }
    .site-header       { padding: 0.6rem 1rem; }
    .hamburger-btn     { display: block; }
    .glass-master      { padding: 1.5rem 1rem; border-radius: 24px; }
    .logo-container-svg img { height: 28px; }

    .hero-split        { grid-template-columns: 1fr !important; text-align: center; }
    .hero-split .avatar-placeholder { max-width: 300px; margin: 0 auto; }
    .hero-split > div:last-child { display: flex; flex-direction: column; align-items: center; width: 100%; }
    .hero-h1           { font-size: 2.5rem !important; }
    .home-buttons-container { flex-direction: column !important; align-items: center; }
    .btn-giant         { max-width: 100%; }

    .inv-grid, .sponsorship-grid { grid-template-columns: 1fr; }
    .sponsor-card, .sponsor-card-desc, .course-left { text-align: center; }
    .sponsor-card-title, .inv-section-title, .course-tag-row { justify-content: center; }
    .inv-grid .glass   { text-align: center; }
    .course-card       { grid-template-columns: 1fr; padding-bottom: 5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
    .course-left       { width: 100%; }
    .course-right      { width: 100%; flex-direction: column-reverse; align-items: center; }
    .udemy-badge       { margin-top: 1.25rem; }
    .course-img        { margin-top: 0; width: 100%; height: auto; object-fit: cover; }
    .course-badge      { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; white-space: nowrap; width: auto; right: 50%; transform: translateX(50%); top: auto; bottom: 20px; }
    .btn-udemy-shiny   { padding: 12px 28px !important; font-size: var(--text-sm) !important; width: 100% !important; }

    .stats-row         { grid-template-columns: 1fr 1fr !important; gap: 1rem; }
    .stat-box .stat-value { font-size: var(--text-2xl) !important; }
    .stat-box .stat-label { font-size: var(--text-ui-sm); }

    .header-toggles    { display: flex !important; gap: 8px; }
    .toggles-mobile-row{ display: none !important; }

    .nav-inner {
        position: fixed; bottom: 0; left: 0; width: 100%; max-height: 85svh; height: auto; overflow-y: auto;
        background: var(--glass-master-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid var(--glass-border); border-radius: 40px 40px 0 0;
        flex-direction: column; justify-content: center; align-items: center; padding: 2rem;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); z-index: 101; gap: 3.5rem;
        transform: translateY(110%);
    }
    .nav-inner.open    { transform: translateY(0); }
    #navInner          { display: none !important; }
    #navInnerPortal    { display: flex; }
    .nav-container     { flex-direction: column; width: 100%; background: transparent !important; border: none !important; padding: 0 !important; gap: 1.2rem; display: flex; align-items: center; backdrop-filter: none !important; }
    .nav-link          { width: 85%; text-align: center; padding: 22px; font-size: var(--text-2xl); background: var(--glass-bg); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: block; }
    .nav-link.active   { background: var(--accent); color: var(--bg-base) !important; border-color: var(--accent); }
    .nav-indicator     { display: none; }

    .collab-info-list  { grid-template-columns: 1fr; }
    .no-accept-box     { margin-bottom: 1rem; }
    .medios-followers-label { text-align: center; }
    .ment-grid { grid-template-columns: 1fr; }
    .ment-results-list { grid-template-columns: 1fr; }
    .ment-cal-embed { min-height: auto; margin-bottom: 1.5rem; }
}

@media (max-width: 850px) and (max-height: 680px) {
    .nav-inner  { gap: 0.8rem; padding: 1.2rem 1.5rem; max-height: 92svh; justify-content: flex-start; padding-top: 1.5rem; }
    .nav-link   { font-size: var(--text-md); padding: 14px 20px; width: 75%; }
}
@media (max-width: 850px) and (max-height: 460px) {
    .nav-inner  { gap: 0.6rem; padding: 1rem 1.2rem; flex-direction: column; align-items: center; }
    .nav-container { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0.5rem; width: 100%; flex-direction: unset !important; align-items: stretch !important; }
    .nav-link   { width: 100% !important; font-size: var(--text-xs); padding: 10px 8px; border-radius: 16px; }
}

@media (max-width: 768px) {
    html { font-size: 16px; }
}

@media (max-width: 680px) {
    .calc-videos-row       { grid-template-columns: 1fr; }
    .calc-video-card h2,
    .calc-video-card h3    { text-align: center; }
    .calc-donut-wrap       { width: 240px; height: 240px; margin: 0 auto; }
    .calc-ld-row           { gap: 1.4rem; flex-direction: column; align-items: center; }
    .calc-legend-list      { width: 100%; }
}

@media (max-width: 650px) {
    .stats-row             { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .stat-box              { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1rem 0.5rem; justify-content: flex-end; }
    .stat-box .stat-label  { margin-bottom: 8px; }
    #social-networks-container { flex-direction: column !important; gap: 1.5rem !important; width: 100% !important; }
    #monthly-glass-box     { width: 100% !important; min-width: 100% !important; padding: 2rem 1.5rem !important; }
    #monthly-glass-box .monthly-box-value { font-size: clamp(2.2rem, 8vw, 3rem) !important; }
    .social-grid-wrap      { width: 100% !important; min-width: 0 !important; }
    .social-row            { grid-template-columns: 1fr !important; gap: 1rem !important; width: 100% !important; }
    .social-item           { padding: 1.25rem 0.75rem !important; min-width: 0 !important; overflow: hidden !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; gap: 0.75rem !important; }
    .social-item .social-val { font-size: clamp(1.8rem, 6vw, 2.4rem) !important; word-break: keep-all !important; margin-left: 0 !important; text-align: center !important; }
    .social-item i         { font-size: var(--text-2xl) !important; }
    .donuts-row            { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .donut-card            { padding: 1rem 0.5rem; }
    .donut-wrap            { width: 80px; height: 80px; }
    .donut-wrap svg        { width: 80px; height: 80px; }
    .donut-wrap .donut-text{ font-size: var(--text-lg); }
    .donut-card .donut-label { font-size: var(--text-xs) !important; }
    .geo-grid              { grid-template-columns: 1fr; gap: 0.75rem; }
    .yt-section            { padding: 1rem !important; }
    .marcas-header p       { font-size: var(--font-body); }
    .stat-value            { font-size: var(--text-2xl) !important; }
    .stat-label            { font-size: var(--text-ui-sm); }
    .contact-cta           { padding: 1.75rem 1rem; }
    .course-checklist li   { align-items: flex-start; text-align: left; }
}

@media (max-width: 600px) {
    .calc-glass            { padding: 1.1rem 0.8rem; padding-top: 3.8rem; }
    .calc-form-title       { margin-bottom: 1.2rem; }
    .calc-grid             { grid-template-columns: 1fr; gap: 0.85rem 0; margin-bottom: 1.4rem; }
    .calc-field            { gap: 0.45rem; }
    .calc-field.boc-active { padding-bottom: 2.4rem; }
    .calc-label            { text-align: left; font-size: var(--text-sm); opacity: 0.75; }
    .calc-input            { padding: 0.9rem 0.75rem; font-size: var(--text-lg); }
    .calc-suffix           { padding: 0 0.75rem; }
    .calc-input-prefix     { padding: 0 0.85rem; min-width: 2.4rem; font-size: var(--text-md); }
    .calc-help-grid        { grid-template-columns: 1fr; }
    .calc-bocadillo        { font-size: var(--text-sm); padding: 8px 14px; border-radius: 10px; white-space: normal; text-align: left; max-width: calc(100% - 8px); width: max-content; }
    
    .calc-share-label      { font-size: var(--text-sm); }
    .calc-headline-pre     { font-size: var(--text-sm); }
    .calc-headline-sub     { font-size: var(--text-sm); }
    .calc-table            { font-size: var(--text-sm); }
    .calc-table th         { font-size: var(--text-ui-sm); padding: 0.7rem 0.7rem; }
    .calc-table td         { padding: 0.55rem 0.7rem; font-size: var(--text-sm); }
}

@media (max-width: 580px) {
    .calc-btn-row                  { justify-content: center; flex-wrap: nowrap; }
    .calc-mobile-col               { display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; width: 100%; }
    .calc-strategies-group         { display: flex; justify-content: center; flex-wrap: wrap; }
    .calc-btn-strategy             { display: none !important; }
    .calc-btn-modo-consult:not(.calc-consult-locked) { display: inline-flex !important; }
    #calc-btn-reset                { display: none !important; }
    #calc-btn-currency             { display: none !important; }
    .calc-btn-mobile-strategies:not(.calc-consult-locked) { display: inline-flex !important; }
    .calc-btn-reset-mobile         { display: inline-flex !important; }
    .calc-btn-currency-mob         { display: inline-flex !important; }
    .calc-btn-main                 { width: 100%; justify-content: center; }
    .calc-share-row                { justify-content: center; flex-wrap: nowrap; gap: 0.6rem; }
    .calc-share-input              { display: none; }
}

@media (max-width: 560px) {
    .collab-info           { padding-bottom: 6rem; }
    .collab-info-footer    { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 2rem); }
    .marcas-videos-grid    { grid-template-columns: 1fr; }
    .vl-stage-wrap         { min-height: 160px; border-radius: 18px; }
    .vl-color-btn          { width: 30px; height: 30px; }
    .vl-stage-img          { max-width: 65%; max-height: 110px; }
    .vl-dl-btn             { padding: 9px 14px; font-size: var(--text-xs); }
}

@media (max-width: 520px) {
    .calc-donut-wrap { width: 221px; height: 221px; }
    .calc-bar-wrap   { height: 220px; }
}

@media (max-width: 480px) {
    .home-credentials-grid { grid-template-columns: 1fr; }
    .home-cred-number .count-up,
    .home-cred-number .font-numbers { font-size: clamp(2rem, 8vw, 3rem); }
}

@media (max-width: 440px) {
    .calc-glass { padding: 0.9rem 0.55rem; border-radius: 14px; padding-top: 3.5rem; }
    .calc-form-title { margin-bottom: 0.9rem; }
}

@media (max-width: 380px) {
    .donuts-row            { grid-template-columns: 1fr; }
    .donut-wrap            { width: 100px; height: 100px; }
    .donut-wrap svg        { width: 100px; height: 100px; }
    .donut-wrap .donut-text{ font-size: var(--text-xl); }
    .glass-master          { padding: 1rem 0.75rem; border-radius: 16px; }
    .stat-box .stat-value  { font-size: var(--text-xl) !important; }
    .stat-box .stat-label  { font-size: var(--text-ui-sm); }
    .sponsorship-grid      { grid-template-columns: 1fr; }
    .formats-list          { gap: 0.5rem; }
    .format-item           { padding: 8px 14px; font-size: var(--text-xs); }
}

#carrusel-marcas {
    overflow: hidden;
    padding: 1.8rem 0;
    margin: 2rem 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    -webkit-mask-image: linear-gradient(to right, transparent, black var(--marcas-fade-w), black calc(100% - var(--marcas-fade-w)), transparent);
    mask-image: linear-gradient(to right, transparent, black var(--marcas-fade-w), black calc(100% - var(--marcas-fade-w)), transparent);
    --marcas-fade-w: 80px;
}
#carrusel-marcas:active { cursor: grabbing; }
.cr-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
}
.cr-logo {
    flex-shrink: 0;
    height: 36px;
    width: auto;
    margin-right: 64px;
    display: block;
    opacity: 0.85;
    transition: filter 0.4s;
}

#canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    pointer-events: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pg-stat-pair-outer {
    grid-column: span 2;
    position: relative;
}
