/* ==========================================================================
   SanMiguel — Home / Landing (campaña Google Ads)
   CSS autocontenido. No depende del build de Tailwind (style.css es precompilado).
   Prefijo: .sm-
   ========================================================================== */

:root {
    --sm-primary: #bb976d;
    --sm-primary-dark: #a37f56;
    --sm-title: #172430;
    --sm-title-soft: #24354a;
    --sm-body: #55606b;
    --sm-line: #e2ddd5;
    --sm-cream: #f7f5f2;
    --sm-cream-deep: #efeae3;
    --sm-white: #ffffff;
    --sm-radius: 4px;
    --sm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.sm-scope {
    color: var(--sm-body);
    font-family: "Josefin Sans", ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.sm-scope h1,
.sm-scope h2,
.sm-scope h3,
.sm-scope h4,
.sm-scope h5 {
    color: var(--sm-title);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.12;
    margin: 0;
}

.sm-scope p {
    margin: 0;
}

.sm-wrap {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 20px;
}

.sm-section {
    padding-block: clamp(56px, 8vw, 110px);
}

.sm-section--cream {
    background: var(--sm-cream);
}

.sm-section--dark {
    background: var(--sm-title);
}

/* --- Etiqueta de sección (kicker) --------------------------------------- */
.sm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sm-primary);
    margin-bottom: 16px;
}

.sm-kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--sm-primary);
}

.sm-section--dark .sm-kicker {
    color: var(--sm-primary);
}

.sm-h2 {
    font-size: clamp(28px, 4vw, 46px);
}

.sm-lead {
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.65;
    max-width: 62ch;
    margin-top: 18px;
}

.sm-section--dark .sm-h2,
.sm-section--dark .sm-h3 {
    color: #fff;
}

.sm-section--dark .sm-lead,
.sm-section--dark p {
    color: rgba(255, 255, 255, 0.72);
}

.sm-section-head {
    max-width: 760px;
    margin-bottom: clamp(36px, 5vw, 60px);
}

.sm-section-head--center {
    margin-inline: auto;
    text-align: center;
}

.sm-section-head--center .sm-kicker {
    justify-content: center;
}

.sm-section-head--center .sm-lead {
    margin-inline: auto;
}

/* --- Botones ------------------------------------------------------------ */
.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--sm-radius);
    cursor: pointer;
    transition: all 0.3s var(--sm-ease);
    text-align: center;
}

.sm-btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.sm-btn--primary {
    background: var(--sm-primary);
    border-color: var(--sm-primary);
    color: #fff;
}

.sm-btn--primary:hover {
    background: var(--sm-primary-dark);
    border-color: var(--sm-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.sm-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.sm-btn--ghost:hover {
    background: #fff;
    border-color: #fff;
    color: var(--sm-title);
    transform: translateY(-2px);
}

.sm-btn--dark {
    background: var(--sm-title);
    border-color: var(--sm-title);
    color: #fff;
}

.sm-btn--dark:hover {
    background: var(--sm-primary);
    border-color: var(--sm-primary);
    color: #fff;
    transform: translateY(-2px);
}

.sm-btn--wa {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.sm-btn--wa:hover {
    background: #1eb457;
    border-color: #1eb457;
    color: #fff;
    transform: translateY(-2px);
}

.sm-btn--block {
    width: 100%;
}

/* --- Hero --------------------------------------------------------------- */
.sm-hero {
    position: relative;
    isolation: isolate;
    background: var(--sm-title) center/cover no-repeat;
    padding-top: clamp(140px, 18vw, 210px);
    padding-bottom: clamp(70px, 9vw, 110px);
    overflow: hidden;
}

.sm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(100deg, rgba(15, 24, 33, 0.94) 0%, rgba(15, 24, 33, 0.82) 45%, rgba(15, 24, 33, 0.5) 100%);
}

/* Retícula tipo plano arquitectónico */
.sm-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.16;
    background-image: linear-gradient(rgba(187, 151, 109, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(187, 151, 109, 0.5) 1px, transparent 1px);
    background-size: 90px 90px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 75%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 75%);
}

.sm-hero__grid {
    display: grid;
    gap: clamp(40px, 5vw, 64px);
    align-items: center;
}

@media (min-width: 1080px) {
    .sm-hero__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }
}

.sm-hero__inner {
    max-width: 820px;
}

