/* Paleta: lo que era negro (#313131 / #242424) ahora es blanco,
   y lo que era naranja (#F57500) ahora es el negro original (#313131). */
:root {
    --bg: #ffffff;
    --bg-soft: #f0f0f0;
    --accent: #313131;
    --accent-soft: #3c3c3c;
    --text: #313131;
    --text-muted: rgba(49, 49, 49, 0.45);
    --line: rgba(49, 49, 49, 0.12);
    --header-h: 80px;
    --col-w: 80px;
    --gap: 6px;
    --ease: cubic-bezier(0.7, 0, 0.3, 1);
    --font-title: "Oswald", sans-serif;
    --font-body: "Mukta Vaani", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 13px;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.loader-panel {
    position: absolute;
    inset: 0;
    transition: transform 0.9s var(--ease);
}
.loader-panel--main { z-index: 2; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.loader-panel--accent { z-index: 1; background: var(--accent); transition-delay: 0.25s; }
.is-loaded .loader-panel { transform: translateY(-100%); }

.loader-text { position: relative; transition: opacity 0.4s, transform 0.5s var(--ease); }
.is-loaded .loader-text { opacity: 0; transform: translateY(-120px); }
.loader-count {
    position: absolute;
    right: -40px;
    top: -42px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 64px;
    line-height: 1;
    color: var(--accent);
    opacity: 0.18;
}
.loader-word {
    position: relative;
    display: block;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--text);
}

/* ---------- entrada tras el loader ---------- */
.main-header, .header-accent { transform: translateY(-100%); transition: transform 0.8s var(--ease) 0.6s; }
.left-col, .share-btn { transform: translateX(-100%); transition: transform 0.8s var(--ease) 0.8s; }
.right-col, .hero-progress { transform: translateX(100%); transition: transform 0.8s var(--ease) 0.8s; }
.is-loaded .main-header, .is-loaded .header-accent,
.is-loaded .left-col, .is-loaded .share-btn,
.is-loaded .right-col, .is-loaded .hero-progress { transform: none; }

.hero-carousel .swiper-slide { opacity: 0; transform: translateY(60px); transition: opacity 0.8s ease, transform 1s var(--ease); }
.is-loaded .hero-carousel .swiper-slide { opacity: 1; transform: none; }
.is-loaded .hero-carousel .swiper-slide:nth-child(3n+1) { transition-delay: 0.9s; }
.is-loaded .hero-carousel .swiper-slide:nth-child(3n+2) { transition-delay: 1.05s; }
.is-loaded .hero-carousel .swiper-slide:nth-child(3n+3) { transition-delay: 1.2s; }
.is-ready .hero-carousel .swiper-slide { transition: none; }

/* ---------- header ---------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    z-index: 20;
    height: var(--header-h);
    background: var(--bg);
    display: flex;
    align-items: center;
}
.logo { display: flex; margin-left: 30px; }
.logo img { display: block; height: 26px; width: auto; }
.header-contact {
    margin-left: auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 50px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    transition: opacity 0.2s;
}
.header-contact:hover { opacity: 0.55; }

/* datos de contacto, como en el original: línea + "01. Llamar" / "02. Escribir" */
.header-contacts {
    position: relative;
    margin-left: auto;
    padding: 0 50px 0 110px;
    display: flex;
    gap: 50px;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    white-space: nowrap;
}
.header-contacts::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 70px;
    height: 1px;
    background: var(--line);
}
.header-contacts li > span { color: var(--text-muted); }
.header-contacts a {
    margin-left: 8px;
    color: var(--accent);
    font-weight: 600;
    transition: opacity 0.2s;
}
.header-contacts a:hover { opacity: 0.55; }
/* en escritorio los datos van a la vista; el botón con popup solo aparece si no caben */
.header-contact-wrap {
    position: relative;
    display: none;
    align-items: center;
    height: 100%;
    margin-left: auto;
    padding-right: 40px;
}
.header-contact-wrap .header-contact { margin-left: 0; padding: 0 16px 0 0; }
.contact-more {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 9px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.contact-more i { transition: transform 0.3s ease; }
.contact-more:hover,
.contact-open .contact-more { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact-open .contact-more i { transform: rotate(45deg); }

.header-contacts { align-items: center; }
.header-contacts li:last-child { margin-left: -20px; }

/* popup con toda la información: oficinas, galería y contacto */
.contact-pop {
    position: fixed;
    top: var(--header-h);
    right: 30%;
    z-index: 25;
    width: 720px;
    max-width: calc(70% - 30px);
    padding: 40px 40px 36px;
    background: var(--accent);
    color: #fff;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.contact-pop::before {
    content: "";
    position: absolute;
    top: 0;
    left: 40px;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
}
.contact-open .contact-pop { opacity: 1; visibility: visible; transform: none; }
.contact-pop h3 {
    margin-bottom: 14px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.contact-pop p { font-size: 13px; line-height: 1.75; color: rgba(255, 255, 255, 0.85); }
.contact-pop p a { color: #fff; font-weight: 600; transition: opacity 0.2s; }
.contact-pop p a:hover { opacity: 0.6; }
.contact-pop_note { margin-top: 12px; }
.contact-pop_note span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.contact-pop_map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}
.contact-pop_map i { transition: transform 0.2s ease; }
.contact-pop_map:hover i { transform: translateX(4px); }
.contact-pop_close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: color 0.2s;
}
.contact-pop_close:hover { color: #fff; }

@media (max-width: 1440px) {
    .header-contacts { padding-left: 80px; gap: 30px; letter-spacing: 2px; }
    .header-contacts::before { width: 50px; }
}
@media (max-width: 1240px) {
    .header-contacts { display: none; }
    .header-contact-wrap { display: flex; }
}

/* bloque de color arriba a la derecha (+ su prolongación en la columna derecha) */
.header-accent {
    position: fixed;
    top: 0;
    right: 0;
    width: 30%;
    height: var(--header-h);
    z-index: 20;
    background: var(--accent);
}
.header-accent::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -150px;
    width: var(--col-w);
    height: 150px;
    background: var(--accent);
}
.page-subtitle {
    position: absolute;
    top: 20px;
    right: var(--col-w);
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #fff;
}
.page-subtitle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -80px;
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}
.page-subtitle span {
    display: block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.06);
}

