/* ============================================================
   RST · Silo Construcción (/construccion/ y sus servicios)
   Mobile-first: los estilos base son para celular y se amplían
   en 701px y 901px. Usa los tokens de style.css.
   ============================================================ */

/* ---------- Ritmo vertical más compacto en celular ---------- */
@media (max-width: 700px) {
    .rst-cons-main .rst-section { padding: 56px 0; }
    .rst-cons-main .rst-section--tight { padding: 44px 0; }
    .rst-cons-main .rst-cta { padding: 72px 0 80px; }
}

/* ---------- Enlaces dentro de textos ---------- */
.rst-cons-prose a,
.rst-cons-pain a,
.rst-cons-faq__a a,
.rst-cons-scope__intro a,
.rst-cons-scope__list a,
.rst-cons-driver__desc a,
.rst-cons-terms a:not(.rst-btn),
.rst-cons-note a,
.rst-cons-head .rst-lead a {
    color: var(--rst-orange-600);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.rst-cons-local__desc a,
.rst-cons-local-section .rst-lead a {
    color: var(--rst-orange-400);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rst-cons-ico { width: 20px; height: 20px; flex: none; }

/* La etiqueta (eyebrow) siempre en su propia línea, aunque el título sea corto. */
.rst-cons-main .rst-eyebrow { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.rst-cons-hero {
    min-height: 0;
    padding: 124px 0 44px;
    align-items: flex-end;
}

.rst-cons-hero .rst-page-hero__media picture { display: block; width: 100%; height: 100%; }

.rst-cons-hero .rst-page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rst-cons-hero .rst-page-hero__overlay {
    background: linear-gradient(180deg, rgba(5, 14, 28, 0.74) 0%, rgba(5, 14, 28, 0.86) 50%, rgba(5, 14, 28, 0.96) 100%);
}

/* Migas de pan en una sola línea: si cambia la altura al cargar la fuente, la página "salta" (CLS). */
.rst-cons-hero .rst-breadcrumb {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    column-gap: 10px;
    font-size: 11px;
    line-height: 16px;
    height: 16px;
    margin-bottom: 20px;
}

.rst-cons-hero .rst-breadcrumb > * { flex: none; }

.rst-cons-hero .rst-breadcrumb > span:last-child {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rst-cons-hero h1 {
    font-size: clamp(1.9rem, 7.6vw, 2.6rem);
    line-height: 1.08;
    margin-bottom: 16px;
}

.rst-cons-hero .rst-lead {
    font-size: 1.0625rem;
    line-height: 1.55;
    margin-bottom: 24px;
}

.rst-cons-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rst-cons-hero__actions .rst-btn {
    width: 100%;
    justify-content: center;
    padding: 15px 22px;
}

.rst-cons-hero__badges {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rst-cons-hero__badges li {
    font-family: var(--rst-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 2px;
}

@media (min-width: 701px) {
    .rst-cons-hero {
        min-height: 72vh;
        padding: 150px 0 80px;
        align-items: center;
    }
    .rst-cons-hero .rst-page-hero__overlay {
        background: linear-gradient(135deg, rgba(5, 14, 28, 0.92) 0%, rgba(10, 37, 64, 0.62) 100%);
    }
    .rst-cons-hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); }
    .rst-cons-hero .rst-lead { font-size: 1.25rem; margin-bottom: 32px; }
    .rst-cons-hero__actions { flex-direction: row; flex-wrap: wrap; }
    .rst-cons-hero__actions .rst-btn { width: auto; padding: 16px 30px; }
    .rst-cons-hero__badges { margin-top: 32px; gap: 10px; }
    .rst-cons-hero__badges li { font-size: 11px; padding: 7px 12px; }
}

/* ============================================================
   ENCABEZADOS DE SECCIÓN
   ============================================================ */
.rst-cons-head {
    max-width: 780px;
    margin-bottom: 32px;
}

.rst-cons-head h2 {
    font-size: clamp(1.65rem, 6.6vw, 2.75rem);
    margin-bottom: 28px;
}

.rst-cons-head .rst-lead {
    font-size: 1.0625rem;
    margin: 0;
}

.rst-cons-head--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.rst-cons-head--center .rst-eyebrow { justify-content: center; }

.rst-cons-head--center .rst-heading-line::after {
    left: 50%;
    transform: translateX(-50%);
}

.rst-cons-local-section .rst-cons-head .rst-lead { color: var(--rst-text-inverse-muted); }

@media (min-width: 701px) {
    .rst-cons-head { margin-bottom: 48px; }
    .rst-cons-head .rst-lead { font-size: 1.2rem; }
}

/* ============================================================
   RESUMEN + DATOS CLAVE
   ============================================================ */
.rst-cons-summary__grid {
    display: grid;
    gap: 32px;
}

.rst-cons-summary__text h2 {
    font-size: clamp(1.65rem, 6.6vw, 2.5rem);
    margin-bottom: 28px;
}

.rst-cons-prose p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--rst-text);
}

.rst-cons-prose p:last-child { margin-bottom: 0; }

.rst-cons-prose strong { color: var(--rst-navy-800); }

.rst-cons-facts {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rst-border);
    border: 1px solid var(--rst-border);
    border-radius: var(--rst-radius-lg);
    overflow: hidden;
    align-self: start;
}

.rst-cons-facts__item {
    background: #FFFFFF;
    padding: 18px 16px;
}

.rst-cons-facts dt {
    font-family: var(--rst-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rst-orange-500);
    margin-bottom: 6px;
}

.rst-cons-facts dd {
    margin: 0;
    font-family: var(--rst-font-display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    color: var(--rst-navy-800);
}

@media (min-width: 901px) {
    .rst-cons-summary__grid {
        grid-template-columns: 1.35fr 1fr;
        gap: 72px;
        align-items: start;
    }
    .rst-cons-facts__item { padding: 24px; }
    .rst-cons-facts dd { font-size: 17px; }
}

/* ============================================================
   PILAR: GRUPOS DE SERVICIOS Y TARJETAS
   ============================================================ */
.rst-cons-groups {
    display: grid;
    gap: 40px;
}

.rst-cons-group__head { margin-bottom: 16px; }

.rst-cons-group__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.rst-cons-group__title::before {
    content: '';
    width: 18px;
    height: 3px;
    background: var(--rst-orange-500);
    flex: none;
}

.rst-cons-group__desc {
    font-size: 15px;
    margin: 0;
}

.rst-cons-cards {
    display: grid;
    gap: 12px;
}

.rst-cons-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 52px 20px 20px;
    background: #FFFFFF;
    border: 1px solid var(--rst-border);
    border-radius: var(--rst-radius-lg);
    transition: border-color 0.3s var(--rst-ease), transform 0.3s var(--rst-ease), box-shadow 0.3s var(--rst-ease);
}

.rst-cons-card::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--rst-orange-500);
    transition: transform 0.3s var(--rst-ease);
}