.sm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border: 1px solid rgba(187, 151, 109, 0.5);
    border-radius: 100px;
    background: rgba(187, 151, 109, 0.12);
    color: #e8d9c4;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
}

.sm-hero__badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sm-primary);
}

.sm-hero h1 {
    color: #fff;
    font-size: clamp(34px, 5.6vw, 68px);
    line-height: 1.06;
    margin-top: 26px;
}

@media (min-width: 1080px) {
    .sm-hero h1 {
        font-size: clamp(40px, 3.5vw, 56px);
    }

    .sm-hero__sub {
        font-size: 17px;
    }
}

.sm-hero h1 em {
    font-style: normal;
    color: var(--sm-primary);
}

.sm-hero__sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.6;
    max-width: 60ch;
    margin-top: 22px;
}

.sm-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.sm-hero__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 15px;
    margin-top: 22px;
}

.sm-hero__phone a {
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid rgba(187, 151, 109, 0.7);
    padding-bottom: 2px;
}

.sm-hero__phone a:hover {
    color: var(--sm-primary);
}

/* Métricas del hero */
.sm-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: clamp(44px, 6vw, 70px);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    max-width: 900px;
}

.sm-stat {
    background: rgba(15, 24, 33, 0.55);
    padding: 22px 20px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.sm-stat__num {
    color: #fff;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 600;
    line-height: 1;
}

.sm-stat__num i {
    font-style: normal;
    color: var(--sm-primary);
}

.sm-stat__label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    letter-spacing: 0.05em;
    margin-top: 8px;
    line-height: 1.4;
}

@media (min-width: 700px) {
    .sm-hero__stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Plano interactivo del hero ----------------------------------------- */
.sm-planner {
    position: relative;
    background: rgba(11, 18, 25, 0.62);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(187, 151, 109, 0.28);
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.85);
}

/* Esquinas tipo marca de registro de un plano */
.sm-planner::before,
.sm-planner::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid var(--sm-primary);
    opacity: 0.65;
    pointer-events: none;
}

.sm-planner::before {
    top: 7px;
    left: 7px;
    border-right: none;
    border-bottom: none;
}

.sm-planner::after {
    bottom: 7px;
    right: 7px;
    border-left: none;
    border-top: none;
}

.sm-planner__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sm-planner__title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
}

.sm-planner__live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sm-primary);
    flex: none;
    animation: sm-pulse 2.2s ease-in-out infinite;
}

@keyframes sm-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(187, 151, 109, 0.55);
    }

    70% {
        opacity: 0.6;
        box-shadow: 0 0 0 7px rgba(187, 151, 109, 0);
    }
}