/* ---------- columna izquierda ---------- */
.left-col {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 150px;
    width: var(--col-w);
    z-index: 22;
    background: var(--bg);
}
.left-col::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 70px;
    background: var(--line);
}
.left-col::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 144px;
    width: 60px;
    height: 8px;
    margin-left: -30px;
    background: var(--accent);
}
.left-col_dot {
    position: absolute;
    top: 70px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--accent);
}
.left-col_social {
    position: absolute;
    left: 50%;
    bottom: 190px;
    width: 40px;
    margin-left: -20px;
}
.left-col_social li {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-top: 0;
}
.left-col_social li:first-child { border-top: 1px solid var(--line); }
.left-col_social li::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: var(--accent);
    transition: width 0.2s ease-out;
}
.left-col_social li:hover::before { width: 100%; }
.left-col_social a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 12px;
    color: #8a8a8a;
    transition: color 0.2s ease-out;
}
.left-col_social li:hover a { color: #fff; }

.share-btn {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 31;
    width: var(--col-w);
    height: 150px;
    background: var(--accent);
    color: #fff;
    overflow: visible;
}
.share-btn::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    width: 1px;
    height: 90px;
    background: var(--line);
}
.share-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 100%;
    background: var(--accent-soft);
    transition: top 0.2s ease-out;
}
.share-btn:hover::after { top: 50%; }
.share-btn i {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 50%;
    margin-left: -15px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 11px;
    transition: transform 0.2s ease-in-out;
}
.share-btn:hover i { transform: rotate(90deg); }
.share-open .share-btn::after { top: 50%; }
.share-open .share-btn i { transform: rotate(45deg); }

