/* ==========================================================
   Trezum — Landing Page Styles
   Organized by component with CSS Custom Properties
   ========================================================== */

/* --- Custom Properties --- */
:root {
    --color-primary: #191C46;
    --color-accent: #D05C46;
    --color-text: #191C46;
    --color-text-light: #4A4A62;
    --color-bg: #fff;
    --color-bg-input: #FAFAFA;
    --color-border: rgba(25, 28, 70, 0.15);
    --color-border-light: rgba(25, 28, 70, 0.08);
    --color-white-70: rgba(255, 255, 255, 0.78);
    --color-white-50: rgba(255, 255, 255, 0.6);
    --color-white-10: rgba(255, 255, 255, 0.1);

    --font-family: 'Outfit', sans-serif;

    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-card: 0 12px 60px rgba(25, 28, 70, 0.12), 0 2px 8px rgba(25, 28, 70, 0.06);
    --shadow-cta: 0 4px 20px rgba(208, 92, 70, 0.3);
    --shadow-cta-hover: 0 8px 28px rgba(208, 92, 70, 0.4);

    --nav-height: 68px;
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Screen reader only — visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
}

/* ==========================================================
   NAV
   ========================================================== */
.tz-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border-light);
    padding: 0 5%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tz-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.tz-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.tz-nav-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: opacity 0.2s;
}

.tz-nav-btn:hover {
    opacity: 0.85;
}

/* --- Botón Hamburguesa --- */
.tz-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
}

.tz-hamburger:hover {
    color: var(--color-accent);
}

.tz-hamburger-close {
    display: none;
}

.tz-hamburger.open .tz-hamburger-icon {
    display: none;
}

.tz-hamburger.open .tz-hamburger-close {
    display: block;
}

/* Ocultar hamburguesa en pantallas grandes */
@media (min-width: 768px) {
    .tz-hamburger {
        display: none;
    }
}

/* --- Enlaces de Navegación --- */
.tz-nav-links {
    display: none; /* Se oculta en celulares muy pequeños por espacio */
    list-style: none;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

/* Menú abierto en mobile */
.tz-nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 8px 24px rgba(25, 28, 70, 0.08);
    padding: 12px 0;
    z-index: 99;
}

.tz-nav-links.open li {
    width: 100%;
}

.tz-nav-links.open li a {
    display: block;
    padding: 14px 5%;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 16px;
}

.tz-nav-links.open li:last-child a {
    border-bottom: none;
}

/* Solo se muestran en pantallas tipo tablet o computadora */
@media (min-width: 768px) {
    .tz-nav-links {
        display: flex;
    }
}

.tz-nav-links a {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.tz-nav-links a:hover {
    color: var(--color-accent); /* Cambia a color coral al pasar el mouse */
}

/* ==========================================================
   HERO
   ========================================================== */
.tz-hero {
    min-height: 100vh;
    padding: var(--nav-height) 5% 0;
    display: flex;
    align-items: center;
}

.tz-hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.tz-hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* --- Eyebrow --- */
.tz-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.tz-eyebrow-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text-light);
    text-transform: uppercase;
}

/* --- Headline --- */
.tz-headline {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: var(--color-text);
    margin-bottom: 28px;
}

.tz-headline-coral {
    color: var(--color-accent);
}

/* --- Subheadline --- */
.tz-subheadline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.tz-sub-bar {
    width: 3px;
    height: 22px;
    background: var(--color-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.tz-sub-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.3px;
}

/* --- Body --- */
.tz-body {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-light);
    max-width: 480px;
    margin-bottom: 36px;
}

/* --- CTA Button --- */
.tz-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 15px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.1px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-cta);
    margin-bottom: 40px;
}

.tz-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cta-hover);
}

/* --- Trust Items --- */
.tz-trust {
    border-top: 1px solid rgba(25, 28, 70, 0.1);
    padding-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 24px;
    list-style: none;
}

.tz-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tz-trust-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tz-trust-icon svg {
    width: 10px;
    height: 10px;
}

.tz-trust-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
}

/* ==========================================================
   FORM CARD
   ========================================================== */
.tz-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.tz-card-top {
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

.tz-card-body {
    padding: 32px;
}

.tz-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.tz-card-sub {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* --- Form --- */
.tz-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tz-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tz-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tz-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.3px;
}

.tz-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg-input);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.tz-input:focus {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.tz-input::placeholder {
    color: #8a8a9a;
}

.tz-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23191C46' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.tz-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 15px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity 0.2s;
    letter-spacing: 0.2px;
}

.tz-submit:hover {
    opacity: 0.88;
}

.tz-form-footer {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 12px;
}