.sm-planner__scale {
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* --- El dibujo --- */
.sm-planner__stage {
    position: relative;
    margin-top: 6px;
}

.sm-planner__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.sm-planner__grid-lines {
    stroke: rgba(187, 151, 109, 0.16);
    stroke-width: 1;
}

/* Muros: se trazan al entrar */
.sm-planner__walls {
    fill: none;
    stroke: var(--sm-primary);
    stroke-width: 2;
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
}

.sm-planner.is-drawn .sm-planner__walls {
    animation: sm-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes sm-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Zonas */
.sm-zone {
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s var(--sm-ease);
}

.sm-planner.is-drawn .sm-zone {
    opacity: 1;
}

.sm-zone__fill {
    fill: rgba(255, 255, 255, 0.03);
    stroke: rgba(255, 255, 255, 0.34);
    stroke-width: 1.2;
    transition: fill 0.45s var(--sm-ease), stroke 0.45s var(--sm-ease);
}

.sm-zone__furniture {
    fill: none;
    stroke: rgba(255, 255, 255, 0.32);
    stroke-width: 1.1;
    transition: stroke 0.45s var(--sm-ease), opacity 0.45s var(--sm-ease);
}

.sm-zone__name {
    fill: rgba(255, 255, 255, 0.42);
    font-family: "Josefin Sans", sans-serif;
    font-size: 9.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: fill 0.45s var(--sm-ease);
    pointer-events: none;
}

.sm-zone:hover .sm-zone__fill,
.sm-zone.is-active .sm-zone__fill {
    fill: rgba(187, 151, 109, 0.2);
    stroke: var(--sm-primary);
    stroke-width: 1.8;
}

.sm-zone:hover .sm-zone__furniture,
.sm-zone.is-active .sm-zone__furniture {
    stroke: #e5cba6;
}

.sm-zone:hover .sm-zone__name,
.sm-zone.is-active .sm-zone__name {
    fill: #fff;
}

/* Circulación punteada que recorre el plano */
.sm-planner__flow {
    fill: none;
    stroke: rgba(187, 151, 109, 0.75);
    stroke-width: 1.3;
    stroke-dasharray: 5 7;
    opacity: 0;
    transition: opacity 0.5s var(--sm-ease);
}

.sm-planner.is-drawn .sm-planner__flow {
    opacity: 1;
    animation: sm-flow 2.4s linear infinite;
}

@keyframes sm-flow {
    to {
        stroke-dashoffset: -48;
    }
}

/* Cota que acota la zona activa */
.sm-planner__dim {
    opacity: 0;
    transition: opacity 0.35s var(--sm-ease);
}

.sm-planner__dim.is-on {
    opacity: 1;
}

.sm-planner__dim line {
    stroke: var(--sm-primary);
    stroke-width: 1;
}

.sm-planner__dim text {
    fill: var(--sm-primary);
    font-family: "Josefin Sans", sans-serif;
    font-size: 9px;
    letter-spacing: 1px;
}

/* --- Ficha de la zona activa --- */
.sm-planner__readout {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 78px;
}

.sm-planner__zone-name {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

.sm-planner__zone-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
    line-height: 1.45;
    margin-top: 5px;
}

.sm-planner__metrics {
    display: flex;
    gap: 26px;
    margin-top: 12px;
}

.sm-planner__metric b {
    display: block;
    color: var(--sm-primary);
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sm-planner__metric span {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 5px;
}

.sm-planner__zone-name,
.sm-planner__zone-desc,
.sm-planner__metrics {
    transition: opacity 0.25s var(--sm-ease), transform 0.25s var(--sm-ease);
}

/* Transición al cambiar de zona */
.sm-planner__readout.is-swapping .sm-planner__zone-name,
.sm-planner__readout.is-swapping .sm-planner__zone-desc,
.sm-planner__readout.is-swapping .sm-planner__metrics {
    opacity: 0;
    transform: translateY(6px);
}

/* --- Pestanas --- */
.sm-planner__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.sm-planner__tab {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.62);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 13px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s var(--sm-ease);
}

.sm-planner__tab:hover {
    border-color: rgba(187, 151, 109, 0.7);
    color: #fff;
}

.sm-planner__tab.is-active {
    background: var(--sm-primary);
    border-color: var(--sm-primary);
    color: #fff;
}

.sm-planner__foot {
    color: rgba(255, 255, 255, 0.34);
    font-size: 11px;
    line-height: 1.5;
    margin-top: 13px;
}

@media (max-width: 1079px) {
    .sm-planner {
        max-width: 560px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-planner__walls {
        stroke-dashoffset: 0;
    }

    .sm-planner.is-drawn .sm-planner__walls,
    .sm-planner.is-drawn .sm-planner__flow,
    .sm-planner__live {
        animation: none;
    }

    .sm-zone {
        opacity: 1;
    }
}

/* --- Franja de categorías (bajo el hero) -------------------------------- */
.sm-cats {
    background: #fff;
    position: relative;
    z-index: 20;
    margin-top: -46px;
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    box-shadow: 0 22px 60px -30px rgba(23, 36, 48, 0.4);
    overflow: hidden;
}

@media (min-width: 900px) {
    .sm-cats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sm-cat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 22px;
    border-right: 1px solid var(--sm-line);
    border-bottom: 1px solid var(--sm-line);
    transition: background 0.3s var(--sm-ease);
}

.sm-cat:hover {
    background: var(--sm-cream);
}

@media (min-width: 900px) {
    .sm-cat {
        border-bottom: none;
    }
}

.sm-cat:last-child {
    border-right: none;
}

.sm-cat > span:last-child {
    display: block;
    min-width: 0;
}

.sm-cat__ico {
    width: 54px;
    height: 54px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--sm-primary);
    border-radius: var(--sm-radius);
    color: var(--sm-primary);
    transition: all 0.3s var(--sm-ease);
}

.sm-cat:hover .sm-cat__ico {
    background: var(--sm-primary);
    color: #fff;
}

.sm-cat__ico svg {
    width: 26px;
    height: 26px;
}

.sm-cat__t {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--sm-title);
    line-height: 1.2;
}

.sm-cat__d {
    display: block;
    font-size: 13.5px;
    color: var(--sm-body);
    margin-top: 5px;
    line-height: 1.4;
}

/* --- Bloque diferenciador (arquitectura) -------------------------------- */
.sm-split {
    display: grid;
    gap: clamp(36px, 5vw, 68px);
    align-items: center;
}

@media (min-width: 1000px) {
    .sm-split {
        grid-template-columns: 1fr 1fr;
    }

    .sm-split--wide-left {
        grid-template-columns: 1.05fr 1fr;
    }
}

.sm-blueprint {
    position: relative;
    background: var(--sm-title);
    border-radius: var(--sm-radius);
    padding: 30px;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sm-blueprint::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(187, 151, 109, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(187, 151, 109, 0.28) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.55;
}

.sm-blueprint__label {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.sm-blueprint__plan {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
    padding-block: 18px;
}

.sm-blueprint__plan svg {
    width: 100%;
    max-width: 460px;
    height: auto;
}

.sm-checklist {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.sm-checklist li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    list-style: none;
}

.sm-checklist__ico {
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    background: rgba(187, 151, 109, 0.14);
    color: var(--sm-primary);
    display: grid;
    place-items: center;
    margin-top: 2px;
}

.sm-checklist__ico svg {
    width: 13px;
    height: 13px;
}

.sm-checklist strong {
    display: block;
    color: var(--sm-title);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.35;
}

.sm-checklist span {
    display: block;
    font-size: 14.5px;
    line-height: 1.55;
    margin-top: 3px;
}

/* --- Proceso (pasos) ---------------------------------------------------- */
.sm-steps {
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) {
    .sm-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .sm-steps {
        grid-template-columns: repeat(5, 1fr);
    }
}

.sm-step {
    background: var(--sm-title);
    padding: 30px 24px 34px;
    position: relative;
    transition: background 0.35s var(--sm-ease);
}

.sm-step:hover {
    background: #1d2e3d;
}

.sm-step__n {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--sm-primary);
}

.sm-step h3 {
    color: #fff;
    font-size: 19px;
    margin-top: 16px;
    line-height: 1.25;
}

.sm-step p {
    color: rgba(255, 255, 255, 0.62) !important;
    font-size: 14.5px;
    line-height: 1.6;
    margin-top: 10px;
}

/* --- Proyectos ---------------------------------------------------------- */
.sm-projects {
    display: grid;
    gap: 24px;
}

@media (min-width: 700px) {
    .sm-projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1080px) {
    .sm-projects {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sm-project {
    position: relative;
    display: block;
    border-radius: var(--sm-radius);
    overflow: hidden;
    background: var(--sm-cream-deep);
    min-height: 300px;
    isolation: isolate;
}

.sm-project__media {
    position: absolute;
    inset: 0;
    background: var(--sm-cream-deep) center/cover no-repeat;
    transition: transform 0.7s var(--sm-ease);
}

.sm-project:hover .sm-project__media {
    transform: scale(1.05);
}

.sm-project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 24, 33, 0) 25%, rgba(15, 24, 33, 0.88) 100%);
    z-index: 1;
}

.sm-project__body {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
}

.sm-project__tag {
    align-self: flex-start;
    background: rgba(23, 36, 48, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 100px;
    line-height: 1;
    margin-bottom: auto;
}

.sm-project h3 {
    color: #fff;
    font-size: 21px;
    line-height: 1.25;
}

.sm-project p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14.5px;
    line-height: 1.55;
    margin-top: 8px;
}

/* --- Sectores ----------------------------------------------------------- */
.sm-sectors {
    display: grid;
    gap: 1px;
    background: var(--sm-line);
    border: 1px solid var(--sm-line);
}

@media (min-width: 560px) {
    .sm-sectors {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .sm-sectors {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sm-sector {
    background: #fff;
    padding: 30px 26px;
    transition: background 0.3s var(--sm-ease);
}

.sm-sector:hover {
    background: var(--sm-cream);
}

.sm-sector__ico {
    color: var(--sm-primary);
    width: 34px;
    height: 34px;
}

.sm-sector h3 {
    font-size: 19px;
    margin-top: 18px;
}

.sm-sector p {
    font-size: 14.5px;
    line-height: 1.6;
    margin-top: 8px;
}

/* --- Razones ------------------------------------------------------------ */
.sm-reasons {
    display: grid;
    gap: 28px;
}

@media (min-width: 640px) {
    .sm-reasons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1080px) {
    .sm-reasons {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sm-reason {
    padding-top: 26px;
    border-top: 2px solid var(--sm-primary);
}

.sm-reason h3 {
    font-size: 19px;
    line-height: 1.3;
}

.sm-reason p {
    font-size: 14.5px;
    line-height: 1.65;
    margin-top: 10px;
}

/* --- Clientes ----------------------------------------------------------- */
.sm-clients {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 5vw, 64px);
}

.sm-clients img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.55;
    transition: all 0.35s var(--sm-ease);
}

.sm-clients img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* --- Formulario de cotización ------------------------------------------- */
.sm-quote {
    display: grid;
    gap: clamp(36px, 5vw, 70px);
    align-items: start;
}

@media (min-width: 1000px) {
    .sm-quote {
        grid-template-columns: 1fr 1.1fr;
    }
}

.sm-quote__points {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.sm-quote__points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    list-style: none;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15.5px;
    line-height: 1.55;
}

.sm-quote__points svg {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--sm-primary);
    margin-top: 1px;
}

.sm-quote__direct {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* El formulario vive dentro de una sección oscura: recupera los colores claros */
.sm-section--dark .sm-form p,
.sm-section--dark .sm-form .sm-form__note {
    color: var(--sm-body);
}

.sm-form {
    background: #fff;
    border-radius: var(--sm-radius);
    padding: clamp(26px, 3.5vw, 42px);
}

.sm-form__grid {
    display: grid;
    gap: 18px;
}

@media (min-width: 620px) {
    .sm-form__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sm-form__grid .sm-field--full {
        grid-column: span 2;
    }
}

.sm-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sm-title);
    margin-bottom: 8px;
}

.sm-field input,
.sm-field select,
.sm-field textarea {
    width: 100%;
    background: var(--sm-cream);
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius);
    color: var(--sm-title);
    font-family: inherit;
    font-size: 15px;
    padding: 14px 15px;
    outline: none;
    transition: border-color 0.25s var(--sm-ease), background 0.25s var(--sm-ease);
}

.sm-field textarea {
    min-height: 118px;
    resize: vertical;
}

.sm-field select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355606b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
}

