/* ================================================================
   Portal de Clientes Oddino — estética según diseño del cliente
   Tokens: fondo negro, header gris oscuro, acento naranja,
   verde disponibilidad, tipografía Helvetica.
   ================================================================ */
:root {
    --op-bg:        #121212;
    --op-surface:   #1d1d1d;
    --op-surface-2: #262626;
    --op-header:    #3b3b3b;
    --op-border:    #2f2f2f;
    --op-text:      #ffffff;
    --op-text-2:    #c9c9c9;
    --op-text-3:    #8a8a8a;
    --op-accent:    #f07d3a;   /* naranja Oddino */
    --op-green:     #2FFC66;
    --op-amber:     #f5c518;
    --op-red:       #e5484d;
    --op-radius:    10px;
    /* Progreso fluido: 0px a 480px de ancho → 1px a 1920px. Se usa en clamp()
       para escalar la tipografía manteniendo la proporción (ref: 1920). */
    --fluid: calc((100vw - 480px) / 1440);
}

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

.op-body {
    background: var(--op-bg);
    color: var(--op-text);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* El hero a pantalla completa usa 100vw; 'clip' evita el scroll horizontal
       que aparecería por el ancho de la barra de scroll, sin romper el sticky
       del header (a diferencia de overflow:hidden). */
    overflow-x: clip;
}

/* ---------- Header ---------- */
/* Réplica del header de oddino.com (medido 2026-09-09): 72px, márgenes 28px,
   fondo gris translúcido sobre el hero. Acá el header es fijo (las páginas
   son largas y el perfil tiene que quedar a mano), así que al scrollear pasa
   a sólido (.is-scrolled, vía JS) para que el contenido no se lea a través. */
.op-header {
    background: rgba(132, 132, 132, .32);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 28px;
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color .2s ease;
}
.op-header.is-scrolled { background: var(--op-header); }
/* Logo institucional: SVG blanco como <img>, el mismo método que oddino.com.
   Proporción original 108.283 x 27.158 ≈ 4:1. Antes se pintaba por máscara CSS
   y Safari (iPhone/iPad) rasteriza las máscaras al píxel entero: perdía la fila
   anti-aliasada de abajo y la columna de la derecha, justo donde las letras
   tocan el borde del archivo, y el logo salía con la panza plana. */
.op-logo {
    display: block;
    flex: none;
    width:  clamp(84px, calc(84px + 24 * var(--fluid)), 108px);
    height: clamp(21px, calc(21px + 6 * var(--fluid)), 27px);
    text-decoration: none;
}
.op-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

