/* ═══════════════════════════════════════════════════
   VuelaVuela — home.css v2 (paleta clara)
═══════════════════════════════════════════════════ */

/* ── HERO ── */
.vv-hero {
    position: relative; width: 100%; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden; background: var(--vv-bg-dark);
}
.vv-hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.04); transition: transform 8s ease-out; will-change: transform;
}
.vv-hero:hover .vv-hero__bg { transform: scale(1); }
.vv-hero__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(28,25,22,.96) 0%, rgba(28,25,22,.45) 50%, rgba(28,25,22,.1) 100%);
}
.vv-hero__content { position: relative; z-index: 2; width: 100%; padding: 0 0 4rem; }
.vv-hero__inner { max-width: var(--vv-max-w); margin: 0 auto; padding: 0 var(--vv-gutter); }
.vv-hero__eyebrow { margin-bottom: 1.5rem; display: block; color: rgba(255,255,255,.35); }
.vv-hero__title {
    font-family: var(--vv-font-sans); font-size: 10rem;
    font-weight: 700; text-transform: uppercase; line-height: .88;
    letter-spacing: -.02em; color: #fff; margin-bottom: 3rem;
}
.vv-hero__title .vv-serif { color: rgba(255,255,255,.7); font-size: .82em; }
.vv-hero__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.vv-hero__sub { font-size: .9rem; color: rgba(255,255,255,.45); max-width: 36ch; line-height: 1.7; }
.vv-hero__actions { display: flex; gap: .8rem; flex-shrink: 0; }
.vv-hero__scroll {
    position: absolute; bottom: 2.5rem; right: var(--vv-gutter); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.vv-hero__scroll .vv-label { font-size: .55rem; writing-mode: vertical-rl; color: rgba(255,255,255,.2); }
.vv-hero__scroll-line {
    display: block; width: 1px; height: 3rem;
    background: linear-gradient(to bottom, rgba(255,255,255,.25), transparent);
    animation: vvScrollLine 2s ease-in-out infinite;
}
@keyframes vvScrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── TICKER ── */
.vv-ticker {
    background: var(--vv-bg2); border-top: 1px solid var(--vv-rule);
    border-bottom: 1px solid var(--vv-rule); padding: .85rem 0; overflow: hidden;
}
.vv-ticker__track {
    display: flex; gap: 3.5rem;
    animation: vvTick 26s linear infinite; white-space: nowrap; width: max-content;
}
@keyframes vvTick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.vv-ticker__item {
    font-family: var(--vv-font-sans); font-size: .7rem; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase; color: var(--vv-gray-2);
}
.vv-ticker__sep { color: var(--vv-orange); opacity: .5; }

/* ── PORTFOLIO ── */
.vv-portfolio { background: var(--vv-bg); padding: 5rem 0 0; }
.vv-portfolio__header {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.vv-portfolio__filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.vv-filter {
    font-family: var(--vv-font-sans); font-size: .65rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--vv-gray-2); background: transparent;
    border: 1px solid var(--vv-rule); padding: .4rem .9rem;
    cursor: pointer; transition: all .2s ease;
}
.vv-filter:hover { color: var(--vv-ink); border-color: var(--vv-ink); }
.vv-filter.is-active { color: #fff; border-color: var(--vv-accent); background: var(--vv-accent); }

/* ── GRILLA ASIMÉTRICA ── */
.vv-grid {
    display: grid; grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 220px; gap: 3px; background: var(--vv-rule);
}
.vv-card { position: relative; overflow: hidden; background: var(--vv-bg-card); }
.vv-card--wide   { grid-column: span 7; grid-row: span 2; }
.vv-card--square { grid-column: span 5; grid-row: span 1; }
.vv-card--tall   { grid-column: span 5; grid-row: span 2; }
.vv-card--wide:nth-child(6n+6) { grid-column: span 12; grid-row: span 1; }

.vv-card__link { display: block; width: 100%; height: 100%; position: relative; }
.vv-card__media { width: 100%; height: 100%; overflow: hidden; }
.vv-card__img {
    width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
    transition: transform .7s var(--vv-ease), filter .5s ease;
    filter: brightness(.9) saturate(.85); will-change: transform;
}
.vv-card:hover .vv-card__img { transform: scale(1.06); filter: brightness(1) saturate(1); }

.vv-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(28,25,22,.88) 0%, rgba(28,25,22,.3) 45%, transparent 70%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.8rem 2rem; opacity: 0; transition: opacity .35s ease;
}
.vv-card:hover .vv-card__overlay { opacity: 1; }
@media (hover: none) { .vv-card__overlay { opacity: 1; } }

.vv-card__info { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.vv-card__tipo { margin-bottom: .4rem; font-size: .58rem; color: rgba(255,255,255,.5); }
.vv-card__title {
    font-family: var(--vv-font-sans); font-size: clamp(.95rem, 1.5vw, 1.3rem);
    font-weight: 600; color: #fff; line-height: 1.2; margin-bottom: .3rem;
    text-transform: uppercase; letter-spacing: .02em;
}
.vv-card__meta { font-size: .72rem; color: rgba(255,255,255,.4); letter-spacing: .06em; }
.vv-card__arrow {
    position: absolute; top: 1.5rem; right: 1.5rem;
    color: rgba(255,255,255,.6); transition: transform .25s ease, color .25s ease;
}
.vv-card:hover .vv-card__arrow { transform: translate(3px,-3px); color: #fff; }
.vv-card.is-hidden { display: none; }

/* ── PILARES (sección oscura) ── */
.vv-pilares { background: var(--vv-bg-dark); border-top: 1px solid rgba(255,255,255,.06); }
.vv-pilares__head { margin-bottom: 3.5rem; }
.vv-pilares__head .vv-label { color: rgba(255,255,255,.2); }
.vv-pilares__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,.06); }
.vv-pilar {
    background: var(--vv-bg-dark); padding: 4rem 3rem 4.5rem;
    position: relative; overflow: hidden; transition: background .3s ease;
}
.vv-pilar:hover { background: #252119; }
.vv-pilar::before {
    content: ''; position: absolute; top: 0; left: 3rem; width: 2rem; height: 3px;
}
.vv-pilar:nth-child(1)::before { background: var(--vv-yellow); }
.vv-pilar:nth-child(2)::before { background: var(--vv-orange); }
.vv-pilar:nth-child(3)::before { background: var(--vv-teal); }
.vv-pilar__num {
    font-family: var(--vv-font-sans); font-size: .6rem; font-weight: 600;
    letter-spacing: .26em; text-transform: uppercase;
    color: rgba(255,255,255,.15); margin-bottom: 2.5rem; display: block;
}
.vv-pilar__title { margin-bottom: 1rem; color: #fff; font-size: clamp(2rem, 3vw, 3.5rem); }
.vv-pilar__desc { font-size: .85rem; line-height: 1.85; color: rgba(255,255,255,.3); max-width: 24ch; }
.vv-pilar__ghost {
    position: absolute; bottom: -2rem; right: 2rem;
    font-family: var(--vv-font-sans); font-size: 8rem; font-weight: 700; font-style: italic;
    color: rgba(255,255,255,.03); line-height: 1; pointer-events: none; user-select: none;
}

/* ── ABOUT (sección clara) ── */
.vv-about { background: var(--vv-bg3); border-top: 1px solid var(--vv-rule); }
.vv-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.vv-about__copy .vv-display-lg { color: var(--vv-ink); margin-bottom: 1.5rem; }
.vv-about__copy .vv-body { margin-bottom: 2.5rem; }
.vv-about__img-wrap { width: 100%; aspect-ratio: 4/5; overflow: hidden; }
.vv-about__photo {
    width: 100%; height: 100%; object-fit: cover;
    filter: saturate(.85); transition: filter .5s;
}
.vv-about__img:hover .vv-about__photo { filter: saturate(1); }

/* ── CONTACTO (sección clara) ── */
.vv-contact { background: var(--vv-bg); border-top: 1px solid var(--vv-rule); }
.vv-contact__head { margin-bottom: 4rem; }
.vv-contact__head .vv-display-lg { color: var(--vv-ink); }
.vv-contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.vv-contact__data { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.5rem; }
.vv-contact__row { display: flex; align-items: center; gap: .7rem; font-size: .85rem; color: var(--vv-gray); }
.vv-contact__dot { width: .35rem; height: .35rem; background: var(--vv-orange); border-radius: 50%; flex-shrink: 0; }

/* Formulario */
.vv-form { background: var(--vv-bg3); border: 1.5px solid var(--vv-rule); padding: 2.8rem 2.5rem; }
.vv-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.vv-form__group { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .8rem; }
.vv-form__label {
    font-family: var(--vv-font-sans); font-size: .58rem; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase; color: var(--vv-gray-2);
}
.vv-form__input {
    background: var(--vv-bg); border: 1.5px solid var(--vv-rule);
    color: var(--vv-ink); font-family: var(--vv-font-sans);
    font-size: .88rem; font-weight: 300;
    padding: .72rem 1rem; outline: none; width: 100%;
    transition: border-color .2s ease; appearance: none; border-radius: 0;
}
.vv-form__input::placeholder { color: var(--vv-gray-2); }
.vv-form__input:focus { border-color: var(--vv-orange); background: var(--vv-bg3); }
.vv-form__select {
    cursor: pointer;
    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='%239a9590' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.vv-form__select option { background: var(--vv-bg3); }
.vv-form__textarea { resize: vertical; min-height: 100px; }
.vv-form__submit { width: 100%; justify-content: center; margin-top: .4rem; padding: .9rem; }
.vv-form__note { font-size: .68rem; color: var(--vv-gray-2); text-align: center; margin-top: .7rem; }

/* CF7 override */
.vv-form .wpcf7-form p { margin: 0; }
.vv-form .wpcf7-response-output { margin: 1rem 0 0; font-size: .78rem; border: none; padding: .6rem 0; }

/* Responsive */
@media (max-width: 960px) {
    .vv-hero__title { font-size: clamp(3.5rem, 14vw, 7rem); }
    .vv-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
    .vv-card--wide, .vv-card--square, .vv-card--tall,
    .vv-card:nth-child(6n+1), .vv-card:nth-child(6n+2), .vv-card:nth-child(6n+3),
    .vv-card:nth-child(6n+4), .vv-card:nth-child(6n+5), .vv-card:nth-child(6n+6) {
        grid-column: span 1; grid-row: span 1;
    }
    .vv-card:first-child { grid-column: span 2; }
    .vv-pilares__grid { grid-template-columns: 1fr; }
    .vv-about__grid, .vv-contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .vv-about__img-wrap { aspect-ratio: 16/9; }
    .vv-hero__foot { flex-direction: column; align-items: flex-start; }
    .vv-hero__scroll, .vv-portfolio__header { flex-direction: column; align-items: flex-start; }
    .vv-form__row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .vv-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .vv-card:first-child { grid-column: span 1; }
}

/* ── fix hero title cross-browser ── */
@media (max-width: 1400px) { .vv-hero__title { font-size: 8rem; } }
@media (max-width: 1100px) { .vv-hero__title { font-size: 6rem; } }
@media (max-width: 860px)  { .vv-hero__title { font-size: 4.5rem; } }
@media (max-width: 600px)  { .vv-hero__title { font-size: 3.2rem; } }
@media (max-width: 400px)  { .vv-hero__title { font-size: 2.6rem; } }