.sm-field input:focus,
.sm-field select:focus,
.sm-field textarea:focus {
    border-color: var(--sm-primary);
    background: #fff;
}

.sm-field input.sm-invalid,
.sm-field select.sm-invalid,
.sm-field textarea.sm-invalid {
    border-color: #d64545;
    background: #fdf4f4;
}

.sm-form__foot {
    margin-top: 24px;
}

.sm-form__note {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--sm-body);
    margin-top: 14px;
}

.sm-form__note a {
    color: var(--sm-primary);
    text-decoration: underline;
}

.sm-form__msg {
    display: none;
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: var(--sm-radius);
    font-size: 14px;
    line-height: 1.5;
}

.sm-form__msg.is-error {
    display: block;
    background: #fdf1f1;
    border: 1px solid #f0c9c9;
    color: #a52d2d;
}

.sm-form__msg.is-ok {
    display: block;
    background: #f1f9f3;
    border: 1px solid #c7e6d0;
    color: #1f7a3f;
}

/* --- FAQ ---------------------------------------------------------------- */
.sm-faq {
    display: grid;
    gap: 0;
    max-width: 900px;
    margin-inline: auto;
    border-top: 1px solid var(--sm-line);
}

.sm-faq details {
    border-bottom: 1px solid var(--sm-line);
}

