/* ============================================================
   VARADERO Y MECÁNICA NAVAL BENICARLÓ, S.L.
   Hoja de estilos principal
   Paleta náutica mediterránea · Tipografías: Cormorant Garamond + Inter
   ============================================================ */

/* ----------  VARIABLES  ---------- */
:root {
    /* Colores */
    --navy:        #0d2233;   /* azul profundo · secciones oscuras y footer */
    --navy-deep:   #081826;   /* aún más oscuro · overlays */
    --sea:         #1d5b86;   /* azul mar · acento principal / botones */
    --sea-dark:    #15486b;   /* hover de botones */
    --brass:       #b8893f;   /* latón · detalles, eyebrows, números */
    --brass-light: #cda05a;
    --cream:       #f7f5f1;   /* fondo claro cálido */
    --cream-dark:  #ece8e1;
    --ink:         #14202b;   /* texto principal */
    --ink-soft:    #4a5963;   /* texto secundario */
    --line:        #dcd7cd;   /* bordes sutiles */
    --white:       #ffffff;
    --whatsapp:    #25d366;

    /* Tipografía */
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Medidas */
    --container: 1200px;
    --radius: 4px;
    --radius-lg: 10px;
    --shadow: 0 10px 40px rgba(13, 34, 51, 0.10);
    --shadow-lg: 0 24px 70px rgba(13, 34, 51, 0.18);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 80px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; }

::selection { background: var(--brass); color: var(--white); }

/* ----------  UTILIDADES  ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

/* Eyebrow común de secciones */
.section__eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 1rem;
}

.section__title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    color: var(--navy);
    letter-spacing: -0.01em;
}
.section__title em { font-style: italic; color: var(--sea); font-weight: 500; }

.section__lead {
    margin-top: 1.4rem;
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 60ch;
}

.section__header {
    max-width: 720px;
    margin: 0 auto clamp(3rem, 6vw, 4.5rem);
    text-align: center;
}
.section__header .section__lead { margin-left: auto; margin-right: auto; }

/* ----------  ANIMACIÓN REVEAL (solo si hay JS)  ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
}
.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.8rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    cursor: pointer;
    white-space: nowrap;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
    background: var(--sea);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(29, 91, 134, 0.30);
}
.btn--primary:hover { background: var(--sea-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(29, 91, 134, 0.40); }

.btn--ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn--whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.30);
}
.btn--whatsapp:hover { background: #1fbe5a; transform: translateY(-2px); }
.btn--whatsapp svg { transition: none; }
.btn--whatsapp:hover svg { transform: none; }

.btn--full { width: 100%; }

/* ============================================================
   HEADER / NAVEGACIÓN
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Estado al hacer scroll */
.header--scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(13, 34, 51, 0.10);
    height: 68px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 0.7rem; color: var(--white); }
.header--scrolled .logo { color: var(--navy); }
.logo__icon { height: 38px; width: auto; flex-shrink: 0; display: block; }
/* El logo cambia de color blanco (hero) a azul (header con scroll) */
.logo__icon--dark { display: none; }
.header--scrolled .logo__icon--light { display: none; }
.header--scrolled .logo__icon--dark { display: block; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: 'Calibri', 'Carlito', 'Segoe UI', sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
/* En el footer mantenemos el nombre a un tamaño legible */
.logo--footer .logo__name { font-size: 1.35rem; }
.logo__tagline { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }

/* Nav */
.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav__link {
    position: relative;
    padding: 0.5rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    transition: color 0.25s var(--ease);
}
.header--scrolled .nav__link { color: var(--ink-soft); }
.nav__link::after {
    content: '';
    position: absolute;
    left: 0.95rem; right: 0.95rem; bottom: 0.3rem;
    height: 1.5px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--white); }
