/*
 * Samba y Karim — hoja del tema.
 *
 * Es el CSS del prototipo HTML del cliente (Samba_y_Karim_prototipo.html),
 * que venía minificado en un <style>. Aquí está desplegado y ordenado por
 * bloques, con estas sustituciones, todas mecánicas:
 *
 *   - Las variables del prototipo llevan prefijo `--sk-` (`--white` chocaba
 *     con el token del motor). La tinta y la marca las ata a los tokens el
 *     puente del layout: --sk-ink → --dark, --sk-accent → --primary, y el
 *     texto sobre la marca → --on-primary.
 *   - Impact → var(--font-heading) (Anton), Arial → var(--font-body)
 *     (Arimo), y peso 400 en los titulares: Anton solo tiene ese peso y un
 *     <h1> en negrita lo engordaba a mano. El interletrado de .display pasa
 *     de -.045em a -.02em: Anton es más estrecha que Impact y con el del
 *     prototipo las letras se tocaban. Los pesos 800 → 700, el máximo de
 *     Arimo.
 *   - El menú pasa a hamburguesa a 1100px y no a 820px: el prototipo tenía
 *     cinco entradas y la web tiene ocho.
 *   - `padding: 110px 0` de los bloques → var(--section-py) 0.
 *   - Esquinas de botones, formulario y filtros → var(--radius). El
 *     prototipo es de esquina viva y la identidad trae 0px.
 *   - `.row` (la fila de dos campos del formulario) → `.form-row`.
 *   - Las cajas de foto (.visual, .service-visual, .photo) llevan una <img>
 *     que las cubre; el degradado con rayas del prototipo queda debajo, de
 *     respaldo para cuando no hay foto.
 *   - Lo que el prototipo generaba con JS (menú, tarjetas, filtros, rejillas
 *     de tipos) lo pintan las maquetas en el servidor.
 *
 * Lo que basecore añade encima (apariencia, formulario dinámico, animaciones,
 * accesibilidad) va en sambakarim.css, no aquí.
 */

:root {
    --sk-ink: #171915;
    --sk-ink2: #242720;
    --sk-paper: #f1efe7;
    --sk-white: #fffef8;
    --sk-accent: #dfff45;
    --sk-on-accent: #171915;
    --sk-muted: #74776d;
    --sk-line: rgba(23, 25, 21, .17);
    --sk-line-dark: #40433d;
}

/* ---- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sk-paper); color: var(--sk-ink); font-family: var(--font-body); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }

.shell { width: min(1240px, calc(100% - 64px)); margin: auto; }
.display { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; }
.eyebrow { margin: 0 0 18px; color: var(--sk-accent); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.dark { color: #68702b; }
.section { padding: var(--section-py) 0; }
.section-title { margin: 0; font-size: clamp(48px, 6vw, 86px); }

/* ---- Barra superior y cabecera ------------------------------------------- */

