/* ------------------------------------------------------------------
   reservavisita.es · estilos de la web pública
   Usado por layouts/publico.blade.php (portada y páginas de sector).
   ------------------------------------------------------------------ */

:root {
    --rv-ink: #16233a;
    --rv-muted: #5b6b85;
    --rv-brand: #81B143;
    --rv-brand-dark: #6b9636;
    --rv-soft: #f4f7fc;
    --rv-line: #e2e8f4;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--rv-ink);
    background: #fff;
}

/* ---------- Navegación ---------- */

.rv-nav {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rv-line);
}

.rv-logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--rv-ink);
    text-decoration: none;
}

.rv-logo span { color: var(--rv-brand); }

/* El logotipo de la marca en la cabecera. */
.rv-logo img {
    height: 2.6rem;
    width: auto;
    display: block;
}

@media (max-width: 575.98px) {
    .rv-logo img { height: 2.1rem; }
}

.rv-logo-light { color: #fff; }
.rv-logo-light span { color: #a8d17a; }

.rv-nav .nav-link.active { color: var(--rv-brand); }

/* ---------- Botones ---------- */

.btn-rv {
    background: var(--rv-brand);
    border-color: var(--rv-brand);
    color: #fff;
}

.btn-rv:hover,
.btn-rv:focus {
    background: var(--rv-brand-dark);
    border-color: var(--rv-brand-dark);
    color: #fff;
}

/* ---------- Cabeceras ---------- */

.rv-hero {
    background: linear-gradient(160deg, #f7faff 0%, #eef4ff 55%, #fff 100%);
    padding: 5rem 0 4.5rem;
}

.rv-hero h1 {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.rv-lead {
    color: var(--rv-muted);
    font-size: 1.12rem;
}

.rv-eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    font-weight: 700;
    color: var(--rv-brand);
}

/* ---------- Tarjetas ---------- */

.rv-booking-card {
    border: 1px solid var(--rv-line);
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(22, 35, 58, .10);
}

.rv-card {
    border: 1px solid var(--rv-line);
    border-radius: .85rem;
    padding: 1.5rem 1.25rem;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    background: #fff;
}

a.rv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(22, 35, 58, .09);
    border-color: #c9d8f5;
    color: inherit;
}

.rv-card i {
    font-size: 1.7rem;
    color: var(--rv-brand);
}

/* ---------- Pasos ---------- */

.rv-step-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--rv-brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    flex: 0 0 auto;
}

/* ---------- Utilidades ---------- */

.rv-soft { background: var(--rv-soft); }

.rv-footer { background: var(--rv-ink); }

.rv-footer a {
    color: #c3d2ea;
    text-decoration: none;
}

.rv-footer a:hover { color: #fff; }

/* ------------------------------------------------------------------
   Mockups de producto (agenda y TPV) de las páginas de sector.
   Se dibujan en HTML/CSS, no son capturas de pantalla.
   ------------------------------------------------------------------ */

.mk {
    border: 1px solid var(--rv-line);
    border-radius: .8rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 45px rgba(22, 35, 58, .12);
}

.mk-bar {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .6rem .8rem;
    background: #f1f4fa;
    border-bottom: 1px solid var(--rv-line);
}

.mk-dot { width: 10px; height: 10px; border-radius: 50%; }

.mk-url {
    margin-left: .6rem;
    font-size: .72rem;
    color: var(--rv-muted);
    background: #fff;
    border: 1px solid var(--rv-line);
    border-radius: 999px;
    padding: .1rem .6rem;
}

.mk-body { padding: 1rem; }

.mk-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
    font-size: .9rem;
}

.mk-chip {
    font-size: .72rem;
    background: var(--rv-soft);
    border: 1px solid var(--rv-line);
    border-radius: 999px;
    padding: .1rem .6rem;
    color: var(--rv-muted);
}

/* ---- Agenda ---- */

.mk-grid {
    display: grid;
    border: 1px solid var(--rv-line);
    border-radius: .5rem;
    overflow: hidden;
}

.mk-cell {
    border-right: 1px solid var(--rv-line);
    border-bottom: 1px solid var(--rv-line);
    padding: .4rem .45rem;
    min-height: 46px;
    font-size: .74rem;
}

.mk-pro {
    background: var(--rv-soft);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .35rem;
    min-height: 38px;
}

.mk-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .65rem;
    flex: 0 0 auto;
}

