/* ================================================================
   TuHiper — contactonew.css  v6
   Sin scroll. Nav + (hero panel izq verde | cards der) + info band + footer
   ================================================================ */

:root {
    --bg:        #FFFFFF;
    --bg-soft:   #F7F7F5;
    --bg-muted:  #EFEFED;
    --text:      #111111;
    --text-2:    #555555;
    --text-3:    #999999;
    --accent:    #1a7a24;
    --accent-h:  #0f5218;
    --accent-lt: #EBF5EC;
    --hero-bg:   #0d3d15;
    --hero-bg2:  #0a3010;
    --border:    #E4E4E2;
    --border-2:  #CACACA;
    --nav-h:     56px;
    --foot-h:    44px;
    --main-h:    calc(100vh - var(--nav-h) - var(--foot-h));
    --font:      'Plus Jakarta Sans', system-ui, sans-serif;
    --font-b:    'DM Sans', system-ui, sans-serif;
    --ease:      cubic-bezier(.4, 0, .2, 1);
    --t:         .18s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; overflow: hidden; }

body {
    font-family: var(--font-b);
    color: var(--text);
    background: var(--bg);
    height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

#form1 {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-h); }
p   { line-height: 1.6; margin: 0; }

/* ================================================================
   NAVBAR
   ================================================================ */
#mainNav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    flex-shrink: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    height: 100%;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand img { height: 23px; width: auto; object-fit: contain; transition: opacity var(--t); }
.nav-brand:hover img { opacity: .65; }
.nav-toggle { display: none; }

.nav-links { display: flex; list-style: none; gap: .15rem; align-items: center; }
.nav-links a {
    font-family: var(--font);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-2);
    padding: .38rem .72rem;
    border-radius: 5px;
    transition: color var(--t), background var(--t);
}
.nav-links a:hover { color: var(--text); background: var(--bg-muted); }

.nav-link-inicio {
    display: inline-flex !important;
    align-items: center;
    gap: .35rem;
    color: var(--text) !important;
    font-weight: 700 !important;
}
.nav-link-inicio svg { color: var(--text); flex-shrink: 0; }

/* ================================================================
   MAIN LAYOUT — hero izquierda | formularios derecha
   flex:1 empuja el footer siempre al fondo
   ================================================================ */
.main-layout {
    margin-top: var(--nav-h);
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 340px 1fr;
    overflow: hidden;
}

/* ── HERO PANEL — verde corporativo ── */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2.75rem;
    background: linear-gradient(160deg, var(--hero-bg) 0%, var(--hero-bg2) 100%);
    border-right: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
    position: relative;
}

/* Círculo decorativo */
.hero::before {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
    pointer-events: none;
}

/* Badge "En línea" */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 99px;
    padding: .25rem .7rem;
    font-family: var(--font);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-bottom: 1.1rem;
    width: fit-content;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    flex-shrink: 0;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

.hero-title {
    font-family: var(--font) !important;
    font-size: clamp(1.5rem, 2.8vw, 2.4rem) !important;
    font-weight: 300 !important;
    letter-spacing: -.03em !important;
    color: #ffffff !important;
    line-height: 1.05 !important;
    display: block !important;
}

.hero-rule {
    width: 28px; height: 2px;
    background: rgba(255,255,255,.25);
    margin: 1rem 0 .85rem;
}

.hero-sub {
    font-size: clamp(.78rem, 1.2vw, .9rem);
    color: rgba(255,255,255,.85);
    line-height: 1.65;
}

.hero-info {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-b);
    font-size: .78rem;
    color: rgba(255,255,255,.9);
}
.hero-info-item svg { color: rgba(255,255,255,.7); flex-shrink: 0; }

.hero-info-sep {
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: .3rem 0;
}

/* ── FORMULARIOS — centradas en el área derecha ── */
.forms-section {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
    padding: 1.5rem 2rem;
    gap: 0;
}

.forms-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1100px;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 36px rgba(0,0,0,.09);
}

.forms-divider { flex: 0 0 1px; background: var(--border); }

.fcard {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 2.75rem 3rem;
    overflow: hidden;
    background: var(--bg);
}

.fcard--secondary { background: var(--bg-soft); }

/* Icono representativo de la tarjeta — círculo con accent (mismo patrón que login) */
.fcard-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--accent-lt);
    border-radius: 14px;
    flex-shrink: 0;
    margin-bottom: .85rem;
    border: 1px solid rgba(26,122,36,.12);
}
.fcard-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
    stroke: var(--accent);
}

.fcard-title {
    font-family: var(--font) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    letter-spacing: -.025em !important;
    line-height: 1.2 !important;
    display: block !important;
}

.fcard-rule {
    width: 22px; height: 2px;
    background: var(--accent);
    margin: .6rem 0 .9rem;
    flex-shrink: 0;
    border-radius: 2px;
}

.fcard-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.fcard-spacer { flex: 1; min-height: .15rem; }

.fcard-desc {
    font-size: clamp(.78rem, 1.2vw, .86rem);
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: .85rem;
}

.fcard-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .42rem;
}
.fcard-features li {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: clamp(.76rem, 1.1vw, .82rem);
    color: var(--text-2);
}
.fcard-features svg { color: var(--accent); flex-shrink: 0; }

/* Campos */
.field {
    display: flex;
    flex-direction: column;
    gap: .18rem;
    margin-bottom: .75rem;
}