.utility { background: var(--sk-accent); color: var(--sk-on-accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.utility .shell { min-height: 34px; display: flex; align-items: center; gap: 38px; }
.utility a { margin-left: auto; }

.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--sk-ink) 97%, transparent); color: var(--sk-white); border-bottom: 1px solid rgba(255, 255, 255, .11); }
.header-row { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { display: block; height: 47px; width: auto; }
.brand-copy { line-height: 1; }
.brand-copy strong { font-size: 15px; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { padding: 34px 0 30px; color: #c6c8c0; font-size: 11px; font-weight: 700; }
.nav a.active { color: var(--sk-accent); }
.nav .nav-cta { padding: 14px 17px; background: var(--sk-accent); color: var(--sk-on-accent); text-transform: uppercase; border-radius: var(--radius); }
.menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid #666; background: transparent; color: #fff; font-size: 22px; cursor: pointer; border-radius: var(--radius); }

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

.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 22px; border: 0; border-radius: var(--radius); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.button.accent { background: var(--sk-accent); color: var(--sk-on-accent); }
.button.dark { background: var(--sk-ink); color: var(--sk-white); }
.button.outline { border: 1px solid var(--sk-ink); background: transparent; }
.button:hover { transform: translateY(-2px); }

/* ---- Hero de portada ----------------------------------------------------- */

.hero { background: var(--sk-ink); color: var(--sk-white); overflow: hidden; }
.hero-grid { min-height: 670px; display: grid; grid-template-columns: 1.08fr .92fr; }
.hero-copy { padding: 100px 64px 84px 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero h1, .inner-hero h1, .gallery-hero h1 { max-width: 860px; margin: 0; font-size: clamp(62px, 7.4vw, 112px); }
.hero h1 em { color: var(--sk-accent); font-style: normal; }
.lead { max-width: 660px; margin: 32px 0 36px; color: #c1c5ba; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.phone { font-weight: 700; }

.visual, .service-visual, .photo { position: relative; overflow: hidden; background: linear-gradient(142deg, #3d4137 0 48%, #151713 48.3%); border-left: 1px solid #3d4039; }
.visual::before, .service-visual::before, .photo::before { content: ""; position: absolute; width: 145%; height: 90px; left: -22%; top: 39%; transform: rotate(-18deg); background: repeating-linear-gradient(90deg, rgba(223, 255, 69, .94) 0 26px, transparent 26px 50px); opacity: .18; }
.visual > img, .service-visual > img, .photo > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

.experience { position: absolute; z-index: 2; left: 0; bottom: 0; padding: 28px 32px; display: flex; align-items: center; gap: 14px; background: var(--sk-accent); color: var(--sk-on-accent); }
.experience strong { font: 400 56px/1 var(--font-heading); }
.experience span { font-size: 11px; font-weight: 700; text-transform: uppercase; }

.brand-strip { min-height: 82px; display: flex; align-items: center; gap: 50px; border-top: 1px solid #3a3d36; }
.brand-strip span { margin-right: auto; color: #8f9489; font-size: 9px; letter-spacing: .17em; text-transform: uppercase; }
.brand-strip strong { color: #74786f; font: 400 19px var(--font-heading); text-transform: uppercase; }

/* ---- Cabecera de bloque partida (título a la izquierda, texto a la derecha) */

.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-bottom: 62px; }
.split > p { max-width: 390px; margin: 0; color: var(--sk-muted); font-size: 18px; line-height: 1.55; }

/* ---- Por qué elegirnos (lista numerada) ---------------------------------- */

.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.why-list { border-top: 1px solid var(--sk-line); }
.why-list article { display: grid; grid-template-columns: 62px 1fr; padding: 32px 0; border-bottom: 1px solid var(--sk-line); }
.why-list article > span { color: #8e9480; font-size: 11px; font-weight: 700; }
.why-list h3 { margin: 0 0 10px; font-size: 24px; }
.why-list p { margin: 0; color: var(--sk-muted); line-height: 1.6; }

/* ---- Tarjetas de servicios ----------------------------------------------- */

.services-section, .other { background: var(--sk-ink); color: var(--sk-white); }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--sk-line-dark); border-left: 1px solid var(--sk-line-dark); }
.card { min-height: 340px; padding: 27px 23px; display: flex; flex-direction: column; border-right: 1px solid var(--sk-line-dark); border-bottom: 1px solid var(--sk-line-dark); }
.card:hover { background: var(--sk-accent); color: var(--sk-on-accent); }
.card-top { display: flex; justify-content: space-between; color: #8b9085; font-size: 11px; font-weight: 700; }
.card h3 { margin: 56px 0 17px; font-size: 21px; }
.card p { margin: 0; color: #9da198; font-size: 13px; line-height: 1.6; }
.card:hover p { color: #3e4325; }
.more { margin-top: auto; padding-top: 28px; font-size: 9px; font-weight: 700; letter-spacing: .11em; text-decoration: underline; text-transform: uppercase; }

/* ---- Banda de la marca (cierre de la portada) ---------------------------- */

.statement { padding: var(--section-py) 0; background: var(--sk-accent); color: var(--sk-on-accent); }
.statement-grid { display: grid; grid-template-columns: .65fr 1.65fr auto; gap: 45px; align-items: end; }
.statement h2 { margin: 0; font-size: clamp(40px, 5.2vw, 72px); }

/* ---- Proceso y rejilla de tipos ------------------------------------------ */

.process { background: #e5e3da; }
.process-grid, .types-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--sk-line); border-left: 1px solid var(--sk-line); }
.process-grid article, .types-grid article { min-height: 270px; padding: 30px; border-right: 1px solid var(--sk-line); border-bottom: 1px solid var(--sk-line); }
.process-grid span, .types-grid span { color: #838871; font-size: 11px; font-weight: 700; }
.process-grid h3, .types-grid h3 { margin: 70px 0 15px; font-size: 22px; }
.process-grid p, .types-grid p { margin: 0; color: var(--sk-muted); line-height: 1.6; }
.types-grid { grid-template-columns: repeat(4, 1fr); }
.types-grid.two { grid-template-columns: repeat(2, 1fr); }
.types-grid.three { grid-template-columns: repeat(3, 1fr); }

/* ---- Contacto ------------------------------------------------------------ */

.contact { padding: calc(var(--section-py) + 5px) 0; background: var(--sk-accent); color: var(--sk-on-accent); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 105px; }
.contact h2 { margin: 0; font-size: clamp(58px, 7vw, 96px); }
.contact-copy > p { max-width: 470px; font-size: 17px; line-height: 1.6; }
.direct { display: flex; gap: 12px; margin-top: 35px; }
.direct a { padding: 15px; border: 1px solid rgba(23, 25, 21, .3); border-radius: var(--radius); font-weight: 700; }
.form { padding: 38px; background: var(--sk-white); color: var(--sk-ink); box-shadow: 18px 18px rgba(23, 25, 21, .12); border-radius: var(--radius); }
.form label { display: block; margin-bottom: 22px; }
.form label > span { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .form select { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #c4c5be; background: transparent; outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form .privacy { display: flex; gap: 8px; color: var(--sk-muted); font-size: 11px; }
.form .privacy span { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.form .button { width: 100%; }

/* ---- Pie ----------------------------------------------------------------- */

.footer { padding: 80px 0 22px; background: var(--sk-ink); color: #b5b8af; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .7fr .7fr; gap: 60px; }
.footer h2 { margin: 22px 0 8px; color: #fff; font-size: 28px; }
.footer p, .footer address, .footer a { display: block; margin: 0 0 9px; font-size: 12px; line-height: 1.65; font-style: normal; }
.footer-title { color: var(--sk-accent); font-size: 10px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-bottom { margin-top: 60px; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid #3a3d36; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.whatsapp { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 56px; height: 56px; display: grid; place-items: center; border: 4px solid var(--sk-ink); border-radius: 50%; background: var(--sk-accent); color: var(--sk-on-accent); font-size: 24px; }

/* ---- Hero de servicio ---------------------------------------------------- */

.inner-hero { padding: 90px 0 80px; background: var(--sk-ink); color: var(--sk-white); }
.inner-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; }
.service-visual { min-height: 480px; }
.service-visual .number { position: absolute; z-index: 2; left: -12px; bottom: -58px; color: rgba(255, 255, 255, .05); font: 400 250px/1 var(--font-heading); }

/* ---- Enfoque (banda con número grande) ----------------------------------- */

.service-statement { padding: calc(var(--section-py) - 5px) 0; background: var(--sk-accent); color: var(--sk-on-accent); }
.service-statement-grid { display: grid; grid-template-columns: .45fr 1.55fr; gap: 90px; }
.service-statement .big-number { color: rgba(23, 25, 21, .16); font: 400 145px/1 var(--font-heading); }
.service-statement h2 { max-width: 850px; margin: 0 0 25px; font-size: clamp(48px, 6vw, 84px); }
.service-statement p:last-child { max-width: 700px; font-size: 18px; line-height: 1.6; }

/* ---- Ventajas (foto y lista) --------------------------------------------- */

.benefits { background: var(--sk-white); }
.benefits-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 95px; }
.photo { min-height: 540px; background: linear-gradient(135deg, #c9c8bf 0 50%, #b8b8ae 50%); }
.benefits h2 { margin: 0 0 42px; font-size: clamp(44px, 5vw, 72px); }
.benefits ul { padding: 0; list-style: none; border-top: 1px solid var(--sk-line); }
.benefits li { padding: 18px 0; border-bottom: 1px solid var(--sk-line); }
.benefits li::before { content: "✓"; margin-right: 14px; color: #66721e; font-weight: 700; }
.other .cards { grid-template-columns: repeat(4, 1fr); }
.other .card { min-height: 300px; }

/* ---- Cabecera de galería e interiores ------------------------------------ */

.gallery-hero { padding: var(--section-py) 0 92px; background: var(--sk-ink); color: #fff; }
.gallery-hero p:last-child { max-width: 650px; color: #b7bbb1; font-size: 18px; line-height: 1.6; }

/* ---- Galería con filtros ------------------------------------------------- */

.filters { margin-bottom: 42px; display: flex; flex-wrap: wrap; gap: 9px; }
.filters button { padding: 11px 16px; border: 1px solid var(--sk-line); border-radius: var(--radius); background: transparent; color: var(--sk-ink); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.filters button.active { background: var(--sk-ink); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
.gallery-card:nth-child(even) { margin-top: 65px; }
.gallery-card .photo { min-height: 420px; }
.gallery-card .caption { padding: 22px 0; border-bottom: 1px solid var(--sk-line); }
.caption small { color: #6c722f; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.caption h3 { margin: 8px 0; }
.caption p { margin: 0; color: var(--sk-muted); }

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 1100px) {
    .utility { display: none; }
    .header-row { min-height: 73px; }
    .menu { display: block; }
    .nav { position: absolute; top: 73px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 16px; background: var(--sk-ink); }
    .nav.open { display: flex; }
    .nav a { padding: 13px 4px; font-size: 13px; border-bottom: 1px solid #343730; }
    .nav .nav-cta { text-align: center; }
}

@media (max-width: 1050px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
    .statement-grid { grid-template-columns: 1fr 2fr; }
    .statement-grid .statement-actions { grid-column: 2; }
    .contact-grid { gap: 50px; }
}

@media (max-width: 820px) {
    .shell { width: min(100% - 34px, 700px); }
    .hero-grid, .inner-grid, .why, .contact-grid, .benefits-grid { grid-template-columns: 1fr; }
    .hero-copy { padding: 72px 0 62px; }
    .visual { min-height: 420px; }
    .section { padding: calc(var(--section-py) * .75) 0; }
    .split { display: block; }
    .split > p { margin-top: 24px; }
    .statement-grid, .service-statement-grid { grid-template-columns: 1fr; }
    .statement-grid .statement-actions { grid-column: 1; }
    .process-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .service-visual { min-height: 370px; }
    .types-grid, .types-grid.three { grid-template-columns: repeat(2, 1fr); }
    .other .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .shell { width: calc(100% - 28px); }
    .hero h1, .inner-hero h1, .gallery-hero h1 { font-size: 54px; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .cards, .types-grid, .types-grid.two, .types-grid.three, .other .cards, .gallery-grid { grid-template-columns: 1fr; }
    .card { min-height: 260px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .direct { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    .gallery-card:nth-child(even) { margin-top: 0; }
    .form { padding: 26px; }
    .service-statement .big-number { font-size: 90px; }
    .whatsapp { right: 14px; bottom: 14px; }
}