/* Texto para lectores de pantalla, oculto visualmente. */
.op-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
/* El header usa la tipografía de oddino.com: Open Sans. */
.op-header, .op-header input, .op-header button {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.op-nav { display: flex; align-items: center; gap: 0; }
/* Ítems medidos en oddino.com: Open Sans 12px / 700 / mayúsculas, #c9c9c9,
   relleno 13px 16px (32px entre ítems), sin separadores. Rollover naranja.
   Ningún ítem queda "activo": son enlaces a oddino.com. */
.op-nav > a {
    color: var(--op-text-2);
    text-decoration: none;
    font-size: 11.9px;   /* el valor exacto que computa Elementor en oddino.com */
    font-weight: 700;
    text-transform: uppercase;
    padding: 13px 16px;
    transition: color .15s ease;
}
.op-nav > a:hover { color: var(--op-accent); }
/* Separador entre ítems, calcado del li::after de oddino.com: 1×16px, #9e9e9e.
   Va entre los ítems (no después del último) y no cambia con el rollover. */
.op-nav-sep { width: 1px; height: 16px; border-left: 1px solid #9e9e9e; flex: none; box-sizing: content-box; }
/* content-box: la caja mide 2px (1 de línea + 1 de aire), igual que el ::after
   de oddino.com; con border-box quedaba en 1px y el bloque 3px más angosto. */

/* Botón del header, medido en oddino.com: 13px / 500 / espaciado .9px,
   relleno 11px 18px, borde naranja, radio 6, se rellena al pasar el mouse. */
.op-header .op-btn--accent.op-btn--sm {
    padding: 11px 18px;
    font-size: 13px;
    line-height: 13px;   /* misma altura de línea que Elementor: botón de 37px */
    font-weight: 500;
    letter-spacing: .9px;
}

/* Botón hamburguesa: oculto en desktop (el menú entra en el header),
   visible sólo en el breakpoint mobile de más abajo. Ícono 20×29 como en
   oddino.com; pasa a ✕ cuando el panel está abierto. */
.op-nav-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: none; border-radius: 50%; padding: 0;
    background: none; color: #fff;
    cursor: pointer;
}
.op-nav-toggle-ic { width: 24px; height: 24px; display: block; }
.op-nav-toggle-ic--close { display: none; }
.op-nav-toggle[aria-expanded="true"] .op-nav-toggle-ic--open  { display: none; }
.op-nav-toggle[aria-expanded="true"] .op-nav-toggle-ic--close { display: block; }

/* Botón de acceso + redes: sólo existen dentro del panel mobile. */
.op-nav-extra { display: none; }

.op-user { display: flex; align-items: center; gap: 12px; }
/* Acceso al perfil: reemplaza el saludo y el botón de salir del header
   (el cerrar sesión pasó a la pantalla de perfil). */
.op-user-link {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    color: var(--op-text-2);
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
}
.op-user-link:hover { color: #fff; background: rgba(255,255,255,.10); }
.op-user-ico { width: 24px; height: 24px; display: block; }

/* ---------- Botones ---------- */
.op-btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 14px 34px;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all .15s ease;
    background: none;
    color: var(--op-text);
    font-family: inherit;
}
.op-btn--primary { background: #fff; color: #111; border-color: #fff; }
.op-btn--primary:hover { background: var(--op-text-2); }
.op-btn--ghost { border-color: #777; color: var(--op-text); }
.op-btn--ghost:hover { border-color: #fff; }
.op-btn--accent { border-color: var(--op-accent); color: #fff; }
.op-btn--accent:hover { background: var(--op-accent); }
.op-btn--sm { padding: 8px 18px; font-size: 13px; }
.op-btn--block { width: 100%; }
/* Mismo tratamiento tipográfico que el "Disponible" de la ficha
   (.op-ficha-estado): regular y sin letter-spacing extra, que era lo que lo
   hacía ver de otra tipografía. */
.op-btn--green { background: var(--op-green); border-color: var(--op-green); color: #0b2b10; font-weight: 400; letter-spacing: 0; }
.op-btn--green:hover { filter: brightness(1.08); }
.op-btn--dark { background: #1c1c1c; border-color: #2a2a2a; color: #fff; border-radius: 30px; padding: 18px 34px; font-size: 17px; letter-spacing: 0; }
.op-btn--dark:hover { background: #262626; }
.op-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Perfil (pantalla 8 XD) ---------- */
.op-profile { max-width: 520px; margin: 40px auto 0; }
.op-profile-form { display: flex; flex-direction: column; gap: 16px; }
.op-pf-field {
    display: flex; align-items: center; gap: 12px;
    background: var(--op-surface);
    border: 1px solid var(--op-border);
    border-radius: 8px;
    padding: 6px 16px;
}
.op-pf-ico {
    width: 17px; height: 17px; flex: none;
    background-color: var(--op-text-2);
    -webkit-mask-image: var(--icon); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat;
            mask-image: var(--icon); mask-size: contain; mask-position: center; mask-repeat: no-repeat;
}
.op-pf-field input {
    flex: 1;
    background: transparent; border: none; outline: none;
    color: var(--op-text); font-size: 15px; font-family: inherit;
    padding: 14px 0;
}
.op-pf-field input::placeholder { color: var(--op-text-3); }
.op-pf-edit { color: var(--op-text-2); font-size: 15px; }
.op-pf-save {
    align-self: center;
    margin-top: 18px;
    min-width: 260px;
    background: #1c1c1c; border: 1px solid #2a2a2a;
    color: #fff; font-family: inherit;
    font-size: 18px; border-radius: 30px;
    padding: 16px 40px; cursor: pointer;
}
.op-pf-save:hover { background: #262626; }

.op-pf-logout {
    display: flex; align-items: center; gap: 8px;
    width: fit-content; margin: 22px auto 0;
    color: var(--op-text-2); text-decoration: none;
    font-size: clamp(14px, calc(14px + 2 * var(--fluid)), 16px);
    padding: 8px 14px; border-radius: 20px;
    transition: color .15s ease, background .15s ease;
}
.op-pf-logout:hover { color: var(--op-red); background: rgba(229,72,77,.08); }
.op-pf-logout-ico { width: 18px; height: 18px; flex: none; }

/* ---------- Main / secciones ---------- */
.op-main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 40px 28px 80px; }
.op-sep { border: none; border-top: 1px solid var(--op-border); margin: 36px 0; }
.op-section { margin-top: 36px; }
.op-section-title { font-size: 20px; font-weight: 500; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.op-ico { font-size: 22px; }
.op-title { font-size: clamp(24px, calc(24px + 10 * var(--fluid)), 34px); font-weight: 500; }
.op-subtitle { font-size: clamp(18px, calc(18px + 6 * var(--fluid)), 24px); color: var(--op-text-2); margin-top: 6px; }

/* ---------- Hero home ---------- */
.op-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-top: 24px; }
.op-hero-title { font-size: 40px; font-weight: 500; line-height: 1.2; }
.op-hero-copy { color: var(--op-text-2); font-size: 15px; }
@media (max-width: 800px) { .op-hero { grid-template-columns: 1fr; gap: 18px; } .op-hero-title { font-size: 30px; } }

/* ---------- Cards de desarrollos ---------- */
.op-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.op-card {
    background: var(--op-surface);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--op-text);
    padding-bottom: 18px;
    transition: border-color .15s ease, transform .15s ease;
}
.op-card:hover { border-color: #555; transform: translateY(-2px); }
.op-card-media { aspect-ratio: 16/10; background: var(--op-surface-2); }
.op-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.op-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 64px; color: var(--op-text-3);
}
.op-chip {
    display: inline-block;
    background: var(--op-surface-2);
    border-radius: 5px;
    font-size: 12.5px;
    color: var(--op-text-2);
    padding: 4px 12px;
    margin: 14px 0 0 16px;
}
.op-card-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 0; }
.op-card-title { font-size: 21px; font-weight: 500; }
.op-card-arrow { font-size: 20px; color: var(--op-text-2); }

/* ---------- Página de desarrollo ---------- */
/* De borde a borde de la pantalla, saliendo del ancho máximo del main. */
.op-devhero {
    position: relative;
    width: 100vw;
    margin: -40px 0 0 calc(50% - 50vw);
    min-height: 420px;
    background-size: cover;
    /* El hero es muy panorámico y recorta bastante en vertical. Encuadrando por
       encima del centro entra el remate del edificio, que con 'center' quedaba
       cortado en las fotos de frente. */
    background-position: center 32%;
    background-color: var(--op-surface-2);
    display: flex;
    align-items: center;
}
/* Botón volver — pill "liquid glass" sobre el hero */
.op-back {
    position: absolute;
    top: 22px; left: 28px;
    z-index: 3;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px 9px 11px;
    border-radius: 999px;
    color: #fff; text-decoration: none;
    font-size: 14px; font-weight: 500; letter-spacing: .2px;
    background: rgba(10,10,10,.34);
    -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
    border: 1px solid rgba(255,255,255,.20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 20px -8px rgba(0,0,0,.6);
    transition: background .25s cubic-bezier(.16,1,.3,1), border-color .25s ease, transform .12s ease;
}
.op-back:hover { background: rgba(10,10,10,.52); border-color: rgba(255,255,255,.34); }
.op-back:active { transform: translateY(1px) scale(.985); }
.op-back:focus-visible { outline: 2px solid var(--op-green); outline-offset: 2px; }
.op-back-ico { width: 17px; height: 17px; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.op-back:hover .op-back-ico { transform: translateX(-3px); }
@media (max-width: 700px) { .op-back { top: 14px; left: 16px; } }
.op-devhero-overlay { width: 100%; padding: 60px 28px; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45)); min-height: 420px; display: flex; align-items: center; }
.op-devhero-inner { display: flex; align-items: center; gap: 22px; max-width: 1280px; margin: 0 auto; width: 100%; }
.op-devhero-pin {
    flex: none;
    width: 54px; height: 68px;
    background-color: #fff;
    -webkit-mask-image: var(--icon); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat;
            mask-image: var(--icon); mask-size: contain; mask-position: center; mask-repeat: no-repeat;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.6));
}
.op-devhero-title { font-size: clamp(26px, calc(26px + 18 * var(--fluid)), 44px); font-weight: 500; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.op-devhero-sub { font-size: clamp(14px, calc(14px + 3 * var(--fluid)), 17px); color: #eee; letter-spacing: 2px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
@media (max-width: 700px) { .op-devhero-pin { width: 38px; height: 48px; } }

.op-devactions {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 56px;
    padding: 56px 0 20px;
    flex-wrap: wrap;
}
.op-action { text-decoration: none; color: var(--op-text); text-align: center; width: 150px; }
.op-action-tile {
    display: flex; align-items: center; justify-content: center;
    width: 96px; height: 96px;
    margin: 0 auto 16px;
    border: 1.5px solid var(--op-text-3);
    border-radius: 16px;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.op-action-icon {
    width: 46px; height: 46px;
    background-color: #fff;
    -webkit-mask-image: var(--icon); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat;
            mask-image: var(--icon); mask-size: contain; mask-position: center; mask-repeat: no-repeat;
    transition: background-color .15s ease;
}
.op-action:hover .op-action-tile { border-color: #fff; transform: translateY(-2px); }
.op-action.is-primary .op-action-tile { background: var(--op-green); border-color: var(--op-green); }
.op-action.is-primary .op-action-icon { background-color: #0b2b10; }
.op-action.is-disabled { opacity: .4; cursor: default; }
.op-action-label { font-size: clamp(14px, calc(14px + 3 * var(--fluid)), 17px); line-height: 1.3; }

/* ---------- Lightbox (video / brochures) ---------- */
.op-lb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.op-lb[hidden] { display: none; }
.op-lb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.op-lb-card {
    position: relative; z-index: 1;
    background: var(--op-surface); border: 1px solid var(--op-border); border-radius: 14px;
    width: min(680px, 94vw); max-height: 90vh; overflow: auto; padding: 30px;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
}
.op-lb-card--video { padding: 0; width: min(960px, 94vw); background: #000; border: none; overflow: hidden; }
.op-lb-card--doc { padding: 0; width: min(960px, 94vw); height: 88vh; overflow: hidden; }
.op-lb-close {
    position: absolute; top: 10px; right: 12px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(0,0,0,.55); color: #fff; font-size: 26px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.op-lb-close:hover { background: rgba(0,0,0,.8); }
.op-lb-video { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.op-lb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.op-lb-card--doc iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.op-lb-title { font-size: 20px; font-weight: 500; margin: 0 0 18px; padding-right: 34px; }

.op-matlist { list-style: none; margin: 0; padding: 0; }
.op-matitem { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--op-border); }
.op-matitem:last-child { border-bottom: none; }
.op-matitem-ico { width: 22px; height: 22px; flex: none; background-color: var(--op-text-2); -webkit-mask-image: var(--icon); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat; mask-image: var(--icon); mask-size: contain; mask-position: center; mask-repeat: no-repeat; }
.op-matitem-name { flex: 1; font-size: 15px; color: var(--op-text); word-break: break-word; min-width: 0; }
.op-matitem-actions { display: flex; gap: 8px; flex: none; }
.op-matitem-btn {
    font-size: 13px; padding: 7px 15px; border-radius: 8px; cursor: pointer;
    border: 1px solid var(--op-border); background: transparent; color: var(--op-text);
    text-decoration: none; font-family: inherit;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.op-matitem-btn:hover { border-color: #5a5a5a; }
.op-matitem-btn:active { transform: translateY(1px); }
.op-matitem-dl { background: var(--op-green); border-color: var(--op-green); color: #0b2b10; font-weight: 600; }
.op-matitem-dl:hover { background: #26e659; border-color: #26e659; }
@media (max-width: 600px) {
    .op-matitem { flex-wrap: wrap; }
    .op-matitem-actions { width: 100%; padding-left: 36px; }
}

.op-devinfo { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.op-devcopy { color: var(--op-text-2); }
.op-amenities ul { list-style: none; }
.op-amenities li { padding: 8px 0; border-bottom: 1px solid var(--op-border); color: var(--op-text-2); }
@media (max-width: 800px) { .op-devinfo { grid-template-columns: 1fr; } }

/* ---------- Acceso (login/registro) ---------- */
.op-acceso { max-width: 480px; margin: 30px auto 0; text-align: center; }
.op-panel { display: none; }
.op-panel.is-visible { display: block; }
.op-form { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; }
.op-field {
    display: flex; align-items: center; gap: 12px;
    background: var(--op-surface);
    border: 1px solid var(--op-border);
    border-radius: 8px;
    padding: 4px 18px;
}
.op-field:focus-within { border-color: #666; }
.op-field-icon {
    width: 17px; height: 17px; flex: none;
    background-color: var(--op-text-2);
    -webkit-mask-image: var(--icon); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat;
            mask-image: var(--icon); mask-size: contain; mask-position: center; mask-repeat: no-repeat;
}
.op-field input {
    flex: 1;
    background: none; border: none; outline: none;
    color: var(--op-text);
    font-size: 15px;
    padding: 14px 0;
    font-family: inherit;
}
.op-field input::placeholder { color: var(--op-text-3); }
.op-terms { font-size: 13px; color: var(--op-text-2); margin-top: 8px; text-align: center; line-height: 1.6; }
.op-form-links { font-size: 14px; color: var(--op-text-2); }
.op-form-links a { color: var(--op-text); }
.op-alert {
    background: var(--op-surface);
    border: 1px solid var(--op-border);
    border-left: 3px solid var(--op-text-3);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14.5px;
    text-align: left;
}
.op-alert--error { border-left-color: var(--op-red); }
.op-alert--ok { border-left-color: var(--op-green); }

/* ---------- Login hero (pantalla "Acceso Clientes" del XD) ---------- */
.op-body--hero { position: relative; min-height: 100vh; }
.op-body--hero .op-main { max-width: none; margin: 0; padding: 0; }
.op-body--hero .op-footer {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: transparent; margin-top: 0; z-index: 5;
}

.op-hero-login {
    min-height: calc(100vh - 72px);
    background-color: #14110e;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.op-hero-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 28px 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.op-hero-left { flex: 1 1 50%; }
.op-hero-huge {
    color: #fff;
    font-weight: 300;
    font-size: clamp(48px, 8vw, 120px);
    line-height: 0.95;
    letter-spacing: -2px;
    text-shadow: 0 2px 24px rgba(0,0,0,.35);
}

.op-hero-form { flex: 0 0 420px; max-width: 420px; }
.op-login-form { display: block; }
.op-login-field {
    display: flex; align-items: center; gap: 14px;
    background: rgba(51, 51, 51, 0.26);
    border-radius: 14px;
    padding: 19px 22px;
    margin-bottom: 22px;
}
.op-login-ico {
    width: 17px; height: 17px; flex: none;
    background-color: #eaeaea;
    -webkit-mask-image: var(--icon); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat;
            mask-image: var(--icon); mask-size: contain; mask-position: center; mask-repeat: no-repeat;
}
.op-login-field input {
    flex: 1;
    background: transparent; border: none; outline: none;
    color: #fff; font-size: 17px; font-family: inherit;
}
.op-login-field input::placeholder { color: rgba(255,255,255,.8); }
.op-login-row {
    display: flex; align-items: center; justify-content: space-between;
    color: #fff; font-size: 14px; margin-bottom: 26px;
}
.op-login-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.op-login-check input { accent-color: var(--op-green); width: 16px; height: 16px; }
.op-login-link { color: #fff; text-decoration: none; }
.op-login-link:hover { text-decoration: underline; }
.op-login-submit {
    display: block; width: 100%;
    /* Los inputs usan #333 al 26%; el botón va apenas por debajo para que se
       lea como recuadro sin competir con ellos. */
    background: rgba(51, 51, 51, 0.18);
    border: none; border-radius: 14px;
    color: #fff; font-family: inherit;
    font-size: 26px; font-weight: 300;
    text-align: center; cursor: pointer;
    padding: 6px 0; margin: 4px 0 14px;
}
.op-login-submit:hover { opacity: .85; }
.op-login-foot { text-align: center; color: #fff; font-size: 14px; }
.op-login-foot a { color: #fff; }

/* ---------- Tarjeta "portfolio en creación" (registro / sin desarrollos) ---------- */
.op-pending-wrap { display: flex; align-items: center; justify-content: center; min-height: 56vh; padding: 40px 20px; }
.op-pending-card {
    background: var(--op-surface);
    border: 1px solid var(--op-border);
    border-radius: 16px;
    padding: 38px 44px;
    max-width: 470px;
}
.op-pending-card--inline { margin: 6px 0 24px; }
.op-pending-ico {
    display: block;
    width: 46px; height: 46px;
    background-color: #fff;
    -webkit-mask-image: var(--icon); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat;
            mask-image: var(--icon); mask-size: contain; mask-position: center; mask-repeat: no-repeat;
    margin-bottom: 22px;
}
.op-pending-title { font-size: 25px; font-weight: 400; line-height: 1.25; margin: 0 0 14px; }
.op-pending-text { font-size: 15px; color: var(--op-text-2); line-height: 1.6; margin: 0; }

@media (max-width: 820px) {
    .op-hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 110px; }
    .op-hero-form { flex-basis: auto; width: 100%; max-width: 100%; }
    .op-hero-huge { font-size: clamp(40px, 12vw, 72px); }
}

/* ---------- Unidades ---------- */
.op-breadcrumb { font-size: 13.5px; color: var(--op-text-3); margin-bottom: 18px; }
.op-breadcrumb a { color: var(--op-text-2); text-decoration: none; }
.op-breadcrumb a:hover { color: #fff; }

/* ---------- Vista edificio: cabecera + selector de pisos ---------- */
.op-unitshead { display: flex; align-items: flex-start; gap: 40px; margin: 24px 0 28px; flex-wrap: wrap; }
.op-unitshead-tile { flex: none; display: flex; flex-direction: column; align-items: center; width: 132px; }
.op-unitshead-ico {
    width: 96px; height: 96px;
    display: flex; align-items: center; justify-content: center;
    background: var(--op-green);
    border-radius: 16px;
    margin-bottom: 14px;
}
.op-unitshead-ico::before {
    content: ""; width: 46px; height: 46px;
    background-color: #0b2b10;
    -webkit-mask-image: var(--icon); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat;
            mask-image: var(--icon); mask-size: contain; mask-position: center; mask-repeat: no-repeat;
}
.op-unitshead-label { font-size: clamp(14px, calc(14px + 3 * var(--fluid)), 17px); line-height: 1.3; text-align: center; }
.op-unitshead-tile.is-clickable { cursor: pointer; }
.op-unitshead-tile.is-clickable .op-unitshead-ico { transition: transform .15s ease, filter .15s ease; }
.op-unitshead-tile.is-clickable:hover .op-unitshead-ico { transform: translateY(-2px); filter: brightness(1.05); }
.op-unitshead-tile.is-clickable:focus-visible { outline: 2px solid var(--op-green); outline-offset: 3px; border-radius: 12px; }

.op-floors { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.op-floor {
    position: relative;
    min-height: 58px; padding: 8px;
    background: #14141e;
    border: 1.5px solid #262636;
    border-radius: 10px;
    color: #fff; font-family: inherit; font-size: 15px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .15s ease, background .15s ease;
}
.op-floor:hover { border-color: #3a3a52; }
.op-floor.is-active { border-color: var(--op-green); border-width: 2px; }
.op-floor.is-disabled { color: var(--op-text-3); cursor: default; }
.op-floor.is-disabled:hover { border-color: #262636; }
.op-floor-label { pointer-events: none; }
.op-floor-msg { display: none; font-size: 11px; line-height: 1.25; color: var(--op-red); text-align: center; }
.op-floor.is-disabled:hover .op-floor-label,
.op-floor.is-disabled.show-msg .op-floor-label { display: none; }
.op-floor.is-disabled:hover .op-floor-msg,
.op-floor.is-disabled.show-msg .op-floor-msg { display: block; }
@media (max-width: 620px) {
    .op-unitshead { gap: 22px; }
    .op-floors { grid-template-columns: repeat(3, 1fr); }
}

/* Plano interactivo (prehome): se ve al entrar; al elegir un piso se oculta */
/* Prehome: sólo la invitación a elegir un piso (la planta aparece recién al
   elegirlo, o la tabla si ese piso no tiene planta dibujada). */
.op-floorplan { text-align: center; margin: 48px 0 40px; }
.op-floorplan-hint {
    color: var(--op-text-2);
    font-size: clamp(15px, calc(15px + 3 * var(--fluid)), 18px);
    margin: 0;
}
.op-floorplan.is-hidden, .op-units-panel.is-hidden { display: none; }

.op-filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 10px; }
.op-filters select {
    background: var(--op-surface);
    color: var(--op-text);
    border: 1px solid var(--op-border);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
}
.op-legend { display: flex; gap: 22px; font-size: 13px; color: var(--op-text-2); margin: 14px 0 18px; }
.op-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.op-dot.est-disp { background: var(--op-green); }
.op-dot.est-res { background: var(--op-amber); }
.op-dot.est-nodisp { background: var(--op-red); }

.op-table-wrap { overflow-x: auto; border: 1px solid var(--op-border); border-radius: var(--op-radius); }
.op-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.op-table th {
    text-align: left;
    font-size: 12.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--op-text-3);
    padding: 14px 16px;
    border-bottom: 1px solid var(--op-border);
    background: var(--op-surface);
}
.op-table td { padding: 13px 16px; border-bottom: 1px solid var(--op-border); font-size: 14.5px; }
.op-table tbody tr { background: var(--op-bg); transition: background .12s ease; }
.op-table tbody tr:nth-child(even) { background: #171717; }
.op-table tbody tr:hover { background: var(--op-surface-2); }
.op-guarismo { font-weight: 600; letter-spacing: .5px; }
.op-price { white-space: nowrap; }
.op-estado {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}
.op-estado.est-disp { background: rgba(61,220,85,.12); color: var(--op-green); }
.op-estado.est-res { background: rgba(245,197,24,.12); color: var(--op-amber); }
.op-estado.est-nodisp { background: rgba(229,72,77,.12); color: var(--op-red); }
.op-empty { padding: 30px; text-align: center; color: var(--op-text-3); }

/* ---------- Modal ficha ---------- */
.op-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.op-modal[hidden] { display: none; }
.op-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.op-modal-card {
    position: relative;
    background: var(--op-surface);
    border: 1px solid var(--op-border);
    border-radius: 14px;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 34px;
}
.op-modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none;
    color: var(--op-text-2);
    font-size: 30px; cursor: pointer;
}
.op-modal-close:hover { color: #fff; }

.op-ficha-head { text-align: center; background: #000; border-radius: 10px; padding: 20px; margin-bottom: 24px; }
.op-ficha-guarismo { font-size: 34px; font-weight: 600; letter-spacing: 1px; }
.op-ficha-estado { font-size: 16px; margin-top: 2px; }
.op-ficha-estado.est-disp { color: var(--op-green); }
.op-ficha-estado.est-res { color: var(--op-amber); }
.op-ficha-estado.est-nodisp { color: var(--op-red); }

/* Encabezado con el plano de la tipología de fondo (click = ampliar) */
.op-ficha-head.has-plano {
    position: relative;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
    background: #0b0b0b;
}
.op-ficha-plano {
    display: block;
    width: 100%;
    height: clamp(210px, calc(210px + 110 * var(--fluid)), 320px);
    object-fit: contain;
    /* Los brochures son PNG con transparencia: un negro apenas levantado
       separa el plano del fondo del modal sin ensuciarlo. */
    background: #191919;
    padding: 10px;
    transition: transform .25s ease;
}
.op-ficha-head.has-plano:hover .op-ficha-plano { transform: scale(1.03); }
/* El texto va en su propia banda: los planos vienen sobre blanco y cualquier
   degradado encima los ensucia. */
.op-ficha-headtxt {
    padding: 12px 16px 14px;
    text-align: center;
    background: #000;
}
.op-ficha-head.has-plano .op-ficha-guarismo { font-size: clamp(24px, calc(24px + 10 * var(--fluid)), 34px); }
.op-ficha-zoom {
    position: absolute;
    top: 10px; right: 10px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff; font-size: 15px; line-height: 1;
    pointer-events: none;
}

/* ---------- Planta interactiva (vista plano de unidades) ---------- */
.op-viewtoggle {
    display: inline-flex; gap: 4px;
    margin: 0 0 18px;
    padding: 4px;
    background: #161616;
    border: 1px solid #262626;
    border-radius: 30px;
}
.op-viewtoggle.is-hidden { display: none; }
.op-viewbtn {
    display: inline-flex; align-items: center; gap: 7px;
    background: none; border: none; cursor: pointer;
    color: var(--op-text-2); font-family: inherit;
    font-size: clamp(13px, calc(13px + 2 * var(--fluid)), 15px);
    padding: 8px 18px; border-radius: 24px;
    transition: background .15s ease, color .15s ease;
}
.op-viewbtn:hover { color: #fff; }
.op-viewbtn.is-active { background: var(--op-green); color: #0b2b10; font-weight: 500; }
.op-viewbtn-ico { font-size: 15px; line-height: 1; }

.op-iplano { text-align: center; }
.op-iplano.is-hidden { display: none; }
.op-iplano-stage {
    /* Sin caja: el plano se apoya directamente sobre el fondo de la página. */
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}
.op-iplano-stage img {
    display: block;
    max-width: 100%;
    max-height: 74vh;   /* que la planta entre en pantalla sin scrollear */
    width: auto; height: auto;
    user-select: none;
}
#op-iplano-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* En reposo la zona es invisible: sólo se ve el punto de color. El rollover
   ilumina el departamento en blanco transparente. */
.op-izone {
    fill: #fff;
    fill-opacity: 0;
    stroke: none;
    cursor: pointer;
    transition: fill-opacity .15s ease;
}
/* .is-hover mantiene el departamento iluminado mientras el mouse está sobre
   el punto (que es un elemento HTML por encima del SVG). */
.op-izone:hover,
.op-izone.is-hover { fill-opacity: .34; }

/* Punto de disponibilidad (siempre visible, centrado en el departamento) */
.op-iplano-dots { position: absolute; inset: 0; pointer-events: none; }
.op-idot {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    width: clamp(18px, calc(18px + 10 * var(--fluid)), 28px);
    height: clamp(18px, calc(18px + 10 * var(--fluid)), 28px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.9);
    box-shadow: 0 2px 8px rgba(0,0,0,.45);
    transition: transform .15s ease;
}
.op-idot.is-on { transform: translate(-50%, -50%) scale(1.18); }
.op-idot.est-disp   { background: var(--op-green); }
.op-idot.est-res    { background: var(--op-amber); }
.op-idot.est-nodisp { background: var(--op-red); }

.op-iplano-tip {
    position: absolute;
    z-index: 5;
    /* Centrado por encima del cursor. Si no entra arriba, .is-below lo baja. */
    transform: translate(-50%, calc(-100% - 14px));
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 14px;
    background: rgba(10,10,10,.96);
    border: 1px solid #333;
    border-radius: 8px;
    pointer-events: none;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 6px 22px rgba(0,0,0,.5);
}
.op-iplano-tip.is-below { transform: translate(-50%, 14px); }
/* El display:flex de arriba le gana al display:none que el navegador aplica a
   [hidden]: sin esta regla el tooltip queda visible aunque esté "oculto". */
.op-iplano-tip[hidden] { display: none; }
.op-itip-estado { font-size: clamp(15px, calc(15px + 4 * var(--fluid)), 19px); }
.op-itip-estado.est-disp   { color: var(--op-green); }
.op-itip-estado.est-res    { color: var(--op-amber); }
.op-itip-estado.est-nodisp { color: var(--op-red); }
.op-itip-sep {
    display: block; height: 1px; margin: 7px auto 8px;
    width: 100%; background: rgba(255,255,255,.35);
}
.op-itip-guarismo { font-size: 15px; font-weight: 400; }
.op-itip-meta   { font-size: 14px; color: #e8e8e8; }
.op-itip-precio { font-size: 15px; margin-top: 5px; color: var(--op-green); }
.op-iplano-legend { margin-top: 14px; }

/* Plano ampliado a pantalla completa */
.op-planozoom {
    position: fixed; inset: 0; z-index: 300;
    display: none; align-items: center; justify-content: center;
    padding: 28px;
    background: rgba(0,0,0,.9);
    cursor: zoom-out;
}
.op-planozoom.is-open { display: flex; }
.op-planozoom img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    background: #191919;
    border-radius: 8px;
}
.op-planozoom-close {
    position: absolute; top: 16px; right: 20px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,.12); border: none; border-radius: 50%;
    color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.op-planozoom-close:hover { background: rgba(255,255,255,.22); }

.op-ficha-sups { margin: 18px 0; }
.op-ficha-sups h4 {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.op-ficha-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.op-ficha-table td { padding: 8px 10px; border-bottom: 1px solid var(--op-border); }
.op-ficha-table td:last-child { text-align: right; font-weight: 600; }
.op-ficha-table tr.total td { font-size: 16px; border-bottom: none; padding-top: 14px; }
.op-ficha-precio { text-align: center; font-size: 22px; font-weight: 600; margin: 18px 0; }

.op-resform { margin-top: 22px; border-top: 1px solid var(--op-border); padding-top: 22px; display: none; }
.op-resform.is-visible { display: block; }
.op-resform h4 { font-size: 17px; margin-bottom: 14px; }
.op-resform .op-field { margin-bottom: 12px; }
.op-resform textarea {
    width: 100%;
    background: var(--op-surface-2);
    border: 1px solid var(--op-border);
    border-radius: 8px;
    color: var(--op-text);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14.5px;
    min-height: 70px;
    margin-bottom: 12px;
}
.op-res-disclaimer { font-size: 12.5px; color: var(--op-text-3); margin: 10px 0 14px; }

/* ---------- Home: intro + portfolio (pantalla 3 XD) ---------- */
.op-home-intro { padding-top: 6px; }
.op-intro-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}
.op-intro-title { font-size: clamp(28px, calc(28px + 18 * var(--fluid)), 46px); font-weight: 400; line-height: 1.2; letter-spacing: -0.3px; }
.op-intro-copy {
    font-size: clamp(15px, calc(15px + 6 * var(--fluid)), 21px);
    font-weight: 300;                 /* light: contrasta con el título */
    color: var(--op-text-2);
    line-height: 1.55;
    padding-top: 4px;
}
.op-intro-copy strong { font-weight: 500; color: var(--op-text); }
.op-intro-sep { border: none; border-top: 1px solid #2b2b2b; margin: 30px 0 4px; }
@media (max-width: 800px) {
    .op-intro-grid { grid-template-columns: 1fr; gap: 16px; }
}

.op-portfolio-title {
    display: flex; align-items: center; gap: 10px;
    font-size: clamp(18px, calc(18px + 7 * var(--fluid)), 25px); font-weight: 400; margin: 30px 0 24px;
}
.op-home-ico { font-size: 22px; }
.op-portfolio-ico {
    width: 26px; height: 26px; flex: none;
    background-color: #fff;
    -webkit-mask-image: var(--icon); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat;
            mask-image: var(--icon); mask-size: contain; mask-position: center; mask-repeat: no-repeat;
}

.op-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px 30px;
}
.op-pcard {
    display: block;
    background: #0e0e0e;
    border: 1px solid #232323;
    border-radius: 12px;
    padding: 14px 14px 18px;
    text-decoration: none;
    color: var(--op-text);
    transition: border-color .15s ease, transform .15s ease;
}
.op-pcard:hover { transform: translateY(-2px); }
.op-pcard-media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: var(--op-surface-2);
    transition: box-shadow .18s ease;
}
/* Rollover: al pasar el mouse por la card, la foto toma el borde verde. */
.op-pcard:hover .op-pcard-media { box-shadow: 0 0 0 4px var(--op-green); }
.op-pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.op-pcard-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 60px; color: var(--op-text-3);
}
.op-pcard-chip {
    display: inline-block;
    margin-top: 14px;
    background: #1b1b26;
    color: #d7d7e2;
    font-size: clamp(13px, calc(13px + 5 * var(--fluid)), 18px);
    padding: 6px 16px;
    border-radius: 6px;
}
.op-pcard-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.op-pcard-title { font-size: clamp(20px, calc(20px + 13 * var(--fluid)), 33px); font-weight: 400; }
.op-pcard-arrow {
    width: 22px; height: 22px; flex: none;
    background-color: #cfcfcf;
    -webkit-mask-image: var(--icon); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat;
            mask-image: var(--icon); mask-size: contain; mask-position: center; mask-repeat: no-repeat;
    transform: rotate(225deg);
}

/* ---------- Carrusel promocional (destacados) ---------- */
.op-promos { margin: 200px 0 8px; }
.op-promos-track {
    display: flex; gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.op-promos-track::-webkit-scrollbar { display: none; }
/* Arrastrable: mientras se arrastra se desactiva el snap para que siga al
   mouse, y al soltar el snap reacomoda la tarjeta. */
.op-promos-track { cursor: grab; }
.op-promos-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}
.op-promos-track.is-dragging img { pointer-events: none; }

/* Contenedor relativo para posicionar las flechas encima del carrusel. */
.op-promos-viewport { position: relative; }

/* Flechas de navegación: se muestran al pasar el mouse por el carrusel. */
.op-promo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    border-radius: 50%;
    background: rgba(10,10,10,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.12);
    opacity: 0;
    transition: opacity .2s ease, background .15s ease, transform .12s ease;
    z-index: 3;
}
.op-promos-viewport:hover .op-promo-nav { opacity: 1; }
.op-promo-nav:hover { background: rgba(10,10,10,.8); }
.op-promo-nav:active { transform: translateY(-50%) scale(.94); }
.op-promo-prev { left: 10px; }
.op-promo-next { right: 10px; }
.op-promo-nav::before {
    content: "";
    width: 11px; height: 11px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}
.op-promo-prev::before { transform: rotate(-135deg); margin-left: 4px; }
.op-promo-next::before { transform: rotate(45deg);  margin-right: 4px; }

/* En pantallas táctiles las flechas quedan siempre visibles (no hay hover). */
@media (hover: none) {
    .op-promo-nav { opacity: 1; background: rgba(10,10,10,.45); }
}
@media (prefers-reduced-motion: reduce) {
    .op-promos-track { scroll-behavior: auto; }
}

.op-promo {
    flex: 0 0 auto;
    width: min(580px, 82%);
    aspect-ratio: 16 / 10;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    background: var(--op-surface-2);
    transition: transform .2s cubic-bezier(.16,1,.3,1);
}
.op-promo:hover { transform: translateY(-3px); }
.op-promo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .op-promo { width: 88%; } .op-promos { margin-top: 120px; } }

/* ---------- Footer ---------- */
.op-footer {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px;
    margin-top: 60px;
}
.op-footer-social { display: flex; gap: 20px; align-items: center; flex: 1; }
.op-footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    opacity: .9;
    transition: opacity .15s ease, transform .12s ease;
}
.op-footer-social a:hover { opacity: 1; transform: translateY(-1px); }
.op-footer-social img { height: 19px; width: auto; display: block; }
.op-footer-mark { display: flex; align-items: center; }
.op-footer-mark img { height: 30px; width: auto; display: block; }
.op-footer-spacer { flex: 1; }

/* ---------- Header en celular: réplica del de oddino.com ----------
   Mismo punto de quiebre (767px): header de 70px con logo y hamburguesa
   sola (el botón de acceso pasa al panel); el panel es a pantalla completa,
   negro al 92%, con los ítems centrados en filas de 72px, y debajo el botón
   de acceso (o "Mi perfil") y las redes. Medido el 2026-09-09. */
@media (max-width: 767px) {
    /* Sin relleno derecho: el botón de 44px centra el ícono de 26px, que así
       queda a ~9px del borde, como el de oddino.com (10px). */
    .op-header { height: 70px; padding: 0 0 0 28px; }
    /* El logo de oddino.com escala con el ancho (75px a 375, 90px a 430,
       tope 100px): 24% del ancho útil (viewport menos los márgenes de 28px). */
    .op-logo {
        width: clamp(75px, calc((100vw - 56px) * .24), 100px);
        height: auto;
    }
    /* El alto sale de la proporción real del SVG, no de una aproximación 108/27. */
    .op-logo img { height: auto; }
    .op-user { display: none; }
    .op-nav { display: none; }
    .op-nav-toggle { display: flex; }
    .op-nav-toggle-ic { width: 26px; height: 26px; }
    /* En el panel vertical no hay separadores (oddino.com tampoco los muestra). */
    .op-nav-sep { display: none; }

    .op-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        position: fixed;
        top: 70px; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, .92);
        padding: 93px 10px 40px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .op-nav.is-open > a {
        width: 100%;
        text-align: center;
        padding: 26px 0;
        font-size: 16px;
        line-height: 20px;
        font-weight: 400;
        color: #f8f8f8;
    }
    .op-nav.is-open .op-nav-extra {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }
    .op-nav.is-open .op-nav-extra .op-btn {
        padding: 10px 18px;
        font-size: 13px;
        line-height: 13px;   /* botón de 35px, como en el panel de oddino.com */
        font-weight: 500;
        letter-spacing: 1px;
    }
    .op-nav-social { display: flex; }
    .op-nav-social a {
        display: flex; align-items: center; justify-content: center;
        width: 30px; height: 30px;
    }
    .op-nav-social img { width: 20px; height: 20px; display: block; }

    /* Con el panel abierto no se scrollea el fondo. */
    html.op-nav-open { overflow: hidden; }
}

@media (max-width: 700px) {
    .op-main { padding: 24px 16px 60px; }
    .op-devactions { gap: 26px; }
    /* El ancho lo maneja el 100vw de arriba; acá sólo el pegado al header. */
    .op-devhero { margin-top: -24px; }
}

/* ---------- Unidades en celular: tabla → tarjetas ---------- */
@media (max-width: 720px) {
    .op-filters select { flex: 1 1 42%; }

    .op-table-wrap { border: none; border-radius: 0; overflow: visible; }
    .op-table { min-width: 0; }
    /* thead accesible pero oculto visualmente */
    .op-table thead {
        position: absolute; width: 1px; height: 1px;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
    .op-table, .op-table tbody, .op-table tr, .op-table td { display: block; width: 100%; }
    /* El filtro por piso oculta filas con [hidden]; que el modo tarjeta lo respete. */
    .op-table tr[hidden] { display: none; }
    .op-table tr,
    .op-table tbody tr:nth-child(even) {
        background: var(--op-surface);
        border: 1px solid var(--op-border);
        border-radius: var(--op-radius);
        margin-bottom: 14px;
        padding: 4px 2px 8px;
    }
    .op-table td {
        display: flex; align-items: center; justify-content: space-between;
        gap: 16px;
        padding: 9px 16px;
        border-bottom: 1px solid var(--op-border);
        font-size: 15px;
        text-align: right;
    }
    .op-table td::before {
        content: attr(data-label);
        color: var(--op-text-3);
        font-size: 11.5px;
        letter-spacing: .5px;
        text-transform: uppercase;
        text-align: left;
        flex: none;
    }
    .op-table td.op-guarismo {
        font-size: 22px; font-weight: 600;
        justify-content: flex-start;
        background: #000;
        border-radius: 8px;
        border-bottom: none;
        margin: 2px 6px 10px;
        padding: 14px 16px;
    }
    .op-table td.op-guarismo::before { content: none; }
    .op-table td.op-cell-action {
        border-bottom: none;
        padding-top: 12px;
    }
    .op-table td.op-cell-action::before { content: none; }
    .op-table td.op-cell-action .op-btn { width: 100%; padding: 12px; font-size: 15px; }
}