.header--scrolled .nav__link:hover { color: var(--navy); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link--cta {
    margin-left: 0.6rem;
    background: var(--brass);
    color: var(--white) !important;
    padding: 0.55rem 1.3rem;
}
.nav__link--cta:hover { background: var(--brass-light); }
.nav__link--cta::after { display: none; }

/* Botón menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
}
.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), background 0.3s;
}
.header--scrolled .menu-toggle span { background: var(--navy); }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(8, 24, 38, 0.82) 0%, rgba(8, 24, 38, 0.55) 45%, rgba(8, 24, 38, 0.25) 100%);
}
.hero__content { position: relative; padding-top: var(--header-h); max-width: 780px; }

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.6rem;
}
.hero__eyebrow-line { width: 48px; height: 1px; background: var(--brass); }

.hero__title {
    font-size: clamp(2.8rem, 7vw, 5.4rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 1.5rem;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--brass-light); }

.hero__subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 300;
    line-height: 1.6;
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.4rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.2rem, 2.6vw, 2.1rem);
    padding-top: 2.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-num {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.4rem, 4.2vw, 3.2rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--white);
}
.hero__stat-num small { font-size: 0.42em; font-weight: 500; color: var(--brass-light); margin-left: 0.15em; }
.hero__stat-label { font-size: 0.82rem; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.7); margin-top: 0.5rem; }

.hero__scroll {
    position: absolute;
    bottom: 2rem; right: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,0.6), transparent); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   SOBRE NOSOTROS
   ============================================================ */
.about { padding: clamp(5rem, 10vw, 8rem) 0; }
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
    margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
/* Si la sección de valores está oculta, el texto es el último elemento:
   quitamos el margen inferior para que no quede hueco sobrante. */
.about__grid:last-child { margin-bottom: 0; }
.about__lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.about__body p { color: var(--ink-soft); }
.about__body p + p { margin-top: 1.2rem; }

.values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
.value {
    padding-top: 1.6rem;
    border-top: 2px solid var(--line);
    transition: border-color 0.3s var(--ease);
}
.value:hover { border-color: var(--brass); }
.value__num {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brass);
    margin-bottom: 0.8rem;
}
.value__title { font-size: 1.45rem; color: var(--navy); margin-bottom: 0.6rem; }
.value__desc { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--white); }
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.service {
    padding: 2.4rem 2rem;
    background: var(--cream);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service:hover {
    transform: translateY(-6px);
    background: var(--white);
    border-color: var(--line);
    box-shadow: var(--shadow);
}
.service__icon {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(29, 91, 134, 0.08);
    color: var(--sea);
    margin-bottom: 1.5rem;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.service__icon svg { width: 32px; height: 32px; }
.service:hover .service__icon { background: var(--sea); color: var(--white); }
.service__title { font-size: 1.55rem; color: var(--navy); margin-bottom: 0.8rem; }
.service__desc { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 1.4rem; }
.service__list { display: flex; flex-direction: column; gap: 0.5rem; }
.service__list li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.service__list li::before {
    content: '';
    position: absolute; left: 0; top: 0.55em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brass);
}

/* ============================================================
   INSTALACIONES
   ============================================================ */
.facilities { padding: clamp(5rem, 10vw, 8rem) 0; }
.facilities__layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.facilities__main { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.facilities__main img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.facilities__main figcaption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 2rem 1.6rem 1.4rem;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    color: var(--white);
    background: linear-gradient(transparent, rgba(8, 24, 38, 0.85));
}

.specs__title { font-size: 1.7rem; color: var(--navy); margin-bottom: 1.8rem; }
.spec { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.spec:first-of-type { border-top: 1px solid var(--line); }
.spec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.spec__label { font-weight: 600; color: var(--navy); }
.spec__value { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--sea); white-space: nowrap; }
.spec__desc { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.3rem; }

.facilities__gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
}
.facilities__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.facilities__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.facilities__photo:hover img { transform: scale(1.06); }
.facilities__photo figcaption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1.4rem 1rem 0.9rem;
    font-size: 0.8rem;
    color: var(--white);
    background: linear-gradient(transparent, rgba(8, 24, 38, 0.8));
}

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--navy); }
.gallery .section__title { color: var(--white); }
.gallery .section__title em { color: var(--brass-light); }
.gallery .section__lead { color: rgba(255, 255, 255, 0.7); }

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: clamp(1rem, 2vw, 1.5rem);
}
.gallery__item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item figcaption {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end;
    padding: 1.5rem;
    background: linear-gradient(transparent 55%, rgba(8, 24, 38, 0.85));
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.gallery__item:hover figcaption { opacity: 1; }
.gallery__item figcaption span {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    transform: translateY(10px);
    transition: transform 0.4s var(--ease);
}
.gallery__item:hover figcaption span { transform: none; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--white); }
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2rem);
}
.testimonial {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    background: var(--cream);
    border-radius: var(--radius-lg);
}
.testimonial__quote {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 0.7;
    color: var(--brass);
    opacity: 0.35;
    margin-bottom: 0.5rem;
}
.testimonial__text { font-size: 1.05rem; line-height: 1.6; color: var(--ink); margin-bottom: 1.6rem; font-style: italic; }
.testimonial__author { display: flex; flex-direction: column; }
.testimonial__author strong { color: var(--navy); font-size: 1rem; }
.testimonial__author span { font-size: 0.85rem; color: var(--ink-soft); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { padding: clamp(5rem, 10vw, 8rem) 0; }
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.contact__lead { font-size: 1.1rem; color: var(--ink-soft); margin: 1.4rem 0 2rem; max-width: 46ch; }

.contact__list { display: flex; flex-direction: column; gap: 1.3rem; margin-bottom: 2rem; }
.contact__list li { display: flex; flex-direction: column; gap: 0.2rem; }
.contact__label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.contact__list a, .contact__list span { font-size: 1.05rem; color: var(--navy); }
.contact__list a { transition: color 0.25s var(--ease); }
.contact__list a:hover { color: var(--sea); }

/* Formulario */
.contact__form {
    padding: clamp(1.8rem, 4vw, 2.8rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form__field { margin-bottom: 1.3rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form__field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.form__field input, .form__field select, .form__field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--ink);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
    outline: none;
    border-color: var(--sea);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(29, 91, 134, 0.12);
}
.form__field textarea { resize: vertical; min-height: 120px; }
.form__field input::placeholder, .form__field textarea::placeholder { color: #9aa6ad; }

.form__check { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.6rem; font-size: 0.85rem; color: var(--ink-soft); }
.form__check input { margin-top: 0.25rem; accent-color: var(--sea); flex-shrink: 0; }
.form__check a { color: var(--sea); text-decoration: underline; }

/* Estado de envío */
.form__status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); font-size: 0.9rem; display: none; }
.form__status.is-success { display: block; background: rgba(37, 211, 102, 0.12); color: #157a3a; border: 1px solid rgba(37, 211, 102, 0.4); }
.form__status.is-error { display: block; background: rgba(200, 40, 40, 0.10); color: #b22; border: 1px solid rgba(200, 40, 40, 0.3); }

/* Mapa */
.contact__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.contact__map iframe { width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: clamp(2rem, 4vw, 3rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.logo--footer { color: var(--white); margin-bottom: 1.2rem; }
.footer__desc { font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.5rem; }
.footer__social { display: flex; gap: 0.8rem; }
.footer__social a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer__social a:hover { background: var(--brass); transform: translateY(-3px); }

.footer__col h4 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 1.3rem; }
.footer__col a { display: block; font-size: 0.92rem; padding: 0.35rem 0; color: rgba(255, 255, 255, 0.7); transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--brass-light); }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    font-size: 0.85rem;
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { transition: color 0.25s var(--ease); }
.footer__legal a:hover { color: var(--brass-light); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 90;
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s var(--ease);
    animation: floatPulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes floatPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0.08); }
}

/* ============================================================
   HONEYPOT (campo oculto anti-spam)
   ============================================================ */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   RECUADRO DE CONSENTIMIENTO DEL MAPA
   ============================================================ */
.contact__map { position: relative; min-height: 220px; }
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    padding: 2.5rem 1.5rem;
    min-height: 220px;
    background: var(--cream-dark);
    color: var(--ink-soft);
    line-height: 1.6; /* restaura la altura de línea (el contenedor .contact__map la pone a 0) */
}
.map-placeholder svg { color: var(--sea); }
.map-placeholder p { max-width: 42ch; font-size: 0.95rem; }

