/* ═══════════════════════════════════════════════════════════
   AIA Consultores — Encuestas v3.1
   Pixel-perfect match to design reference
═══════════════════════════════════════════════════════════ */

/* ── Google Font ──────────────────────────────────────────── */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    --clr-orange:       #f0842c;
    --clr-orange-gold:  #fca311;
    --clr-orange-glow:  rgba(240,132,44,.20);
    --clr-blue-deep:    #000d6b;
    --clr-blue-mid:     #0018a8;
    --clr-blue-dark:    #00073d;
    --clr-navy:         #0f172a;
    --clr-navy-mid:     #1e293b;
    --clr-slate:        #64748b;
    --clr-light:        #f7f8fc;
    --clr-border:       #e8edf4;
    --clr-white:        #ffffff;
    --clr-green:        #10b981;
    --clr-link-blue:    #64b5f6;

    --radius-sm:    12px;
    --radius-md:    22px;
    --radius-lg:    36px;
    --ease:         cubic-bezier(.19,1,.22,1);
    --shadow-card:  0 25px 70px -12px rgba(15,23,42,.14);
    --shadow-glow:  0 16px 50px rgba(240,132,44,.25);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    
    background: var(--clr-light);
    color: var(--clr-navy);
    overflow-x: hidden;
}

/* ════════════════════════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════════════════════════ */
.enc-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Deep blue gradient matching the reference image */
    background: linear-gradient(160deg, #000d6b 0%, #0018a8 45%, #000d6b 100%);
    padding: 100px 24px 90px;
}

/* ── Decorative background ──────────────────────────────── */
.enc-hero__bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* Large blobs */
.enc-hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}
.enc-hero__blob--1 {
    width: 480px; height: 480px;
    background: rgba(100,100,255,.15);
    top: -120px; right: -80px;
    animation: blobFloat 18s ease-in-out infinite alternate;
}
.enc-hero__blob--2 {
    width: 300px; height: 300px;
    background: rgba(60,0,100,.25);
    bottom: -60px; left: -60px;
    animation: blobFloat 22s ease-in-out infinite alternate-reverse;
}
.enc-hero__blob--3 {
    width: 200px; height: 200px;
    background: rgba(150,80,255,.12);
    top: 40%; left: 15%;
    animation: blobFloat 14s ease-in-out infinite alternate;
}

/* Soft squares (matching image corners) */
.enc-hero__square {
    position: absolute;
    border-radius: 18px;
    border: 2px solid rgba(255,255,255,.08);
}
.enc-hero__square--1 {
    width: 100px; height: 100px;
    top: 18%; left: 8%;
    transform: rotate(20deg);
    background: rgba(255,255,255,.04);
    animation: squareRotate 20s linear infinite;
}
.enc-hero__square--2 {
    width: 70px; height: 70px;
    top: 55%; right: 12%;
    transform: rotate(-15deg);
    background: rgba(255,255,255,.03);
    animation: squareRotate 28s linear infinite reverse;
}

/* Glow circles */
.enc-hero__circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    border: 1.5px solid rgba(255,255,255,.06);
}
.enc-hero__circle--1 {
    width: 180px; height: 180px;
    top: 12%; right: 22%;
}
.enc-hero__circle--2 {
    width: 250px; height: 250px;
    bottom: 15%; left: 5%;
    background: rgba(80,40,140,.12);
}

@keyframes blobFloat {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(30px,20px) scale(1.06); }
}
@keyframes squareRotate {
    to { transform: rotate(380deg); }
}

/* ── Hero Inner Content ─────────────────────────────────── */
.enc-hero__inner {
    position: relative;
    z-index: 5;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

/* Badge */
.enc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.10);
    border: 1.5px solid rgba(255,255,255,.18);
    color: var(--clr-white);
    padding: 9px 26px;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    margin-bottom: 32px;
    animation: fadeSlideDown .7s var(--ease) both;
}
.enc-hero__badge i { color: var(--clr-orange-gold); font-size: .85rem; }

/* Title */
.enc-hero__title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--clr-white);
    margin-bottom: 20px;
    animation: fadeSlideDown .85s var(--ease) .1s both;
}
.enc-hero__title--orange {
    color: var(--clr-orange-gold);
}