.rst-cons-card:hover {
    border-color: var(--rst-orange-500);
    transform: translateY(-2px);
    box-shadow: var(--rst-shadow-md);
}

.rst-cons-card:hover::after { transform: translate(4px, -50%); }

.rst-cons-card__group {
    font-family: var(--rst-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rst-orange-500);
}

.rst-cons-card__title {
    font-family: var(--rst-font-display);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.25;
    color: var(--rst-navy-800);
}

.rst-cons-card__desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--rst-text-muted);
}

.rst-cons-card__more { display: none; }

@media (min-width: 701px) {
    .rst-cons-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (min-width: 1101px) {
    .rst-cons-group {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 48px;
        align-items: start;
        padding-top: 32px;
        border-top: 1px solid var(--rst-border);
    }
    .rst-cons-groups { gap: 32px; }
    .rst-cons-cards--related { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   PROBLEMAS FRECUENTES
   ============================================================ */
.rst-cons-pains {
    display: grid;
    gap: 16px;
}

.rst-cons-pain {
    background: #FFFFFF;
    border: 1px solid var(--rst-border);
    border-top: 3px solid var(--rst-orange-500);
    border-radius: var(--rst-radius-lg);
    padding: 24px 20px;
}

.rst-cons-pain__num {
    font-family: var(--rst-font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--rst-orange-500);
}

.rst-cons-pain__title {
    font-size: 1.1875rem;
    line-height: 1.25;
    margin: 10px 0;
}

.rst-cons-pain__problem {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.rst-cons-pain__fix {
    margin: 0;
    padding-top: 14px;
    border-top: 1px dashed var(--rst-border);
    font-size: 15px;
    line-height: 1.6;
    color: var(--rst-text);
}

.rst-cons-pain__fix span {
    display: block;
    font-family: var(--rst-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rst-navy-600);
    margin-bottom: 6px;
}

@media (min-width: 701px) {
    .rst-cons-pains { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .rst-cons-pain { padding: 32px 28px; }
}

/* ============================================================
   ALCANCE
   ============================================================ */
.rst-cons-scope {
    display: grid;
    gap: 28px;
}

.rst-cons-scope__media {
    position: relative;
    order: 2;
    aspect-ratio: 4 / 3;
    border-radius: var(--rst-radius-lg);
    overflow: hidden;
    background: var(--rst-bg-alt);
}

.rst-cons-scope__media picture,
.rst-cons-scope__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rst-cons-scope__caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    right: 12px;
    font-family: var(--rst-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: rgba(5, 14, 28, 0.78);
    padding: 7px 10px;
    border-radius: 2px;
    width: fit-content;
}

.rst-cons-scope__body h2 {
    font-size: clamp(1.65rem, 6.6vw, 2.5rem);
    margin-bottom: 28px;
}

.rst-cons-scope__intro {
    font-size: 1.0625rem;
    line-height: 1.65;
}

.rst-cons-scope__list { margin: 20px 0 28px; }

.rst-cons-scope__list li {
    font-size: 15px;
    line-height: 1.5;
    padding: 12px 0 12px 26px;
}

.rst-cons-scope__list li::before {
    top: 21px;
    transform: none;
}

@media (max-width: 700px) {
    .rst-cons-scope .rst-btn { width: 100%; justify-content: center; }
}

@media (min-width: 901px) {
    .rst-cons-scope {
        grid-template-columns: 1fr 1.1fr;
        gap: 72px;
        align-items: start;
    }
    .rst-cons-scope__media {
        order: 0;
        position: sticky;
        top: 120px;
    }
}

/* ============================================================
   CONSTRUIR EN LA ZONA (sección oscura)
   ============================================================ */
.rst-cons-local {
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--rst-radius-lg);
    overflow: hidden;
}

.rst-cons-local__item {
    background: var(--rst-navy-900);
    padding: 24px 20px;
}

.rst-cons-local__num {
    font-family: var(--rst-font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--rst-orange-400);
}

.rst-cons-local__title {
    font-size: 1.1875rem;
    margin: 10px 0 8px;
}

.rst-cons-local__desc {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 701px) {
    .rst-cons-local { grid-template-columns: repeat(2, 1fr); }
    .rst-cons-local__item { padding: 36px 32px; }
}

/* ============================================================
   PROCESO
   ============================================================ */
.rst-cons-steps {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.rst-cons-steps .rst-process__step { padding: 24px 0; }

@media (min-width: 901px) {
    .rst-cons-steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .rst-cons-steps .rst-process__step { padding: 32px 24px; }
}

/* ============================================================
   INVERSIÓN (sin precios: qué mueve el presupuesto y cómo cotizamos)
   ============================================================ */
.rst-cons-invest {
    display: grid;
    gap: 32px;
}

.rst-cons-drivers__title,
.rst-cons-terms__title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 16px;
}

.rst-cons-drivers__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rst-border);
}

.rst-cons-driver {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rst-border);
}

.rst-cons-driver__num {
    font-family: var(--rst-font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--rst-orange-500);
    padding-top: 3px;
}

.rst-cons-driver__title {
    font-size: 1.0625rem;
    line-height: 1.3;
    margin: 0 0 6px;
}

.rst-cons-driver__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rst-text);
}