/* panel de compartir: rejilla 3x2 que se despliega a la derecha del botón */
.share-overlay {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 29;
    background: rgba(255, 255, 255, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.share-panel {
    position: fixed;
    left: var(--col-w);
    bottom: 0;
    z-index: 30;
    width: 225px;
    height: 150px;
    display: grid;
    grid-template-columns: repeat(3, 75px);
    grid-template-rows: repeat(2, 75px);
    background: var(--bg);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0.4s;
}
.share-open .share-overlay { opacity: 1; visibility: visible; }
.share-open .share-panel { transform: none; visibility: visible; }

.share-icon,
.share-back {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s, color 0.15s;
}
.share-icon { background: var(--accent); color: #fff; font-size: 16px; }
.share-icon:hover { background: var(--accent-soft); }
.share-back { background: var(--bg-soft); color: var(--accent); font-size: 12px; }
.share-back:hover { background: #e4e4e4; }
.share-open .share-icon,
.share-open .share-back { opacity: 1; transform: none; }
.share-open .share-panel > :nth-child(1) { transition-delay: 0.2s; }
.share-open .share-panel > :nth-child(2) { transition-delay: 0.25s; }
.share-open .share-panel > :nth-child(3) { transition-delay: 0.3s; }
.share-open .share-panel > :nth-child(4) { transition-delay: 0.35s; }
.share-open .share-panel > :nth-child(5) { transition-delay: 0.4s; }
.share-open .share-panel > :nth-child(6) { transition-delay: 0.45s; }
.share-btn span {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 30px;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---------- columna derecha ---------- */
.right-col {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 75px;
    width: var(--col-w);
    z-index: 10;
    background: var(--bg);
}
.right-col::before {
    content: "";
    position: absolute;
    top: 150px;
    right: 40px;
    width: 1px;
    height: 110px;
    background: var(--line);
}
.scroll-mouse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 30px;
    margin: -15px 0 0 -10px;
    border: 1px solid rgba(49, 49, 49, 0.2);
    border-radius: 6px;
    overflow: hidden;
}
.scroll-mouse span {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 4px;
    background: var(--accent);
    animation: mouse-scroll 2.2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}
@keyframes mouse-scroll {
    0% { opacity: 0; }
    10% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(40px); }
}
.scroll-arrow {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin-top: 42px;
    text-align: center;
    font-size: 12px;
    color: var(--accent);
}
.hero-counter {
    position: absolute;
    right: 25px;
    bottom: 75px;
    width: 30px;
    padding: 20px 0;
    border-radius: 4px;
    background: rgba(49, 49, 49, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    line-height: 1.6;
    color: var(--text);
}
.hero-counter .js-total { color: var(--text-muted); }

.hero-progress {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 10;
    width: var(--col-w);
    height: 75px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-progress::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 57px;
    width: 1px;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
}
.hero-progress svg { transform: rotate(-90deg); }
.hero-progress circle { fill: none; }
.hero-progress .ring-bg { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; }
.hero-progress .ring {
    stroke: #fff;
    stroke-width: 2;
    stroke-dasharray: 113.1;
    stroke-dashoffset: 113.1;
}
.hero-progress .dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}

/* ---------- carrusel ---------- */
.hero-bg {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: var(--col-w);
    bottom: 0;
    background: var(--bg-soft);
}
.hero {
    position: fixed;
    top: var(--header-h);
    left: var(--col-w);
    right: var(--col-w);
    bottom: 0;
    z-index: 3;
    padding: var(--gap);
}
.hero-carousel { height: 100%; }

.swiper-slide {
    position: relative;
    overflow: hidden;
    height: 100%;
    background: #111;
}
.swiper-slide .bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -15%;
    width: 130%;
    background-size: cover;
    background-position: center;
}

/* Todo lo que cambia al activarse una diapositiva entra con retardo,
   cuando el carrusel ya ha terminado de moverse */
.swiper-slide .overlay,
.slide-title,
.slide-title .btn,
.slide-number,
.slide-dec { transition: all 0.4s ease 0.9s; }

.swiper-slide .overlay {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0.4;
}
.swiper-slide-active .overlay { opacity: 0.6; }

.slide-title {
    position: absolute;
    left: 0;
    right: 0;
    top: 45%;
    margin-top: 40px;
    padding: 0 50px;
    color: #fff;
    opacity: 0.6;
}
.swiper-slide-active .slide-title { margin-top: 0; opacity: 1; }

.slide-title h2 {
    position: relative;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 34px;
    line-height: 1.5;
}
/* El acento era naranja; sobre la foto el negro no se vería, así que va en blanco */
.slide-title h2::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #fff;
}
.slide-title p {
    max-width: 290px;
    padding: 10px 0 20px;
    font-size: 10px;
    font-weight: 600;
    line-height: 2;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.btn {
    position: relative;
    top: 20px;
    display: inline-block;
    padding: 15px 38px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
}
.swiper-slide-active .btn { opacity: 1; top: 0; pointer-events: auto; }
.swiper-slide-active .btn:hover { background: #fff; color: var(--accent); transition-delay: 0s; transition-duration: 0.2s; }

.slide-number {
    position: absolute;
    top: 40px;
    right: -40px;
    font-size: 14px;
    color: #fff;
}
.swiper-slide-active .slide-number { right: 40px; }

.slide-dec {
    position: absolute;
    top: 48px;
    left: 40px;
    width: 0;
    height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}
.swiper-slide-active .slide-dec { width: 180px; height: 100px; }

/* ---------- controles ---------- */
.hero-pagination.swiper-pagination-bullets {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30px;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 20px;
    pointer-events: none;
}
.hero-pagination .swiper-pagination-bullet {
    position: relative;
    width: 6px;
    height: 6px;
    margin: 0 !important;
    background: #fff;
    opacity: 1;
    pointer-events: auto;
}
.hero-pagination .swiper-pagination-bullet::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}
.hero-pagination .swiper-pagination-bullet-active { background: var(--accent); }
.hero-pagination .swiper-pagination-bullet-active::after { transform: scale(1.6); }

/* Flechas como las del original: círculo oscuro, halo suave y chevron fino */
.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
}
.hero-nav svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 1;
    transition: stroke 0.2s;
}
.hero-nav:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }
.hero-nav:hover svg { stroke: #fff; }
.hero-prev { left: 40px; }
.hero-next { right: 40px; }

/* Ocultas hasta pasar el ratón por el carrusel (en táctil se ven siempre) */
@media (hover: hover) {
    .hero-nav {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, box-shadow 0.2s;
    }
    .hero-prev { transform: translateX(-10px); }
    .hero-next { transform: translateX(10px); }
    .hero:hover .hero-nav,
    .hero-nav:focus-visible { opacity: 1; visibility: visible; transform: none; }
}

/* ---------- enlaces legales (abajo a la derecha, sin fondos) ---------- */
.legal-links {
    position: fixed;
    right: calc(var(--col-w) + var(--gap) + 30px);
    bottom: 26px;
    z-index: 6;
    display: flex;
    gap: 22px;
}
.legal-links button {
    padding: 4px 0;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s;
}
.legal-links button:hover { color: #fff; }

/* ---------- popup de textos legales ---------- */
.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    visibility: hidden;
    pointer-events: none;
}
.legal-modal_overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.legal-modal_box {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: min(80vh, 760px);
    display: flex;
    flex-direction: column;
    background: var(--bg);
    box-shadow: 0 30px 80px rgba(49, 49, 49, 0.18);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.35s ease, transform 0.45s var(--ease);
}
.legal-open .legal-modal { visibility: visible; pointer-events: auto; }
.legal-open .legal-modal_overlay { opacity: 1; }
.legal-open .legal-modal_box { opacity: 1; transform: none; }

.legal-modal_head {
    position: relative;
    padding: 34px 80px 0 40px;
}
.legal-modal_head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 40px;
    width: 60px;
    height: 2px;
    background: var(--accent);
}
.legal-modal_head h2 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    color: var(--text);
}
.legal-modal_close {
    position: absolute;
    top: 0;
    right: 0;
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    transition: background 0.2s;
}
.legal-modal_close:hover { background: var(--accent-soft); }
.legal-modal_close:focus { outline: none; }
.legal-modal_close:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.7); outline-offset: -10px; }