/* Subtitle */
.enc-hero__sub {
    font-size: clamp(.95rem, 1.8vw, 1.1rem);
    color: rgba(255,255,255,.78);
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.65;
    animation: fadeSlideDown 1s var(--ease) .2s both;
}
.enc-hero__link {
    color: var(--clr-link-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color .25s;
}
.enc-hero__link:hover { color: #fff; }

/* Stats Row */
.enc-hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    animation: fadeSlideDown 1.1s var(--ease) .3s both;
}
.enc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.enc-stat__num {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--clr-orange-gold);
    line-height: 1;
}
.enc-stat__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: rgba(255,255,255,.55);
}
.enc-stat__divider {
    width: 1.5px;
    height: 64px;
    background: rgba(255,255,255,.14);
}

/* Wave bottom */
.enc-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 6;
    line-height: 0;
}
.enc-hero__wave svg {
    display: block;
    width: 100%;
    height: 90px;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════
   CATEGORY SECTION
════════════════════════════════════════════════════════════ */
.enc-cats {
    padding: 100px 24px 90px;
    background: var(--clr-light);
    position: relative;
}
.enc-cats__inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}
.enc-cats__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(240,132,44,.12);
    border: 1px solid rgba(240,132,44,.22);
    color: var(--clr-orange);
    padding: 7px 22px;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.enc-cats__title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--clr-navy);
    margin-bottom: 14px;
}
.enc-cats__sub {
    font-size: 1.05rem;
    color: var(--clr-slate);
    max-width: 520px;
    margin: 0 auto 56px;
    line-height: 1.6;
}
.enc-cats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 900px;
    margin: 0 auto;
}

/* Category Card */
.enc-cat-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 30px 35px;
    background: var(--clr-white);
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden;
}
.enc-cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(240,132,44,.04), transparent);
    opacity: 0;
    transition: opacity .35s;
}
.enc-cat-card:hover::after { opacity: 1; }
.enc-cat-card:hover, .enc-cat-card.selected {
    border-color: var(--clr-orange);
    transform: translateY(-6px);
    box-shadow: 0 20px 55px rgba(240,132,44,.12);
}
.enc-cat-card__icon {
    width: 60px; height: 60px; min-width: 60px;
    background: #f1f5f9;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--clr-orange);
    transition: background .35s, color .35s, transform .35s var(--ease);
    position: relative; z-index: 1;
}
.enc-cat-card:hover .enc-cat-card__icon,
.enc-cat-card.selected .enc-cat-card__icon {
    background: var(--clr-orange);
    color: var(--clr-white);
    transform: scale(1.08);
}
.enc-cat-card__body { flex: 1; z-index: 1; }
.enc-cat-card__body h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--clr-navy);
    margin-bottom: 5px;
}
.enc-cat-card__body p {
    font-size: .88rem;
    color: var(--clr-slate);
    line-height: 1.5;
}
.enc-cat-card__arrow {
    width: 38px; height: 38px; min-width: 38px;
    background: var(--clr-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--clr-slate);
    font-size: .82rem;
    transition: all .35s var(--ease);
    position: relative; z-index: 1;
}
.enc-cat-card:hover .enc-cat-card__arrow,
.enc-cat-card.selected .enc-cat-card__arrow {
    background: var(--clr-orange);
    color: var(--clr-white);
    transform: translateX(4px);
}

/* Remove link styles from anchor cards */
a.enc-cat-card {
    text-decoration: none;
    color: inherit;
}