.mk-corner { background: var(--rv-soft); min-height: 38px; }

.mk-hora {
    background: #fafbfe;
    color: var(--rv-muted);
    font-size: .7rem;
    text-align: right;
}

.mk-cita {
    background: #f4f7ff;
    border-left: 3px solid var(--rv-brand);
    border-radius: .3rem;
    padding: .3rem .4rem;
    height: 100%;
}

.mk-cita-tit { font-weight: 600; display: block; line-height: 1.2; }
.mk-cita-sub { color: var(--rv-muted); font-size: .68rem; }

/* ---- TPV ---- */

.mk-tabla { width: 100%; font-size: .8rem; }
.mk-tabla td { padding: .5rem .25rem; border-bottom: 1px solid var(--rv-line); }
.mk-tabla tfoot td { border-bottom: 0; border-top: 2px solid var(--rv-ink); padding-top: .6rem; }
.mk-total { color: var(--rv-brand); font-size: 1.05rem; }

.mk-pagos { display: flex; gap: .4rem; margin-top: .9rem; flex-wrap: wrap; }

.mk-pago {
    font-size: .72rem;
    border: 1px solid var(--rv-line);
    border-radius: 999px;
    padding: .2rem .7rem;
    color: var(--rv-muted);
}

/* ---- Hueco para fotos reales del negocio ---- */

.rv-foto {
    border: 2px dashed var(--rv-line);
    border-radius: .85rem;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    color: var(--rv-muted);
    background: var(--rv-soft);
    text-align: center;
    font-size: .85rem;
}

.rv-foto i { font-size: 1.6rem; display: block; margin-bottom: .35rem; opacity: .6; }

/* ------------------------------------------------------------------
   Slider de portada: una diapositiva por sector, con foto de fondo.
   ------------------------------------------------------------------ */

.rv-slide {
    min-height: 560px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

/* Velo oscuro para que el texto se lea sobre cualquier foto. */
.rv-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 16, 28, .82) 0%, rgba(10, 16, 28, .55) 55%, rgba(10, 16, 28, .25) 100%);
}

.rv-slide .container { position: relative; z-index: 1; }

.rv-slide-texto {
    max-width: 34rem;
    color: #fff;
}

.rv-slide-texto h1 {
    font-weight: 700;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.rv-slide-texto p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .88);
}

.rv-slider .carousel-indicators { margin-bottom: 1.5rem; }

@media (max-width: 767.98px) {
    .rv-slide { min-height: 440px; }
    .rv-slide::before {
        background: linear-gradient(180deg, rgba(10, 16, 28, .55) 0%, rgba(10, 16, 28, .85) 100%);
    }
}

/* ---- Galería de fotos del sector ---- */

.rv-galeria {
    border-radius: .85rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(22, 35, 58, .12);
    background: #fff;
}

.rv-galeria img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.rv-galeria figcaption {
    padding: .7rem .9rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--rv-ink);
}

/* ------------------------------------------------------------------
   Composición de mockups del slider: la agenda al fondo, la caja
   superpuesta y el móvil delante.
   ------------------------------------------------------------------ */

.rv-compo {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 2rem;
}

.rv-compo-agenda {
    transform: rotate(-1.2deg);
    box-shadow: 0 28px 60px rgba(5, 10, 20, .45);
    border-radius: .8rem;
}

.rv-compo-tpv {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 15rem;
    transform: rotate(2deg);
    box-shadow: 0 24px 50px rgba(5, 10, 20, .5);
    border-radius: .8rem;
}

.rv-compo-movil {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
}

/* Los mockups pierden su sombra propia dentro de la composición:
   la pone el contenedor, que es quien controla la profundidad. */