.field-label {
    font-family: var(--font);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.field-input {
    font-family: var(--font-b);
    font-size: .86rem;
    color: var(--text);
    background: var(--bg-muted);
    border: 1.5px solid transparent;
    border-radius: 6px;
    padding: .52rem .8rem;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    line-height: 1.4;
}
.field-input:focus {
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(26,122,36,.09);
    outline: none;
}
.field-input::placeholder { color: var(--text-3); }
.field-textarea            { resize: none; }

/* Botones */
.btn {
    display: block;
    width: 100%;
    font-family: var(--font);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .75rem 1.25rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    text-align: center;
    transition: background var(--t) var(--ease), box-shadow var(--t), transform var(--t);
}
.btn:focus  { outline: none; box-shadow: 0 0 0 3px rgba(26,122,36,.18); }
.btn:active { transform: translateY(1px); }

.btn-dark  { background: var(--text); color: #fff; margin-top: .65rem; }
.btn-dark:hover  { background: #2a2a2a; box-shadow: 0 4px 14px rgba(0,0,0,.18); }

.btn-green { background: var(--accent); color: #fff; margin-top: .65rem; }
.btn-green:hover { background: var(--accent-h); box-shadow: 0 4px 14px rgba(26,122,36,.28); }

.send-ok {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .75rem 1rem;
    background: var(--accent-lt);
    border: 1px solid rgba(26,122,36,.15);
    border-radius: 6px;
    font-size: .84rem;
    color: var(--accent);
    margin-top: .65rem;
    flex-shrink: 0;
}
.send-ok svg { flex-shrink: 0; }

/* ================================================================
   FOOTER — idéntico al de inicio.aspx
   ================================================================ */
.footer {
    flex-shrink: 0;
    background: #1A1A1A;
    color: rgba(255,255,255,.45);
    font-family: var(--font);
    font-size: .75rem;
    padding: 1.25rem 1.5rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.footer-copy {
    color: rgba(255,255,255,.9);
    font-size: .75rem;
    letter-spacing: .01em;
}
.footer-copy a { color: #fff; font-weight: 500; transition: color var(--t); }
.footer-copy a:hover { color: rgba(255,255,255,.7); }

.footer-social { display: flex; gap: .1rem; align-items: center; }

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .3rem .5rem;
    border-radius: 4px;
    color: rgba(255,255,255,.85);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--t), transform var(--t);
    text-decoration: none;
}
.footer-social-btn svg { width: 14px; height: 14px; display: block; }
.footer-social-btn:hover { color: #fff; transform: translateY(-2px); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    html, body { overflow: auto; height: auto; }
    #form1 { overflow: visible; }

    .main-layout {
        height: auto;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .hero {
        padding: 2.5rem 2rem;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.06);
        min-height: 220px;
    }

    .forms-section { height: auto; padding: 1.5rem; overflow: visible; }
    .forms-row     { max-height: none; height: auto; flex-direction: column; }
    .forms-divider { flex: 0 0 1px; width: 100%; }
    .fcard         { padding: 1.5rem; overflow: visible; }

    .footer { padding: 1rem 1.5rem; }
}

@media (max-width: 520px) {
    .forms-section { grid-template-columns: 1fr; }
    .forms-divider { width: 100%; height: 1px; }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: .4rem;
    }
    .nav-toggle span {
        display: block;
        width: 20px; height: 1.5px;
        background: var(--text);
        border-radius: 2px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: var(--nav-h); left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem 1.5rem;
        gap: .15rem;
        z-index: 99;
    }
    .nav-links.open { display: flex; }
    .nav-links a    { padding: .55rem .5rem; width: 100%; }
}

/* Misc */
::selection { background: rgba(26,122,36,.15); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* ================================================================
   ANIMATIONS — Entrada profesional
   ================================================================ */

@keyframes aNavDrop {
    from { opacity: 0; transform: translateY(-100%); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes aHeroTitle {
    from { opacity: 0; filter: blur(14px); transform: translateX(-28px); }
    to   { opacity: 1; filter: blur(0);    transform: translateX(0); }
}

@keyframes aRuleGrow {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

@keyframes aFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes aCardRise {
    from { opacity: 0; transform: translateY(22px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes aNumReveal {
    from { opacity: 0; transform: translateY(8px) scale(.9); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

@keyframes aBtnPop {
    0%   { opacity: 0; transform: translateY(14px) scale(.9); }
    65%  { transform: translateY(-3px) scale(1.03); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Navbar ── */
#mainNav {
    animation: aNavDrop .4s cubic-bezier(.25,.46,.45,.94) both;
}

/* ── Hero — elementos internos ── */
.hero-title {
    animation: aHeroTitle .75s cubic-bezier(.25,.46,.45,.94) .1s both;
}

.hero-rule {
    transform-origin: left center;
    animation: aRuleGrow .4s var(--ease) .55s both;
}

.hero-sub {
    animation: aFadeUp .5s var(--ease) .65s both;
}

.hero-info {
    animation: aFadeUp .5s var(--ease) .8s both;
}

/* ── Tarjetas de formulario ── */
.fcard:first-child {
    animation: aCardRise .6s cubic-bezier(.25,.46,.45,.94) .25s both;
}

.fcard.fcard--secondary {
    animation: aCardRise .6s cubic-bezier(.25,.46,.45,.94) .42s both;
}

/* ── Interior de cada fcard (escalonado tras la tarjeta) ── */
.fcard-icon {
    animation: aNumReveal .5s var(--ease) .55s both;
}

.fcard-title {
    animation: aFadeUp .4s var(--ease) .64s both;
}

.fcard-rule {
    transform-origin: left center;
    animation: aRuleGrow .4s var(--ease) .74s both;
}

.fcard .field {
    animation: aFadeUp .35s var(--ease) .8s both;
}

.fcard .btn {
    animation: aBtnPop .5s cubic-bezier(.34,1.56,.64,1) .95s both;
}