.rst-cons-terms {
    background: #FFFFFF;
    border: 1px solid var(--rst-border);
    border-top: 3px solid var(--rst-orange-500);
    border-radius: var(--rst-radius-lg);
    padding: 24px 20px;
}

.rst-cons-terms__label {
    font-family: var(--rst-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rst-navy-600);
    margin: 24px 0 12px;
}

.rst-cons-terms__title + .rst-cons-terms__label { margin-top: 0; }

.rst-cons-terms__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.rst-cons-terms__list li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--rst-text);
}

.rst-cons-terms__list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 6px;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--rst-orange-500);
    border-bottom: 2px solid var(--rst-orange-500);
    transform: rotate(-45deg);
}

.rst-cons-terms__cta {
    margin-top: 28px;
    width: 100%;
    justify-content: center;
}

.rst-cons-note {
    margin: 28px 0 0;
    padding-left: 14px;
    border-left: 3px solid var(--rst-border);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--rst-text-light);
}

@media (max-width: 700px) {
    /* Dentro de la tarjeta, el texto del botón cabe en una línea con menos relleno lateral. */
    .rst-cons-terms__cta { padding-left: 16px; padding-right: 16px; gap: 8px; }
}

@media (min-width: 701px) {
    .rst-cons-terms { padding: 32px 28px; }
}

