/* ============================================================
   boxbagend.okmystay.com — estilos de la one-page (v2).
   Marca: verde lima de fondo (#c9e46a, el del v1) + charcoal.
   ============================================================ */

:root {
    --lima:      #c9e46a;
    --lima-suave:#eef7d3;
    --verde:     #5d8f23;
    --verde-osc: #47701a;
    --charcoal:  #29323a;
    --gris:      #6b7680;
    --blanco:    #ffffff;
}

* { box-sizing: border-box; }

/* ---------- Selector de idiomas (pie de página) ---------- */
.langbar-footer {
    margin-top: 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}
.langbar-footer a {
    color: #b9c4cd; text-decoration: none;
    padding: 0 0.4rem;
}
.langbar-footer a:hover { color: #fff; }
.langbar-footer a.cur { color: var(--lima); font-weight: 700; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    color: var(--charcoal);
    background: var(--blanco);
    line-height: 1.55;
}

h1, h2, h3 { line-height: 1.2; }
a { color: var(--verde-osc); }

/* ---------- Hero ---------- */
.hero {
    background: var(--lima);
    text-align: center;
    padding: 3.2rem 1.2rem 3.6rem;
}
.hero-logo { width: min(340px, 78vw); margin-bottom: 1.6rem; }
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); margin: 0 0 0.6rem; }
.hero-sub {
    max-width: 34rem; margin: 0 auto 1.4rem;
    font-size: 1.05rem; color: #3c4750;
}
.hero-chips { margin-bottom: 1.6rem; }
.chip {
    display: inline-block;
    background: rgba(255,255,255,0.75);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin: 0.2rem 0.25rem;
    font-size: 0.92rem;
}

