/*
Theme Name: Autocaravanas VT
Theme URI: https://www.autocaravanasvt.com
Author: Autocaravanas VT
Description: Tema moderno y rápido para el alquiler de autocaravanas. Multidioma (ES, CA, EN, FR) con Polylang y reservas con el plugin VT Reservas.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: vt-autocaravanas
*/

/* Space Grotesk (SIL OFL) alojada en el propio tema: sin Google Fonts */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/space-grotesk-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/space-grotesk-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/space-grotesk-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }


:root {
  --ink: #16243F;
  --teal: #16243F;
  --teal-d: #0f1a2e;
  --sun: #F2B630;
  --sand: #EEF1F6;
  --line: #dde3ee;
  --muted: #4A5670;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(22, 36, 63, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Space Grotesk", Arial, sans-serif; font-size: 16px; color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.vt-container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.vt-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.vt-skip:focus { left: 8px; }
.vt-center { text-align: center; }
.vt-mt { margin-top: 1.6rem; }
.vt-hp { position: absolute !important; left: -9999px !important; height: 0; opacity: 0; }

/* Botones */
.vt-btn { display: inline-block; padding: 15px 26px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .12s, filter .15s, background .15s; cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.2; }
.vt-btn:hover { transform: translateY(-2px); }
.vt-btn-sun { background: var(--sun); color: var(--teal); font-weight: 700; }
.vt-btn-sun:hover { filter: brightness(1.06); }
.vt-btn-teal { background: var(--teal); color: #fff; }
.vt-btn-teal:hover { background: var(--teal-d); }
.vt-btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }
.vt-btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.vt-btn-sm { padding: 10px 18px; font-size: .95rem; }

/* Cabecera */
.vt-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.vt-header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.vt-logo img { height: 44px; width: auto; }
.vt-nav { display: flex; align-items: center; gap: 4px; }
.vt-nav > a:not(.vt-btn) { text-decoration: none; color: var(--ink); font-weight: 600; padding: 10px 12px; border-radius: 10px; font-size: .95rem; }
.vt-nav > a:not(.vt-btn):hover, .vt-nav > a[aria-current] { background: var(--sand); color: var(--teal-d); }
.vt-lang { display: flex; gap: 4px; margin: 0 8px; }
.vt-lang a { display: inline-flex; align-items: center; padding: 6px; border-radius: 10px; border: 2px solid transparent; opacity: .75; transition: opacity .15s, transform .12s; }
.vt-lang a:hover { opacity: 1; transform: translateY(-1px); }
.vt-lang a.is-current { border-color: var(--sun); opacity: 1; background: var(--sand); }
.vt-flag { display: block; width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(22, 36, 63, .18); }
.vt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vt-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; position: relative; }
.vt-burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; }
.vt-burger span:nth-child(1) { top: 15px; } .vt-burger span:nth-child(2) { top: 21px; } .vt-burger span:nth-child(3) { top: 27px; }
@media (max-width: 980px) {
  .vt-burger { display: block; }
  .vt-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 2px; }
  .vt-nav.is-open { display: flex; }
  .vt-nav .vt-btn { text-align: center; margin-top: 8px; }
  .vt-lang { margin: 8px 0; }
}

/* Hero */
.vt-hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: center; color: #fff; background: #16243F var(--hero) center / cover no-repeat; }
.vt-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(22, 36, 63, .92) 0%, rgba(22, 36, 63, .6) 55%, rgba(22, 36, 63, .15) 100%); }
.vt-hero-inner { position: relative; padding: 70px 0; max-width: 1180px; }
.vt-hero h1 { max-width: 15ch; }
.vt-kicker { display: inline-block; color: var(--sun); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); padding: 6px 14px; border-radius: 99px; font-weight: 600; font-size: .9rem; margin-bottom: 18px; }
.vt-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 56ch; opacity: .96; }
.vt-lead-dark { font-size: 1.15rem; color: var(--muted); }
.vt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Ventajas */
.vt-usps { background: var(--teal-d); color: #fff; }
.vt-usps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 34px 0; }
.vt-usp h3 { font-size: 1.05rem; margin-bottom: 4px; }
.vt-usp p { margin: 0; font-size: .92rem; opacity: .85; }
.vt-usp-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sun); color: var(--teal); font-weight: 700; margin-bottom: 10px; }
@media (max-width: 900px) { .vt-usps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .vt-usps-grid { grid-template-columns: 1fr; } }