/* ════════════════════════════════════════════════════════════
   SURVEY FORM SECTION
════════════════════════════════════════════════════════════ */
.enc-survey {
    padding: 80px 24px 100px;
    background: #eef2f7;
}
.enc-survey__grid {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.enc-sidebar {
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 110px;
}
.enc-sidebar__logo { margin-bottom: 36px; }
.enc-sidebar__logo-img { height: 44px; width: auto; }
.enc-sidebar__stats { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.enc-sidebar__stat { display: flex; flex-direction: column; }
.enc-sidebar__stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--clr-navy);
    letter-spacing: -1.5px;
}
.enc-sidebar__stat-num .fa-star { color: #fbbf24; font-size: 1.6rem; vertical-align: middle; }
.enc-sidebar__stat-label { font-size: .86rem; color: var(--clr-slate); font-weight: 600; }
.enc-sidebar__divider { border: none; border-top: 2px solid var(--clr-border); margin-bottom: 30px; }
.enc-sidebar__steps { display: flex; flex-direction: column; gap: 26px; }
.enc-sidebar__step {
    display: flex; align-items: center; gap: 16px;
    opacity: .32;
    transition: opacity .5s var(--ease);
}
.enc-sidebar__step.active { opacity: 1; }
.enc-sidebar__step-dot {
    width: 42px; height: 42px; min-width: 42px;
    background: var(--clr-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; color: var(--clr-slate);
    transition: background .35s, color .35s, box-shadow .35s;
}
.enc-sidebar__step.active .enc-sidebar__step-dot {
    background: var(--clr-orange);
    color: var(--clr-white);
    box-shadow: 0 8px 22px rgba(240,132,44,.28);
}
.enc-sidebar__step strong { display: block; font-size: .9rem; font-weight: 800; color: var(--clr-navy); }
.enc-sidebar__step p { font-size: .8rem; color: var(--clr-slate); margin-top: 2px; }

/* ── Form Panel ───────────────────────────────────────────── */
.enc-form-panel {
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 64px 72px;
    position: relative;
    overflow: hidden;
}

/* Progress bar */
.enc-progress {
    height: 5px;
    background: var(--clr-border);
    border-radius: 10px;
    margin-bottom: 56px;
}
.enc-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--clr-orange), #ffb347);
    border-radius: 10px;
    width: 0%;
    transition: width .65s var(--ease);
}