/* ---------- CTA ---------- */
.cta {
    display: inline-block;
    background: var(--verde);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.8rem 2rem;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.cta:hover { background: var(--verde-osc); transform: translateY(-1px); }
.cta-full { width: 100%; margin-top: 0.6rem; }
.cta-outline {
    background: transparent;
    color: var(--verde-osc) !important;
    border: 2px solid var(--verde);
}
.cta-outline:hover { background: var(--lima-suave); }

/* ---------- Secciones ---------- */
section { padding: 3rem 1.2rem; max-width: 62rem; margin: 0 auto; }
section h2 { text-align: center; font-size: 1.7rem; margin: 0 0 1.8rem; }

/* Cómo funciona */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}
.step {
    background: var(--lima-suave);
    border-radius: 14px;
    padding: 1.4rem 1.2rem;
    text-align: center;
}
.step-num {
    width: 2.4rem; height: 2.4rem; line-height: 2.4rem;
    margin: 0 auto 0.7rem;
    background: var(--verde);
    color: #fff; font-weight: 700; font-size: 1.15rem;
    border-radius: 50%;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.step p { margin: 0; font-size: 0.94rem; color: #3c4750; }

/* Tamaños */
.sizes { background: #fff; }
.sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.size-card {
    border: 2px solid var(--lima);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
}
.size-card h3 { margin: 0 0 0.3rem; color: var(--verde-osc); }
.size-card p { margin: 0; font-size: 0.9rem; color: var(--gris); }
.sizes-note {
    text-align: center; margin-top: 1.4rem;
    font-size: 0.95rem; color: #3c4750;
}

/* Ubicación — banda verde suave a todo el ancho (separa de reseñas) */
.location {
    background: var(--lima-suave);
    max-width: none;
}
.location-inner {
    max-width: 62rem; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
@media (max-width: 720px) { .location-inner { grid-template-columns: 1fr; } }
.location h2 { text-align: left; }
.location-addr { font-size: 1.05rem; margin-bottom: 1.2rem; }
.location-img {
    width: 100%; border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

/* Mapa estático clicable → indicaciones (place-card) */
.location-map {
    position: relative; display: block; line-height: 0;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    text-decoration: none; color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}
.location-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}
.location-map img { width: 100%; height: auto; display: block; }
.location-map-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 0.7rem;
    padding: 2rem 0.95rem 0.9rem;
    background: linear-gradient(to top,
        rgba(15,20,13,0.95) 0%,
        rgba(15,20,13,0.90) 42%,
        rgba(15,20,13,0.55) 76%,
        rgba(15,20,13,0) 100%);
    color: #fff; line-height: 1.3;
}
.location-map-cap .cap-txt { font-size: 0.85rem; text-shadow: 0 1px 3px rgba(0,0,0,0.55); }
.location-map-cap .cap-txt strong { display: block; font-size: 0.98rem; }
.location-map-cap .cap-chip {
    flex: 0 0 auto;
    width: 2rem; height: 2rem; border-radius: 50%;
    background: rgba(255,255,255,0.92); color: var(--verde-osc);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05rem;
    transition: background 0.15s, transform 0.15s;
}
.location-map:hover .cap-chip { background: #fff; transform: translateY(-1px); }
.link-reviews {
    display: inline-block; margin-left: 1rem;
    font-weight: 600;
}

/* ---------- Reseñas de Google ---------- */
/* Estrella con relleno parcial (4,6 → 92%) por doble capa. */
.stars {
    position: relative; display: inline-block;
    color: #dbe0e5; font-size: 1rem; letter-spacing: 2px;
    line-height: 1; white-space: nowrap;
}
.stars::before {
    content: "★★★★★";
    position: absolute; left: 0; top: 0;
    width: var(--pct, 0%); overflow: hidden;
    color: #f5a623; letter-spacing: 2px; white-space: nowrap;
}
.stars-sm { font-size: 0.88rem; }

/* Tira de reseñas */
.reviews { text-align: center; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.2rem; text-align: left; align-items: start;
}
.review-card {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid #eef1e6; border-radius: 16px;
    padding: 1.3rem 1.35rem 1.2rem;
    box-shadow: 0 6px 20px rgba(41,50,58,0.06);
    transition: transform 0.15s, box-shadow 0.15s;
}
.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(41,50,58,0.12);
}
/* Comilla decorativa de testimonio */
.review-card::after {
    content: "\201D";
    position: absolute; top: 0.35rem; right: 0.95rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.2rem; line-height: 1;
    color: var(--lima); opacity: 0.55; pointer-events: none;
}
.review-head { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.7rem; }
.review-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    object-fit: cover; flex: 0 0 auto;
    background: var(--lima-suave); border: 2px solid var(--lima-suave);
}
.review-who { min-width: 0; }
.review-author {
    display: block; max-width: 100%;
    font-weight: 700; color: var(--charcoal);
    text-decoration: none; font-size: 1rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.review-author:hover { color: var(--verde-osc); text-decoration: underline; }
.review-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.2rem; }
.review-when { font-size: 0.78rem; color: var(--gris); }
.review-text {
    margin: 0.1rem 0 0; font-size: 0.93rem; color: #46525b; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical;
    overflow: hidden;
}
.reviews-actions {
    margin-top: 1.9rem;
    display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}

/* ---------- Registro ---------- */
.register { background: var(--lima); border-radius: 0; max-width: none; }
.register-card {
    max-width: 26rem; margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}
.register-card h2 { margin-top: 0; margin-bottom: 0.4rem; }
.register-sub { text-align: center; color: var(--gris); font-size: 0.92rem;
                margin: 0 0 1.2rem; }
.register-card label { display: block; font-weight: 600; font-size: 0.88rem;
                       margin: 0.8rem 0 0.25rem; }
.register-card input[type="text"],
.register-card input[type="tel"],
.register-card select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    font-size: 1rem;
    border: 1.5px solid #cdd6dd;
    border-radius: 8px;
}
.register-card input:focus, .register-card select:focus {
    outline: none; border-color: var(--verde);
}
.check { display: flex; gap: 0.5rem; align-items: flex-start;
         font-weight: 400 !important; font-size: 0.86rem !important;
         margin-top: 0.7rem !important; }
.check input { margin-top: 0.2rem; }
.hp { position: absolute; left: -5000px; opacity: 0; height: 0; }
.form-error { color: #c0392b; font-size: 0.88rem; min-height: 1.2rem;
              margin-top: 0.6rem; }
.hidden { display: none; }
.otp-info { font-size: 0.95rem; }
.otp-input { letter-spacing: 8px; font-size: 1.4rem !important;
             text-align: center; }
.otp-ok { text-align: center; font-size: 1.1rem; color: var(--verde-osc);
          font-weight: 600; padding: 1rem 0; }
.link-btn {
    display: block; width: 100%;
    background: none; border: 0;
    color: var(--verde-osc); text-decoration: underline;
    font-size: 0.88rem; margin-top: 0.7rem; cursor: pointer;
}
.link-btn:disabled { color: var(--gris); text-decoration: none; cursor: default; }

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    padding: 2.2rem 1.2rem 2.6rem;
    background: var(--charcoal);
    color: #cdd6dd;
    font-size: 0.9rem;
}
.footer a { color: var(--lima); }
.footer-icon { width: 44px; margin-bottom: 0.8rem; }
.footer-company { margin: 0.8rem 0 0; color: #8b98a3; }

/* Botón "Ir a mi panel" del repetidor (hero) */
.hero-panel { margin-top: 0.9rem; }
.hero-panel-hint { font-size: 0.8rem; color: #4c5a3a; margin-top: 0.3rem; }

/* Botones de la sección ubicación */
.location-btns { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.location-btns .link-reviews { margin-left: 0; }

/* Powered by */
.footer-powered { margin: 0.5rem 0 0; font-size: 0.82rem; color: #8b98a3; }
.footer-powered a { color: var(--lima); text-decoration: none; font-weight: 600; }

/* ---------- Modales legales (dialog nativo) ---------- */
.legal-dlg {
    border: 0; border-radius: 14px;
    max-width: min(44rem, 92vw);
    width: 100%;
    max-height: 86vh;
    padding: 0;
    box-shadow: 0 18px 50px rgba(0,0,0,0.3);
}
.legal-dlg::backdrop { background: rgba(20,26,30,0.55); }
.legal-dlg-head {
    position: sticky; top: 0;
    display: flex; justify-content: flex-end; align-items: center; gap: 0.8rem;
    background: var(--lima);
    padding: 0.5rem 0.9rem;
}
.legal-dlg-note { font-size: 0.78rem; color: #3c4750; margin-right: auto; }
.legal-dlg-close {
    background: #fff; border: 0; border-radius: 8px;
    padding: 0.3rem 0.8rem; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; color: var(--charcoal);
}
.legal-dlg-body { padding: 0.4rem 1.4rem 1.4rem; }
.legal-dlg-body h1 { font-size: 1.3rem; }
.legal-dlg-body h2 { font-size: 1.02rem; margin-top: 1.3rem; }
.legal-dlg-body p, .legal-dlg-body li { font-size: 0.92rem; }

/* ---------- Legales ---------- */
.legal-body { background: #f6f8f2; }
.legal-wrap {
    max-width: 44rem; margin: 2rem auto; padding: 2rem 1.6rem;
    background: #fff; border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
.legal-logo { width: min(280px, 70vw); display: block; margin: 0 auto 1.4rem; }
.legal-wrap h1 { font-size: 1.5rem; }
.legal-wrap h2 { font-size: 1.1rem; margin-top: 1.6rem; }
.legal-back { margin-top: 2rem; }