.sm-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    padding: 24px 0;
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 600;
    color: var(--sm-title);
    line-height: 1.4;
}

.sm-faq summary::-webkit-details-marker {
    display: none;
}

.sm-faq summary::after {
    content: "";
    width: 14px;
    height: 14px;
    flex: none;
    border-right: 2px solid var(--sm-primary);
    border-bottom: 2px solid var(--sm-primary);
    transform: rotate(45deg) translate(-3px, -3px);
    transition: transform 0.3s var(--sm-ease);
}

.sm-faq details[open] summary::after {
    transform: rotate(-135deg) translate(-3px, -3px);
}

.sm-faq p {
    font-size: 15.5px;
    line-height: 1.7;
    padding-bottom: 26px;
    max-width: 76ch;
}

/* --- CTA final ---------------------------------------------------------- */
.sm-final {
    background: var(--sm-title);
    border-radius: var(--sm-radius);
    padding: clamp(38px, 5vw, 68px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sm-final::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(187, 151, 109, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(187, 151, 109, 0.22) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85), transparent 72%);
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85), transparent 72%);
}

.sm-final > * {
    position: relative;
}

.sm-final h2 {
    color: #fff;
    font-size: clamp(26px, 3.6vw, 42px);
}

.sm-final p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.6;
    margin: 16px auto 0;
    max-width: 60ch;
}