/* ============================================================
   BANNER DE COOKIES
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.45s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: 1.2rem clamp(20px, 5vw, 48px);
}
.cookie-banner__text { font-size: 0.9rem; line-height: 1.5; }
.cookie-banner__text a { color: var(--brass-light); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.7rem; flex-shrink: 0; }
.cookie-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.25s var(--ease);
    white-space: nowrap;
}
.cookie-btn--accept { background: var(--brass); color: var(--white); }
.cookie-btn--accept:hover { background: var(--brass-light); }
.cookie-btn--reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.cookie-btn--reject:hover { border-color: var(--white); color: var(--white); }

@media (max-width: 680px) {
    .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 1rem; text-align: center; }
    .cookie-banner__actions { justify-content: center; }
    .cookie-btn { flex: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero__scroll { display: none; } /* en pantallas medianas/pequeñas se oculta para no solaparse */
    .values { grid-template-columns: repeat(2, 1fr); }
    .facilities__layout { grid-template-columns: 1fr; }
    .facilities__gallery { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    /* Menú móvil */
    .menu-toggle { display: flex; }
    .nav {
        position: fixed;
        top: 0; right: 0;
        width: min(320px, 82vw);
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 0.5rem;
        padding: 2rem;
        background: var(--navy);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
    }
    .nav.is-open { transform: translateX(0); }
    .nav__link { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; padding: 0.9rem 1rem; }
    .header--scrolled .nav__link { color: rgba(255, 255, 255, 0.9); }
    .nav__link::after { display: none; }
    .nav__link--cta { margin-left: 0; text-align: center; margin-top: 0.6rem; }

    .about__grid { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; }
    .testimonials__grid { grid-template-columns: 1fr; }
    .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}