.legal-modal_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 18px 40px 0;
    border-bottom: 1px solid var(--line);
}
.legal-modal_tabs button {
    position: relative;
    padding: 0 0 14px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s;
}
.legal-modal_tabs button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.legal-modal_tabs button:hover,
.legal-modal_tabs button.is-active { color: var(--text); }
.legal-modal_tabs button.is-active::after { transform: scaleX(1); }

.legal-modal_note {
    margin: 16px 40px 0;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.legal-modal_note:empty { display: none; }

.legal-modal_body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 20px 10px 0 0;
    padding: 0 30px 40px 40px;
    font-size: 14px;
    line-height: 1.75;
    color: #555;
    scrollbar-width: thin;
    scrollbar-color: rgba(49, 49, 49, 0.3) transparent;
}
.legal-modal_body:focus { outline: none; }
.legal-modal_body::-webkit-scrollbar { width: 4px; }
.legal-modal_body::-webkit-scrollbar-thumb { background: rgba(49, 49, 49, 0.3); }
.legal-modal_body h3 {
    margin: 28px 0 10px;
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 18px;
    color: var(--text);
}
.legal-modal_body h4 { margin: 20px 0 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.legal-modal_body p { margin-bottom: 12px; }
.legal-modal_body ul,
.legal-modal_body ol { margin: 0 0 14px 20px; }
.legal-modal_body li { margin-bottom: 6px; }
.legal-modal_body strong { color: var(--text); }
.legal-modal_body a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.legal-modal_body table { width: 100%; margin: 10px 0 18px; border-collapse: collapse; font-size: 12px; }
.legal-modal_body th,
.legal-modal_body td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }

/* ---------- cursor ---------- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, margin 0.2s, opacity 0.2s;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1064px) {
    .left-col, .share-btn, .share-panel, .share-overlay, .right-col, .header-accent::after { display: none; }
    /* centrados por encima de la paginación */
    .legal-links { left: 0; right: 0; bottom: 58px; justify-content: center; }
    .hero { left: 0; right: 0; }
    .hero-bg { right: 0; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }
    .main-header { width: 100%; }
    .logo { margin-left: 16px; }
    .logo img { height: 20px; }
    .header-contact-wrap { margin-right: 80px; padding-right: 12px; position: static; }
    .header-contact-wrap .header-contact { padding-right: 10px; letter-spacing: 2px; }
    .contact-pop {
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        padding: 30px 20px;
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .contact-pop::before { left: 20px; }
    .header-accent { width: 80px; }
    .page-subtitle { top: 0; right: 0; left: 0; height: 100%; display: flex; align-items: center; justify-content: center; letter-spacing: 1px; font-size: 9px; }
    .page-subtitle::before { display: none; }
    .page-subtitle span { padding: 0; background: none; }
    .slide-title { padding: 0 30px; }
    .slide-number { top: 24px; }
    .swiper-slide-active .slide-number { right: 24px; }
    .slide-dec { top: 32px; left: 24px; }
    .swiper-slide-active .slide-dec { width: 120px; height: 70px; }
    .hero-nav { top: auto; bottom: 18px; margin-top: 0; }
    .hero-pagination.swiper-pagination-bullets { bottom: 80px; }
    .legal-links { bottom: 106px; gap: 16px; }
    .legal-links button { letter-spacing: 1px; }
    .legal-modal { padding: 0; align-items: flex-end; }
    .legal-modal_box { max-width: none; max-height: 88vh; }
    .legal-modal_head { padding: 30px 70px 0 20px; }
    .legal-modal_head::before { left: 20px; }
    .legal-modal_head h2 { font-size: 22px; }
    .legal-modal_close { width: 56px; height: 56px; }
    .legal-modal_tabs { padding: 16px 20px 0; gap: 18px; }
    .legal-modal_note { margin: 14px 20px 0; }
    .legal-modal_body { margin-right: 4px; padding: 0 16px 30px 20px; font-size: 13px; }
    .hero-prev { left: 20px; }
    .hero-next { right: 80px; }
    .hero-progress { width: 60px; height: 56px; }
}