/* ==========================================================
   METRICS STRIP
   ========================================================== */
.tz-metrics {
    background: var(--color-primary);
    padding: 56px 5%;
}

.tz-metrics-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tz-metric {
    text-align: center;
    padding: 16px;
}

.tz-metric-num {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 10px;
}

.tz-metric-label {
    font-size: 13px;
    color: var(--color-white-70);
    font-weight: 400;
    line-height: 1.5;
    max-width: 140px;
    margin: 0 auto;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.tz-footer {
    background: var(--color-primary);
    border-top: 1px solid var(--color-white-10);
    padding: 32px 5%;
    text-align: center;
}

.tz-footer p {
    font-size: 13px;
    color: var(--color-white-50);
    line-height: 1.8;
}

.tz-footer a {
    color: var(--color-white-70);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s;
}

.tz-footer a:hover {
    color: var(--color-accent);
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tz-anim-1 { animation: fadeUp 0.35s ease forwards; opacity: 0; }
.tz-anim-2 { animation: fadeUp 0.35s 0.05s ease forwards; opacity: 0; }
.tz-anim-3 { animation: fadeUp 0.35s 0.1s ease forwards; opacity: 0; }
.tz-anim-4 { animation: fadeUp 0.35s 0.15s ease forwards; opacity: 0; }
.tz-anim-5 { animation: fadeUp 0.35s 0.2s ease forwards; opacity: 0; }
.tz-anim-6 { animation: fadeUp 0.35s 0.25s ease forwards; opacity: 0; }
.tz-anim-7 { animation: fadeUp 0.35s 0.08s ease forwards; opacity: 0; }

/* ==========================================================
   GRACIAS PAGE
   ========================================================== */
.tz-gracias {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.tz-gracias .logo {
    height: 40px;
    margin-bottom: 48px;
}

.tz-gracias h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.tz-gracias .coral {
    color: var(--color-accent);
}

.tz-gracias p {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 32px;
}

.tz-gracias .tz-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.2s;
}

.tz-gracias .tz-back-link:hover {
    opacity: 0.85;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
    .tz-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0 60px;
    }

    .tz-metrics-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .tz-field-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .tz-metrics-inner {
        grid-template-columns: 1fr 1fr;
    }

    .tz-trust {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tz-headline {
        font-size: 36px;
    }
}
/* ==========================================================
   CONVERTIDOR B2B
   ========================================================== */
.tz-seo-calc { max-width: 800px; margin: 80px auto; padding: 0 5%; scroll-margin-top: 100px; }
.tz-calc-intro { text-align: center; margin-bottom: 40px; }
.tz-calc-wrapper { background: var(--color-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; transition: all 0.4s ease; border: 1px solid var(--color-border-light); }

.tz-converter-top { padding: 40px; text-align: center; border-bottom: 1px solid var(--color-border-light); position: relative; }
.tz-converter-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.tz-currency-block { display: flex; flex-direction: column; align-items: center; width: 40%; min-width: 180px; }

.tz-currency-selector { font-family: var(--font-family); font-size: 16px; font-weight: 800; color: var(--color-text-light); background: transparent; border: none; outline: none; cursor: pointer; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; text-align: center; appearance: none; padding-right: 15px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C5C73' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; }
.tz-currency-selector:focus { color: var(--color-primary); }

.tz-input-wrapper { display: flex; align-items: baseline; justify-content: center; width: 100%; border-bottom: 2px solid var(--color-border); padding-bottom: 8px; transition: border-color 0.2s; }
.tz-input-wrapper:focus-within { border-color: var(--color-accent); }
.tz-currency-input { width: auto; max-width: 150px; text-align: center; font-size: 36px; font-weight: 800; color: var(--color-primary); border: none; background: transparent; outline: none; font-family: var(--font-family); }
.tz-currency-static { width: 100%; text-align: center; font-size: 36px; font-weight: 800; color: var(--color-text-light); padding-bottom: 10px; }

.tz-flip-btn { background: var(--color-bg-input); border: 1px solid var(--color-border); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; margin-top: 20px; }
.tz-flip-btn:hover { background: var(--color-primary); border-color: var(--color-primary); transform: rotate(180deg); }
.tz-flip-btn svg { stroke: var(--color-primary); transition: stroke 0.2s; }
.tz-flip-btn:hover svg { stroke: #fff; }

.tz-rate-info { font-size: 14px; color: var(--color-text-light); margin-bottom: 24px; }
.tz-rate-info strong { color: var(--color-primary); }

.tz-reveal-btn { background: transparent; color: var(--color-accent); border: 2px solid var(--color-accent); padding: 12px 24px; border-radius: var(--radius-sm); font-family: var(--font-family); font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.tz-reveal-btn:hover { background: var(--color-accent); color: #fff; }

.tz-comparer-bottom { background: var(--color-primary); color: #fff; padding: 40px; display: none; }
.tz-comparer-bottom.active { display: block; animation: slideDown 0.4s ease forwards; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.tz-selectors-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.tz-input-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; color: var(--color-white-70); }
select.tz-calc-select { width: 100%; padding: 14px; font-size: 15px; border: 1px solid var(--color-white-10); border-radius: var(--radius-sm); font-family: var(--font-family); background-color: rgba(255,255,255,0.05); color: #fff; outline: none; cursor: pointer; }
select.tz-calc-select option { color: var(--color-primary); } 

.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; border-top: 1px solid var(--color-white-10); padding-top: 30px; }
.comp-card { background: rgba(0,0,0,0.2); padding: 20px; border-radius: var(--radius-sm); text-align: center; }
.comp-card.trezum-card { background: rgba(208, 92, 70, 0.15); border: 1px solid rgba(208, 92, 70, 0.4); }
.comp-label { font-size: 13px; font-weight: 600; opacity: 0.8; margin-bottom: 8px; }
.trezum-card .comp-label { color: var(--color-accent); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.comp-value { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.bank-val { color: #b0b0c0; text-decoration: line-through; opacity: 0.7; }
.trezum-val { color: #fff; font-size: 28px; font-weight: 800; }
.comp-sub { font-size: 11px; opacity: 0.6; }

.tz-savings-total { text-align: center; font-size: 18px; font-weight: 600; margin-bottom: 24px; }
.tz-savings-total span { color: var(--color-accent); font-size: 24px; font-weight: 800; display: block; margin-top: 4px; }

.tz-cta-secondary { background: var(--color-accent); color: #fff; border: none; padding: 18px; border-radius: var(--radius-sm); font-family: var(--font-family); font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; transition: opacity 0.2s; margin-bottom: 20px; }
.tz-cta-secondary:hover { opacity: 0.9; }

.tz-legal-disclaimer { font-size: 11px; color: var(--color-white-50); text-align: justify; text-align-last: center; line-height: 1.5; padding-top: 16px; border-top: 1px solid var(--color-white-10); }

@media (max-width: 600px) {
    .tz-converter-row { flex-direction: column; }
    .tz-currency-block { width: 100%; }
    .tz-flip-btn { margin-top: 0; margin-bottom: 10px; transform: rotate(90deg); }
    .tz-flip-btn:hover { transform: rotate(270deg); }
    .tz-selectors-row, .comparison-grid { grid-template-columns: 1fr; }
    .tz-currency-input { text-align: center; max-width: 100%; }
    .tz-input-wrapper { justify-content: center; }
}

/* ==========================================================
   ESTILOS LEGALES (CHECKBOX Y COOKIES)
   ========================================================== */

/* --- Checkbox Privacidad --- */
.tz-checkbox-field { margin-top: 8px; margin-bottom: 8px; }
.tz-checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--color-text-light); cursor: pointer; line-height: 1.4; }
.tz-checkbox-label input[type="checkbox"] { margin-top: 2px; cursor: pointer; accent-color: var(--color-accent); width: 16px; height: 16px; flex-shrink: 0; }
.tz-checkbox-label a { color: var(--color-accent); text-decoration: underline; }

/* --- Banner de Cookies --- */
.tz-cookie-banner { position: fixed; bottom: -150px; left: 0; right: 0; background: var(--color-primary); color: #fff; padding: 16px 5%; display: flex; flex-direction: column; align-items: center; gap: 16px; z-index: 1000; transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 -4px 20px rgba(0,0,0,0.15); }
.tz-cookie-banner.show { bottom: 0; }
.tz-cookie-banner p { font-size: 13px; line-height: 1.5; color: var(--color-white-70); text-align: center; max-width: 800px; margin: 0; }
.tz-cookie-banner a { color: var(--color-accent); text-decoration: underline; font-weight: 600;}
.tz-btn-cookies { background: var(--color-accent); color: #fff; border: none; padding: 10px 24px; border-radius: var(--radius-sm); font-family: var(--font-family); font-size: 13px; font-weight: 700; cursor: pointer; transition: opacity 0.2s; white-space: nowrap; }
.tz-btn-cookies:hover { opacity: 0.9; }

@media (min-width: 768px) {
    .tz-cookie-banner { flex-direction: row; justify-content: center; gap: 24px; }
    .tz-cookie-banner p { text-align: left; }
}