@media (max-width: 560px) {
    .hero { min-height: 92vh; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
    .hero__stats { gap: 1.5rem; }
    .values { grid-template-columns: 1fr; }
    .services__grid { grid-template-columns: 1fr; }
    .facilities__gallery { grid-template-columns: 1fr; }
    .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .gallery__item--tall { grid-row: span 1; }
    .form__row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
}

/* ============================================================
   PÁGINAS LEGALES
   ============================================================ */
.legal-header {
    background: var(--navy);
    height: var(--header-h);
    display: flex;
    align-items: center;
}
.legal-header .logo { color: var(--white); }
.legal-header__back {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.25s var(--ease);
}
.legal-header__back:hover { color: var(--brass-light); }

.legal-hero {
    background: var(--navy-deep);
    color: var(--white);
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal-hero p { margin-top: 0.8rem; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

.legal-content { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal-content .container { max-width: 820px; }
.legal-content h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--navy);
    margin: 2.5rem 0 1rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.2rem; color: var(--sea); margin: 1.6rem 0 0.6rem; }
.legal-content p { color: var(--ink-soft); margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1rem 1.2rem; list-style: disc; }
.legal-content ul li { color: var(--ink-soft); margin-bottom: 0.5rem; padding-left: 0.3rem; }
.legal-content a { color: var(--sea); text-decoration: underline; }
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0 1.6rem;
    font-size: 0.92rem;
}
.legal-content th, .legal-content td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
    vertical-align: top;
    color: var(--ink-soft);
}
.legal-content th { background: var(--cream-dark); color: var(--navy); font-weight: 600; }
.legal-content .legal-updated { font-size: 0.85rem; color: var(--ink-soft); margin-top: 2.5rem; font-style: italic; }
.legal-data {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.8rem;
    margin: 1.2rem 0 1.6rem;
}
.legal-data p { margin-bottom: 0.4rem; }
/* Marca los datos pendientes de completar por el cliente */
.legal-todo {
    background: #fff4d6;
    color: #8a6400;
    padding: 0.05em 0.4em;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.9em;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