.rv-compo .mk { box-shadow: none; }

/* ---- Móvil ---- */

.mv {
    width: 12rem;
    background: #0b1220;
    border-radius: 1.6rem;
    padding: .55rem;
    box-shadow: 0 26px 55px rgba(5, 10, 20, .55);
    position: relative;
}

.mv-notch {
    width: 3.2rem;
    height: .28rem;
    background: #2a3446;
    border-radius: 999px;
    margin: .1rem auto .45rem;
}

.mv-pantalla {
    background: #fff;
    border-radius: 1.2rem;
    padding: .8rem .7rem;
}

.mv-cabecera { margin-bottom: .6rem; }

.mv-titulo {
    display: block;
    font-weight: 700;
    font-size: .85rem;
    color: var(--rv-ink);
}

.mv-sub {
    display: block;
    font-size: .68rem;
    color: var(--rv-muted);
}

.mv-horas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .3rem;
    margin-bottom: .6rem;
}

.mv-hora {
    font-size: .66rem;
    text-align: center;
    padding: .3rem .1rem;
    border: 1px solid var(--rv-line);
    border-radius: .4rem;
    color: var(--rv-muted);
}

.mv-hora.elegida {
    background: var(--rv-brand);
    border-color: var(--rv-brand);
    color: #fff;
    font-weight: 600;
}

.mv-resumen {
    background: var(--rv-soft);
    border-radius: .45rem;
    padding: .4rem .5rem;
    margin-bottom: .6rem;
}

.mv-resumen-tit {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    color: var(--rv-ink);
    line-height: 1.2;
}

.mv-resumen-sub {
    font-size: .64rem;
    color: var(--rv-muted);
}

.mv-boton {
    background: var(--rv-brand);
    color: #fff;
    text-align: center;
    font-size: .72rem;
    font-weight: 600;
    padding: .45rem;
    border-radius: .45rem;
}

/* ------------------------------------------------------------------
   Enlaces en verde: Bootstrap los pinta de azul por defecto.
   ------------------------------------------------------------------ */

.rv-nav .nav-link {
    color: var(--rv-ink);
    font-weight: 500;
}

.rv-nav .nav-link:hover,
.rv-nav .nav-link:focus,
.rv-nav .nav-link.active {
    color: var(--rv-brand);
}

.text-primary { color: var(--rv-brand) !important; }

a { color: var(--rv-brand); }
a:hover { color: var(--rv-brand-dark); }

.rv-slide-texto .badge { color: var(--rv-brand) !important; }

/* ---- Embudo de estados en los mockups ---- */

.mk-estado {
    display: grid;
    grid-template-columns: 10px 6.5rem 1fr;
    align-items: center;
    gap: .5rem;
    padding: .3rem 0;
    border-bottom: 1px solid var(--rv-line);
    font-size: .74rem;
}

.mk-estado:last-child { border-bottom: 0; }
.mk-estado-punto { width: 10px; height: 10px; border-radius: 50%; }
.mk-estado-tit { font-weight: 600; }
.mk-estado-ayuda { color: var(--rv-muted); font-size: .68rem; }

/* ---- Cabecera de la página de sector ---- */

.rv-slide-sector { min-height: 460px; }

/* ---- Carrusel de capacidades ---- */

.rv-cap-icono {
    font-size: 2.4rem;
    color: var(--rv-brand);
}

.rv-cap-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: 2.5rem;
}

.rv-cap-tab {
    border: 1px solid var(--rv-line);
    background: #fff;
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .82rem;
    color: var(--rv-muted);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: border-color .12s, color .12s, background .12s;
}

.rv-cap-tab:hover { border-color: #b9d79a; color: var(--rv-ink); }

.rv-cap-tab.active {
    border-color: var(--rv-brand);
    background: var(--rv-brand);
    color: #fff;
    font-weight: 600;
}

/* El carrusel necesita alto estable para que no salte al cambiar. */
#rvCapacidades .carousel-item { min-height: 22rem; }