@media (min-width: 901px) {
    .rst-cons-invest {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: 56px;
        align-items: start;
    }
    .rst-cons-terms { position: sticky; top: 120px; }
}

/* ============================================================
   GALERÍA DE OBRA REAL (carrusel deslizable en celular)
   ============================================================ */
.rst-cons-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px 10px;
    scrollbar-width: thin;
}

.rst-cons-gallery:focus-visible { outline-offset: 4px; }

.rst-cons-gallery__item {
    margin: 0;
    scroll-snap-align: start;
}

.rst-cons-gallery__item picture,
.rst-cons-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--rst-radius-lg);
    background: var(--rst-bg-alt);
}

.rst-cons-gallery figcaption {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--rst-text-muted);
}

@media (min-width: 701px) {
    .rst-cons-gallery {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
        overflow: visible;
        margin: 0;
        padding: 0;
    }
}

.rst-cons-textlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-family: var(--rst-font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--rst-orange-600);
}

.rst-cons-textlink::after {
    content: '→';
    transition: transform 0.3s var(--rst-ease);
}

.rst-cons-textlink:hover::after { transform: translateX(4px); }

/* ============================================================
   PREGUNTAS FRECUENTES (details/summary, sin JS)
   ============================================================ */
.rst-cons-faq { border-top: 1px solid var(--rst-border); }

.rst-cons-faq__item { border-bottom: 1px solid var(--rst-border); }

.rst-cons-faq__item summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 20px 44px 20px 0;
    font-family: var(--rst-font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.4;
    color: var(--rst-navy-800);
}

.rst-cons-faq__item summary::-webkit-details-marker { display: none; }

.rst-cons-faq__item summary::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    background:
        linear-gradient(var(--rst-orange-500), var(--rst-orange-500)) center / 14px 2px no-repeat,
        linear-gradient(var(--rst-orange-500), var(--rst-orange-500)) center / 2px 14px no-repeat;
    transition: transform 0.3s var(--rst-ease);
}

.rst-cons-faq__item[open] summary::after { transform: rotate(45deg); }

.rst-cons-faq__item summary:hover { color: var(--rst-orange-600); }

.rst-cons-faq__a { padding: 0 0 22px; }

.rst-cons-faq__a p {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--rst-text);
}

.rst-cons-faq__a p:last-child { margin-bottom: 0; }

@media (min-width: 701px) {
    .rst-cons-faq__item summary { font-size: 1.125rem; padding: 24px 48px 24px 0; }
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.rst-cons-cta__phone {
    margin: 28px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.rst-cons-cta__phone a {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 700px) {
    .rst-cons-main .rst-cta__actions .rst-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   BARRA DE CONTACTO FIJA (solo celular y tablet)
   ============================================================ */
.rst-cons-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 14, 28, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(110%);
    transition: transform 0.35s var(--rst-ease);
}

body.rst-cons-sticky-on .rst-cons-sticky { transform: translateY(0); }

.rst-cons-sticky__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--rst-radius);
    font-family: var(--rst-font-display);
    font-weight: 600;
    font-size: 14px;
    color: #FFFFFF;
    white-space: nowrap;
}

.rst-cons-sticky__btn .rst-cons-ico { width: 18px; height: 18px; }

.rst-cons-sticky__btn--wa {
    background: #138543;
    border-color: #138543;
}

.rst-cons-sticky__btn--primary {
    background: var(--rst-orange-500);
    border-color: var(--rst-orange-500);
}

@media (min-width: 901px) {
    .rst-cons-sticky { display: none; }
}

@media (max-width: 900px) {
    /* La barra ya trae WhatsApp: se oculta el botón flotante para no encimar botones. */
    body.rst-cons .rst-wa-float,
    body.rst-cons .rst-wa-modal { display: none !important; }
    /* Espacio para que la barra no tape el pie de página. */
    body.rst-cons .rst-footer { padding-bottom: 104px; }
}

@media (prefers-reduced-motion: reduce) {
    .rst-cons-sticky { transition: none; }
}