.sm-final__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 32px;
}

/* --- Barra fija móvil --------------------------------------------------- */
.sm-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: grid;
    /* El hueco de la derecha es para el botón flotante de WhatsApp, que se
       monta en un shadow DOM cerrado y no se puede reposicionar desde aquí. */
    grid-template-columns: repeat(2, 1fr);
    padding-right: 86px;
    background: var(--sm-title);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 30px -12px rgba(0, 0, 0, 0.5);
}

.sm-mobilebar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 6px;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sm-mobilebar a:last-child {
    border-right: none;
}

.sm-mobilebar a svg {
    width: 19px;
    height: 19px;
}

.sm-mobilebar a.is-accent {
    background: var(--sm-primary);
}

@media (min-width: 768px) {
    .sm-mobilebar {
        display: none;
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 64px;
    }
}

/* --- Modo oscuro (el template lo activa con .dark en <html>) ------------- */
.dark .sm-scope {
    color: rgba(255, 255, 255, 0.7);
}

.dark .sm-scope h1,
.dark .sm-scope h2,
.dark .sm-scope h3,
.dark .sm-scope h4,
.dark .sm-scope h5 {
    color: #fff;
}

.dark .sm-section--cream {
    background: #1d2e3d;
}

.dark .sm-cats,
.dark .sm-sector,
.dark .sm-form {
    background: #1d2e3d;
    border-color: rgba(255, 255, 255, 0.12);
}

.dark .sm-cat {
    border-color: rgba(255, 255, 255, 0.12);
}

.dark .sm-cat:hover,
.dark .sm-sector:hover {
    background: #24384a;
}

.dark .sm-cat__t,
.dark .sm-checklist strong,
.dark .sm-field label,
.dark .sm-faq summary {
    color: #fff;
}

.dark .sm-sectors,
.dark .sm-faq,
.dark .sm-faq details {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
}

.dark .sm-field input,
.dark .sm-field select,
.dark .sm-field textarea {
    background: #172430;
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.dark .sm-btn--dark {
    background: var(--sm-primary);
    border-color: var(--sm-primary);
}

/* Desplazamiento suave hacia #cotizar */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .sm-btn,
    .sm-project__media,
    .sm-cat__ico {
        transition: none !important;
    }
}

/* El header se vuelve fijo al hacer scroll: evita que tape el ancla */
#cotizar {
    scroll-margin-top: 90px;
}

/* --- Hero en móvil: compactar para que el plano asome en la primera pantalla --- */
@media (max-width: 600px) {
    .sm-hero {
        padding-top: 118px;
    }

    .sm-hero__badge {
        font-size: 11px;
        letter-spacing: 0.1em;
        padding: 8px 13px;
    }

    .sm-hero h1 {
        margin-top: 20px;
    }

    .sm-hero__sub {
        margin-top: 16px;
    }

    .sm-hero__cta {
        margin-top: 26px;
        gap: 10px;
        flex-wrap: nowrap;
    }

    /* Los dos CTA en una sola fila ahorran una altura de botón */
    .sm-hero__cta .sm-btn {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px;
        letter-spacing: 0.03em;
    }

    /* Sin la flecha el texto del CTA respira en pantallas angostas */
    .sm-hero__cta .sm-btn--primary svg {
        display: none;
    }

    .sm-hero__phone {
        margin-top: 16px;
    }

    .sm-hero__grid {
        gap: 30px;
    }

    .sm-planner {
        padding: 14px;
    }

    .sm-planner__head {
        flex-wrap: wrap;
        gap: 6px;
    }

    .sm-planner__title {
        font-size: 11px;
        letter-spacing: 0.09em;
    }

    .sm-planner__scale {
        font-size: 10px;
    }

    .sm-planner__metrics {
        gap: 20px;
    }

    .sm-planner__tab {
        font-size: 11px;
        padding: 7px 11px;
    }
}