/* Secciones */
.vt-section { padding: clamp(48px, 7vw, 88px) 0; }
.vt-soft { background: var(--sand); }
.vt-head { text-align: center; max-width: 60ch; margin: 0 auto 36px; }
.vt-head p { color: var(--muted); font-size: 1.08rem; }
.vt-pagehead { background: var(--teal); color: #fff; padding: clamp(44px, 6vw, 76px) 0; }
.vt-pagehead h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .3em; }
.vt-pagehead p { max-width: 62ch; margin: 0; font-size: 1.1rem; opacity: .92; }
.vt-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.vt-split-top { align-items: start; }
@media (max-width: 900px) { .vt-split { grid-template-columns: 1fr; } }

/* Galería */
.vt-gallery { display: grid; gap: 12px; }
.vt-gallery-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.vt-gallery-3 .vt-shot:first-child { grid-row: 1 / 3; }
.vt-gallery-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .vt-gallery-4 { grid-template-columns: 1fr 1fr; } }
.vt-shot { display: block; overflow: hidden; border-radius: 16px; background: var(--sand); }
.vt-shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .35s; }
.vt-gallery-3 .vt-shot:first-child img { aspect-ratio: auto; min-height: 320px; }
.vt-shot:hover img { transform: scale(1.04); }
.vt-plan img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.vt-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 26, 46, .94); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.vt-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* Tarjetas y listas */
.vt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.vt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.vt-soft .vt-card { border-color: transparent; }
.vt-card h3 { color: var(--teal-d); }
.vt-checks { list-style: none; padding: 0; margin: 0; }
.vt-checks li { position: relative; padding: 6px 0 6px 28px; }
.vt-checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.4l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.vt-cols { columns: 2; column-gap: 32px; }
@media (max-width: 700px) { .vt-cols { columns: 1; } }
.vt-specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.vt-specs dt { color: var(--muted); }
.vt-specs dd { margin: 0; font-weight: 700; }

/* Pasos */
.vt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .vt-steps { grid-template-columns: 1fr; } }
.vt-step { background: var(--sand); border-radius: var(--radius); padding: 28px; }
.vt-step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--teal); color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.vt-step p { color: var(--muted); margin: 0; }

