/* Techemet — estilos del sitio. Diseño elegido en la fase 2: propuesta B (corporativo limpio) con acento azul. */
:root {
    --tm-blue: #08227f;          /* azul corporativo (logo) */
    --tm-navy: #050a30;          /* azul muy oscuro: pie de página, títulos */
    --tm-accent: #1a6fe6;        /* azul brillante de acento: botones, detalles (4.7:1 con blanco) */
    --tm-accent-dark: #1459bd;   /* acento al pasar el mouse */
    --tm-accent-light: #8cc2ff;  /* acento sobre fondos oscuros */
    --tm-accent-tint: #d3e5ff;   /* subrayados y fondos suaves */
    --tm-soft: #f6f7fb;
    --tm-line: #e6e8f0;
    --tm-gray: #5f6368;

    --bs-body-font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-color: #1d2233;
    --bs-primary: var(--tm-blue);
    --bs-primary-rgb: 8, 34, 127;
    --bs-link-color: var(--tm-blue);
    --bs-link-hover-color: var(--tm-accent);
}

body { background: #fff; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; color: var(--tm-navy); }

.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; padding: .5rem 1rem; background: #fff; }

/* Botones */
.btn-primary { --bs-btn-bg: var(--tm-blue); --bs-btn-border-color: var(--tm-blue); --bs-btn-hover-bg: var(--tm-navy); --bs-btn-hover-border-color: var(--tm-navy); }
.btn-accent {
    --bs-btn-bg: var(--tm-accent); --bs-btn-border-color: var(--tm-accent); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--tm-accent-dark); --bs-btn-hover-border-color: var(--tm-accent-dark); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--tm-accent-dark); --bs-btn-active-border-color: var(--tm-accent-dark); --bs-btn-active-color: #fff;
    font-weight: 700;
}
.btn-light { --bs-btn-color: var(--tm-blue); --bs-btn-hover-color: var(--tm-navy); font-weight: 700; }

/* Encabezado */
.site-header { background: #fff; box-shadow: 0 1px 0 rgba(5, 10, 48, .08); }
.site-header .navbar { padding-block: .75rem; }
.site-header .nav-link { font-weight: 600; color: var(--tm-navy); padding-inline: .5rem !important; }
@media (min-width: 1400px) { .site-header .nav-link { padding-inline: .75rem !important; } }
.site-header .nav-link.active, .site-header .nav-link:hover { color: var(--tm-accent); }
.site-header .dropdown-item.active { background: var(--tm-accent); }
.site-header .btn-accent { white-space: nowrap; }

/* Secciones y títulos */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--soft { background: var(--tm-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; color: var(--tm-accent); }
.display-title { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.15; }

/* Cifras */
.stat__value { display: block; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1; }
.stat__label { display: block; margin-top: .4rem; font-size: .9rem; font-weight: 500; }

/* Pie */
.site-footer { background: var(--tm-navy); color: rgba(255, 255, 255, .8); padding: 3.5rem 0 1.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--tm-accent-light); }
.site-footer address { font-style: normal; }
.footer-title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
    margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .875rem;
}

/* Barra de acciones en celular */
.mobile-actions {
    position: fixed; inset: auto 0 0 0; z-index: 1030; display: grid; grid-template-columns: 1fr 2fr;
    gap: .5rem; padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -4px 16px rgba(5, 10, 48, .12);
}
.mobile-actions a {
    display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px;
    border-radius: .6rem; font-weight: 700; text-decoration: none;
}
.mobile-actions__call { color: var(--tm-blue); border: 2px solid var(--tm-blue); }
.mobile-actions__quote { background: var(--tm-accent); color: #fff; }
@media (max-width: 991.98px) { body { padding-bottom: 72px; } }

/* Video de YouTube ligero */
.yt-lite {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden;
    background: var(--tm-navy); color: #fff; cursor: pointer; text-align: left;
}
.yt-lite__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-lite::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 10, 48, .85), rgba(5, 10, 48, 0) 60%); }
.yt-lite__play {
    position: absolute; top: 50%; left: 50%; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px;
    border-radius: 50%; background: var(--tm-accent); color: #fff; transform: translate(-50%, -50%); transition: transform .2s;
    box-shadow: 0 .5rem 1.25rem rgba(5, 10, 48, .35);
}
.yt-lite:hover .yt-lite__play, .yt-lite:focus-visible .yt-lite__play { transform: translate(-50%, -50%) scale(1.1); }
.yt-lite__title { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1; font-weight: 700; }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.yt-lite--card { border-radius: 1rem; }
.yt-lite--card .yt-lite__play { top: 40%; width: 48px; height: 48px; }