/* Step panes */
.enc-step { display: none; animation: stepSlide .55s var(--ease); }
.enc-step.active { display: block; }
@keyframes stepSlide {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Step header */
.enc-step__header { margin-bottom: 44px; }
.enc-step__tag {
    display: inline-block;
    color: var(--clr-orange);
    font-weight: 800;
    font-size: .76rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.enc-step__header h2 {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
    color: var(--clr-navy);
}
.enc-step__header p { color: var(--clr-slate); font-size: 1rem; line-height: 1.6; }

/* Fields */
.enc-fields { display: flex; flex-direction: column; gap: 22px; }
.enc-field label {
    display: flex; align-items: center; gap: 9px;
    font-weight: 700; font-size: .88rem; color: var(--clr-navy-mid);
    margin-bottom: 10px;
}
.enc-field label i { color: var(--clr-orange); }
.enc-field input,
.enc-field textarea {
    width: 100%;
    padding: 18px 22px;
    background: #f8fafc;
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-size: .98rem;
    
    color: var(--clr-navy);
    transition: border-color .3s, box-shadow .3s, background .3s;
    resize: none;
}
.enc-field input:focus,
.enc-field textarea:focus {
    outline: none;
    background: var(--clr-white);
    border-color: var(--clr-orange);
    box-shadow: 0 0 0 4px rgba(240,132,44,.12);
}
.enc-char-counter {
    display: block; text-align: right; margin-top: 8px;
    font-size: .84rem; color: var(--clr-slate); font-weight: 600;
}

/* Stars */
.enc-stars { text-align: center; }
.enc-stars__row { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.enc-star {
    background: none; border: none;
    font-size: 3.4rem; color: #e2e8f0;
    cursor: pointer;
    transition: color .22s, transform .28s cubic-bezier(.68,-.55,.265,1.55);
    line-height: 1;
}
.enc-star:hover { transform: scale(1.28); }
.enc-star.lit { color: #fbbf24; }
.enc-star.selected { color: #f59e0b; transform: scale(1.12); }
.enc-stars__hint { font-size: .98rem; color: var(--clr-slate); font-weight: 700; height: 26px; }

/* Pills (destaque options) */
.enc-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.enc-pill {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 22px;
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color .3s, background .3s, transform .3s var(--ease), box-shadow .3s;
    background: var(--clr-white);
}
.enc-pill:hover { border-color: var(--clr-orange); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(240,132,44,.10); }
.enc-pill.selected { border-color: var(--clr-orange); background: #fff8f2; box-shadow: 0 8px 28px rgba(240,132,44,.14); }
.enc-pill__icon {
    width: 46px; height: 46px; min-width: 46px;
    background: #f1f5f9; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; color: var(--clr-orange);
    transition: background .3s, color .3s;
}
.enc-pill.selected .enc-pill__icon { background: var(--clr-orange); color: var(--clr-white); }
.enc-pill strong { font-size: .92rem; font-weight: 700; color: var(--clr-navy); }

/* Success state */
.enc-success {
    display: none; text-align: center; padding: 36px 0;
    animation: stepSlide .75s var(--ease);
}
.enc-success__circle {
    width: 104px; height: 104px;
    background: linear-gradient(135deg, var(--clr-green), #34d399);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.8rem; color: var(--clr-white);
    margin-bottom: 30px;
    box-shadow: 0 18px 48px rgba(16,185,129,.28);
    animation: popIn .65s cubic-bezier(.68,-.55,.265,1.55);
}
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.enc-success h2 { font-size: 2.2rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 12px; }
.enc-success p { color: var(--clr-slate); font-size: 1.05rem; max-width: 420px; margin: 0 auto 36px; line-height: 1.6; }
.enc-success__btn-primary {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--clr-orange); color: var(--clr-white);
    text-decoration: none; padding: 14px 36px;
    border-radius: 100px; font-weight: 800; font-size: .97rem;
    box-shadow: var(--shadow-glow);
    transition: transform .3s, box-shadow .3s;
    margin-right: 14px;
}
.enc-success__btn-primary:hover { transform: translateY(-3px); }
.enc-success__btn-secondary {
    display: inline-flex; align-items: center;
    color: var(--clr-slate); font-weight: 700; font-size: .97rem;
    text-decoration: none; transition: color .3s;
}
.enc-success__btn-secondary:hover { color: var(--clr-navy); }

/* Navigation */
.enc-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 56px; padding-top: 36px;
    border-top: 2px solid var(--clr-border);
}
.enc-nav__btn {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 38px; border-radius: 100px;
    font-size: .97rem; font-weight: 800; 
    cursor: pointer; border: 2px solid transparent;
    transition: all .4s var(--ease);
}
.enc-nav__btn--prev {
    background: transparent; border-color: var(--clr-border); color: var(--clr-slate);
}
.enc-nav__btn--prev:hover:not(:disabled) { border-color: var(--clr-navy); color: var(--navy); }
.enc-nav__btn--prev:disabled { opacity: .3; cursor: not-allowed; }
.enc-nav__btn--next {
    background: var(--clr-navy); color: var(--clr-white);
    box-shadow: 0 12px 36px rgba(15,23,42,.20);
}
.enc-nav__btn--next:hover:not(:disabled) {
    background: var(--clr-orange); box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}
.enc-nav__btn--next:disabled { opacity: .55; cursor: not-allowed; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .enc-survey__grid { grid-template-columns: 1fr; }
    .enc-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
    .enc-sidebar__logo { grid-column: 1 / -1; }
    .enc-sidebar__divider { display: none; }
    .enc-form-panel { padding: 48px 44px; }
}
@media (max-width: 768px) {
    .enc-hero { padding: 120px 20px 110px; min-height: auto; }
    .enc-hero__stats { gap: 24px; }
    .enc-stat__divider { height: 44px; }
    .enc-hero__title { letter-spacing: -1px; }
    .enc-cats__grid { grid-template-columns: 1fr; }
    .enc-cats { padding: 70px 16px 60px; }
    .enc-cat-card { padding: 22px 22px; gap: 16px; }
    .enc-survey { padding: 50px 16px 70px; }
    .enc-form-panel { padding: 36px 22px; }
    .enc-step__header h2 { font-size: 1.8rem; }
    .enc-pills { grid-template-columns: 1fr; }
    .enc-sidebar { grid-template-columns: 1fr; }
    .enc-star { font-size: 2.6rem; }
    .enc-nav__btn { padding: 14px 22px; font-size: .9rem; }
}