/* Banda final */
.vt-cta-band { background: var(--teal); color: #fff; text-align: center; padding: clamp(48px, 7vw, 80px) 0; }
.vt-cta-band p { opacity: .92; font-size: 1.1rem; margin-bottom: 24px; }

/* Formularios y avisos */
.vt-form label { display: block; margin-bottom: 14px; }
.vt-form label > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.vt-form input[type=text], .vt-form input[type=email], .vt-form input[type=tel], .vt-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #b9c2d3; border-radius: 10px; font: inherit; background: #fff; }
.vt-form input:focus, .vt-form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.vt-form label.vt-check { display: flex; gap: 10px; align-items: flex-start; }
.vt-form label.vt-check span { font-weight: 400; margin: 0; }
.vt-alert { background: #fdecec; color: #8a1c1c; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.vt-alert-ok { background: #e3f4ea; color: #14532d; }
.vt-prose { max-width: 820px; }

/* Pie */
.vt-footer { background: #0f1a2e; color: #cfd6e4; padding-top: 54px; }
.vt-footer a { color: #fff; text-decoration: none; }
.vt-footer a:hover { text-decoration: underline; }
.vt-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.vt-footer ul { list-style: none; margin: 0; padding: 0; }
.vt-footer li { padding: 3px 0; }
.vt-footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 32px; }
.vt-footer-logo { margin-bottom: 14px; }
.vt-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding: 18px 0 26px; font-size: .88rem; opacity: .8; }
@media (max-width: 860px) { .vt-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .vt-footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Logotipo (versión texto de la marca) y variantes */
.vt-logo { display: inline-flex; align-items: center; text-decoration: none; }
.vt-logo img { height: 40px; width: auto; }
.vt-wordmark { font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: var(--teal); white-space: nowrap; }
.vt-wordmark b { color: var(--sun); font-weight: 700; margin-left: .25em; }
.vt-footer .vt-wordmark { color: #fff; font-size: 1.5rem; }
.vt-logo-icon { display: none; }
@media (max-width: 560px) { .vt-logo-full { display: none; } .vt-logo-icon { display: inline-flex; } }
.vt-icon-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--teal); color: var(--sun); font-weight: 700; font-size: .95rem; }
/* Secciones alternas azul ruta / gris niebla */
.vt-dark { background: var(--teal); color: #fff; }
.vt-dark .vt-head p { color: #cfd6e4; }
.vt-horizon { background: linear-gradient(rgba(22,36,63,.78), rgba(22,36,63,.78)), url('assets/img/horizonte.jpg') center / cover; color: #fff; }
.vt-cta-band { background: linear-gradient(rgba(22,36,63,.82), rgba(22,36,63,.82)), url('assets/img/horizonte.jpg') center / cover; }
.vt-pagehead { border-bottom: 4px solid var(--sun); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Tablas dentro de páginas de texto */
.vt-prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.vt-prose h3 { margin-top: 1.4em; color: var(--teal); }
.vt-prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; }
.vt-prose th, .vt-prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.vt-prose thead th { background: var(--sand); }
@media (max-width: 640px) { .vt-prose table { display: block; overflow-x: auto; } }

/* Aviso de cookies */
.vt-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 760px; margin-inline: auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(22, 36, 63, .25); padding: 18px 20px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.vt-cookies[hidden] { display: none; }
.vt-cookies p { margin: 0; flex: 1 1 320px; font-size: .92rem; }
.vt-cookies-btns { display: flex; gap: 10px; flex: 0 0 auto; }
.vt-cookies .vt-btn { padding: 11px 20px; min-width: 110px; text-align: center; }
.vt-btn-line { border-color: var(--teal); color: var(--teal); background: #fff; }
.vt-btn-line:hover { background: var(--sand); }
.vt-mt-s { margin-top: 1.1rem; }
.cf-turnstile { margin: 0 0 14px; }

/* Botones flotantes WhatsApp / Instagram */
.vt-float { position: fixed; right: 16px; bottom: 16px; z-index: 250; display: flex; flex-direction: column; gap: 10px; }
.vt-float a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; box-shadow: 0 6px 18px rgba(22, 36, 63, .3); transition: transform .12s; }
.vt-float a:hover { transform: translateY(-2px) scale(1.04); }
.vt-float .vt-ico { width: 28px; height: 28px; }
.vt-float-wa { background: #25D366; }
.vt-float-ig { width: 44px !important; height: 44px !important; align-self: center; background: radial-gradient(circle at 30% 107%, #fdf497 0, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.vt-float-ig .vt-ico { width: 24px !important; height: 24px !important; }
.vt-social { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.vt-social a { display: inline-flex; align-items: center; gap: 8px; }
.vt-social .vt-ico { width: 22px; height: 22px; }
.vt-gremcar { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: .88rem; max-width: 34ch; }
.vt-gremcar img { flex: 0 0 auto; height: 57px; width: auto; }
.vt-gremcar-band { background: var(--teal); color: #fff; padding: 28px 0; }
.vt-gremcar-in { display: flex; align-items: center; justify-content: center; gap: 22px; text-align: left; }
.vt-gremcar-in img { height: 76px; width: auto; }
.vt-gremcar-in p { margin: 0; font-weight: 700; font-size: 1.1rem; max-width: 36ch; }
@media (max-width: 560px) { .vt-gremcar-in { flex-direction: column; text-align: center; } .vt-float a { width: 48px; height: 48px; } }

/* FAQ landing */
.vt-faq{background:#fff;border:1px solid #dfe4ee;border-radius:12px;padding:.9rem 1.1rem;margin:0 0 .6rem}
.vt-faq summary{cursor:pointer;font-weight:700;color:var(--vt-blue,#16243F)}
.vt-faq p{margin:.6rem 0 0;color:#4A5670}
.vt-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}

/* Fotos de camas */
.vt-gallery-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:640px){.vt-gallery-2{grid-template-columns:1fr}}
.vt-fig{margin:0}
.vt-fig figcaption{margin-top:.5rem;font-size:.92rem;color:#4A5670}
.vt-gallery-2 .vt-shot img{aspect-ratio:4/3.4}