/* Aparición al hacer scroll (solo si el usuario no pidió reducir movimiento) */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
    .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* =========================================================
   Página de inicio
   ========================================================= */
.home-hero { padding: clamp(3rem, 8vw, 6rem) 0; background: linear-gradient(180deg, #eef3fc 0%, #fff 100%); }
.home-hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.1; }
.home-hero .lead { color: var(--tm-gray); margin-block: 1.25rem 2rem; }
.home-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 999px; background: var(--tm-accent-tint); color: var(--tm-blue); font-weight: 600; font-size: .85rem; }
.home-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--tm-accent); }
.home-underline { background: linear-gradient(transparent 62%, var(--tm-accent-tint) 62%); }
.home-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 2rem 0 0; color: var(--tm-navy); font-weight: 600; font-size: .9rem; }
.home-trust li::before { content: '✓ '; color: var(--tm-accent); font-weight: 800; }

.home-collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; height: clamp(320px, 45vw, 500px); }
.home-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 1.25rem; box-shadow: 0 1rem 2.5rem rgba(5, 10, 48, .12); }
.home-collage img:first-child { grid-row: span 2; }

.home-stats { margin-top: -1rem; }
.home-stat { height: 100%; padding: 1.5rem; border-radius: 1rem; background: #fff; border: 1px solid var(--tm-line); border-top: 4px solid var(--tm-accent); box-shadow: 0 .5rem 1.5rem rgba(5, 10, 48, .05); }
.home-stat .stat__value { color: var(--tm-blue); font-size: clamp(1.75rem, 4vw, 2.5rem); }
.home-stat .stat__label { color: var(--tm-gray); }

.home-card { display: block; height: 100%; border-radius: 1.25rem; overflow: hidden; background: #fff; border: 1px solid var(--tm-line); color: inherit; text-decoration: none; transition: box-shadow .25s, transform .25s; }
.home-card:hover { box-shadow: 0 1.25rem 2.5rem rgba(5, 10, 48, .1); transform: translateY(-4px); }
.home-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.home-card__body { padding: 1.75rem; }
.home-card p { color: var(--tm-gray); }
.home-card__link { color: var(--tm-accent); font-weight: 700; }

.home-client { height: 100%; padding: 1.25rem; border-radius: 1.25rem; background: #fff; }
.home-client img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .9rem; margin-bottom: 1.25rem; }
.home-client h3 { font-size: 1.2rem; }
.home-client p { color: var(--tm-gray); margin: 0; }

.home-quote { height: 100%; padding: 1.75rem; border-radius: 1.25rem; background: #fff; }
.home-quote__stars { color: var(--tm-accent); letter-spacing: .15em; margin-bottom: .75rem; }
.home-quote blockquote { color: var(--tm-navy); line-height: 1.6; }
.home-quote figcaption { font-weight: 700; color: var(--tm-gray); }

.home-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: clamp(2rem, 5vw, 3.5rem); border-radius: 1.5rem; color: #fff;
    background: linear-gradient(120deg, var(--tm-blue) 0%, var(--tm-accent) 100%);
}
.home-cta h2 { color: #fff; }
.home-cta p { margin: 0; }

/* =========================================================
   Páginas internas
   ========================================================= */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); background: linear-gradient(180deg, #eef3fc 0%, #fff 100%); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; max-width: 22ch; }
.page-hero .lead { color: var(--tm-gray); max-width: 55ch; margin: 1rem 0 0; }
.page-hero .breadcrumb { font-size: .875rem; margin-bottom: 1rem; --bs-breadcrumb-divider-color: var(--tm-gray); }
.page-hero .breadcrumb a { color: var(--tm-accent); text-decoration: none; }

.rounded-img { width: 100%; border-radius: 1.25rem; object-fit: cover; aspect-ratio: 4 / 3; box-shadow: 0 1rem 2.5rem rgba(5, 10, 48, .12); }
.rounded-img--contain { object-fit: contain; background: #fff; aspect-ratio: auto; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { padding: .3rem .8rem; border-radius: 999px; background: var(--tm-accent-tint); color: var(--tm-blue); font-weight: 600; font-size: .85rem; }

.feature-card { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.25rem; background: #fff; border: 1px solid var(--tm-line); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.feature-card p { color: var(--tm-gray); }
.feature-card--dark { background: linear-gradient(135deg, var(--tm-blue), var(--tm-navy)); border: 0; color: #fff; }
.feature-card--dark h3, .feature-card--dark p { color: #fff; }
.feature-card--dark .eyebrow { color: var(--tm-accent-light); }
.feature-card--dark .icon-badge { background: rgba(255, 255, 255, .12); color: var(--tm-accent-light); }

.icon-badge { display: inline-grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; margin-bottom: 1rem; border-radius: .9rem; background: var(--tm-accent-tint); color: var(--tm-accent); }
.step-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 50%; background: var(--tm-accent); color: #fff; font-weight: 800; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: .15rem; color: var(--tm-accent); }
@media (min-width: 576px) { .check-list--cols { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }

.big-fact { padding: 2rem; border-radius: 1.25rem; background: linear-gradient(135deg, var(--tm-blue), var(--tm-accent)); color: #fff; }
.big-fact__value { display: block; font-size: clamp(3.5rem, 10vw, 5.5rem); font-weight: 800; line-height: 1; }
.big-fact p { margin: .5rem 0 0; font-size: 1.1rem; }

.doc-thumb { display: block; height: 100%; padding: .75rem; border-radius: 1rem; background: #fff; border: 1px solid var(--tm-line); color: var(--tm-navy); font-weight: 700; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.doc-thumb:hover { box-shadow: 0 1rem 2rem rgba(5, 10, 48, .1); transform: translateY(-3px); }
.doc-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--tm-soft); border-radius: .6rem; margin-bottom: .6rem; }

.doc-link { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 1rem; background: #fff; border: 1px solid var(--tm-line); color: var(--tm-navy); text-decoration: none; font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.doc-link:hover { border-color: var(--tm-accent); box-shadow: 0 .5rem 1.5rem rgba(26, 111, 230, .12); }
.doc-link__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: .75rem; background: var(--tm-accent-tint); color: var(--tm-accent); flex-shrink: 0; }
.doc-link__text { flex-grow: 1; }
.doc-link__text small { display: block; color: var(--tm-gray); font-weight: 500; }
.doc-link__arrow { font-size: 1.25rem; color: var(--tm-accent); }

.quote-block { padding-left: 1.5rem; border-left: 4px solid var(--tm-accent); }
.quote-block p { font-size: 1.05rem; line-height: 1.7; }

.auth-table { --bs-table-bg: transparent; }
.auth-table thead th { color: var(--tm-gray); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; border-bottom-width: 2px; }
.auth-table td { padding-block: 1rem; }
.auth-table td:first-child { font-weight: 600; color: var(--tm-navy); }

.info-pill { display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1.25rem; border-radius: 1rem; background: #fff; border: 1px solid var(--tm-line); }
.info-pill .icon-badge { margin: 0; }
.info-pill strong { display: block; color: var(--tm-navy); margin-bottom: .2rem; }
.info-pill address { font-style: normal; }

/* Galería + visor */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery__item { display: block; border-radius: 1rem; overflow: hidden; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.05); }
.lightbox { max-width: min(92vw, 1100px); padding: 0; border: 0; border-radius: 1rem; background: transparent; }
.lightbox::backdrop { background: rgba(5, 10, 48, .85); }
.lightbox img { display: block; max-width: 100%; max-height: 85vh; border-radius: 1rem; }
.lightbox__close { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--tm-navy); font-size: 1.75rem; line-height: 1; }

/* Video MP4 */
.video-main { width: 100%; aspect-ratio: 16 / 9; border-radius: 1.25rem; background: var(--tm-navy); box-shadow: 0 1rem 2.5rem rgba(5, 10, 48, .15); }

/* Sucursales */
.branch-list { display: grid; gap: .75rem; margin: 0; }
.branch { padding: 1.25rem; border-radius: 1rem; background: #fff; border: 1px solid var(--tm-line); transition: border-color .2s, box-shadow .2s; }
.branch.is-active { border-color: var(--tm-accent); box-shadow: 0 .5rem 1.5rem rgba(26, 111, 230, .12); }
.branch__name { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin-bottom: .35rem; }
.branch__address { color: var(--tm-gray); margin-bottom: .75rem; }
.branch__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.branch__actions .btn { min-height: 38px; }
.map-frame { overflow: hidden; border-radius: 1.25rem; border: 1px solid var(--tm-line); }
.map-frame iframe { display: block; width: 100%; height: 450px; border: 0; }
.map-frame--sticky { position: sticky; top: 96px; }
.map-frame--sticky iframe { height: min(75vh, 640px); }

/* =========================================================
   Formulario de cliente potencial
   ========================================================= */
.lead-form .form-label { font-weight: 600; color: var(--tm-navy); font-size: .92rem; }
.lead-form .form-control, .lead-form .form-select { min-height: 48px; border-radius: .7rem; font-size: 1rem; }
.lead-form .form-control:focus, .lead-form .form-select:focus { border-color: var(--tm-accent); box-shadow: 0 0 0 .25rem rgba(26, 111, 230, .2); }
.lead-form textarea.form-control { min-height: 96px; }
.req { color: #c62828; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.stepper { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: paso; }
.stepper li { flex: 1; display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; border-radius: .7rem; background: var(--tm-soft); color: var(--tm-gray); font-weight: 600; font-size: .85rem; }
.stepper li span { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--tm-line); font-size: .8rem; }
.stepper li.is-current { background: var(--tm-accent-tint); color: var(--tm-blue); }
.stepper li.is-current span { border-color: var(--tm-accent); background: var(--tm-accent); color: #fff; }
.stepper li.is-done span { border-color: var(--tm-accent); color: var(--tm-accent); }
@media (max-width: 575.98px) { .stepper li { flex-direction: column; text-align: center; gap: .25rem; font-size: .75rem; padding: .5rem .25rem; } }

.lead-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.lead-step + .lead-step { margin-top: 1.5rem; }
.js .lead-step + .lead-step { margin-top: 0; }
.lead-form__nav { display: flex; gap: .75rem; margin: 1.75rem 0 .75rem; }
.lead-form__nav .btn { min-height: 48px; }

.material-options { display: grid; gap: .75rem; }
.material-option { border: 2px solid var(--tm-line); border-radius: 1rem; overflow: hidden; transition: border-color .2s; }
.material-option:has(.btn-check:checked) { border-color: var(--tm-accent); }
.material-option__label { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; margin: 0; cursor: pointer; font-weight: 700; color: var(--tm-navy); }
.material-option__label::before { content: ''; flex-shrink: 0; width: 22px; height: 22px; border: 2px solid var(--tm-line); border-radius: .4rem; background: #fff center / 14px no-repeat; }
.btn-check:checked + .material-option__label::before { border-color: var(--tm-accent); background-color: var(--tm-accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.btn-check:focus-visible + .material-option__label { outline: 3px solid rgba(26, 111, 230, .4); outline-offset: -3px; }
.material-option__fields { padding: 0 1rem 1rem; margin: 0; }

.form-note { font-size: .85rem; color: var(--tm-gray); }
.privacy-summary { margin-top: 1rem; padding: .9rem 1rem; border-radius: .8rem; background: var(--tm-soft); font-size: .85rem; color: var(--tm-gray); }
.privacy-summary summary { cursor: pointer; font-weight: 700; color: var(--tm-blue); }
.privacy-summary p { margin: .75rem 0 0; }
.lead-form .form-check-input { width: 1.3em; height: 1.3em; margin-top: .1em; }
.lead-form .form-check-label { padding-left: .35rem; }

.lead-success { text-align: center; padding: clamp(1.5rem, 5vw, 3rem) 1rem; }
.lead-success:focus { outline: none; }
.icon-badge--lg { width: 72px; height: 72px; border-radius: 50%; background: var(--tm-accent); color: #fff; }
.icon-badge--lg svg { width: 36px; height: 36px; }
.file-status { color: #1b6e3a; font-weight: 600; min-height: 1.2em; }

/* Al saltar a un ancla (#formulario, #politicas) el encabezado fijo no tapa el título */
[id] { scroll-margin-top: 96px; }
