/* =========================================================================
   ESTILOS GLOBALES — Identiqo / Sudaderas para grupos
   Sistema de diseño con inspiración textil: tonos de hilo de bordado sobre
   lienzo, líneas de puntada como separadores, etiquetas tipo "care label".
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@500;600;700;800&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Paleta — inspirada en hilo de bordado sobre lienzo de algodón */
    --ink: #1E2A38;          /* azul marino profundo — texto principal */
    --ink-soft: #4B586A;     /* texto secundario */
    --canvas: #F1EEE6;       /* lienzo — fondo de secciones alternas */
    --white: #FFFFFF;
    --thread-gold: #D9A62E;  /* hilo mostaza — acento principal / CTA */
    --thread-gold-dark: #B8871E;
    --thread-cherry: #B23A48;/* hilo granate — acento secundario / precios */
    --stitch: #CFC9BB;       /* línea de puntada / bordes */
    --stitch-soft: #E4E0D4;
    --success: #3D7A5C;

    --font-display: 'League Spartan', 'Arial Narrow', sans-serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius: 4px;
    --container: 1120px;
    --shadow-card: 0 1px 2px rgba(30, 42, 56, 0.06), 0 6px 18px rgba(30, 42, 56, 0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--ink); }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 72px 0; }
section.compact { padding: 44px 0; }

.bg-canvas { background: var(--canvas); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink p, .bg-ink h2, .bg-ink h3 { color: var(--white); }

/* --- Línea de puntada: separador temático (hilo/costura) --- */
.stitch-line {
    border: none;
    border-top: 2px dashed var(--stitch);
    margin: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--thread-cherry);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--thread-cherry);
}

.lead { font-size: 1.1rem; max-width: 640px; }

/* --- Botones --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 14px 26px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
    line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--thread-gold);
    color: var(--ink);
}
.btn-primary:hover { background: var(--thread-gold-dark); }

.btn-outline {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-outline-light {
    background: transparent;
    border-color: rgba(255,255,255,0.55);
    color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* --- Cabecera / navegación --- */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--stitch-soft);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.logo span { color: var(--thread-cherry); }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--ink); }
nav.main-nav .btn { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle { display: none; }

/* --- Barra de garantías --- */
.guarantees {
    background: var(--ink);
    color: var(--white);
}
.guarantees .container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    padding-top: 12px;
    padding-bottom: 12px;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
}
.guarantees .item { display: flex; align-items: center; gap: 8px; opacity: 0.92; }
.guarantees .item::before { content: "✓"; color: var(--thread-gold); font-weight: 700; }

/* --- Hero --- */
.hero {
    padding: 68px 0 56px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.hero-stats .stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ink);
}
.hero-stats .stat span { font-size: 0.85rem; color: var(--ink-soft); }

.hero-visual {
    background: var(--canvas);
    border: 2px dashed var(--stitch);
    border-radius: 10px;
    padding: 34px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}
.hero-visual .tag {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 14px;
}
.hero-visual .tag .swatch {
    display: inline-block;
    width: 34px; height: 34px; border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1.5px var(--stitch);
}
.hero-visual .tag strong { display: block; font-size: 0.92rem; }
.hero-visual .tag small { color: var(--ink-soft); font-size: 0.8rem; }

/* --- Proceso en pasos --- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-top: 48px;
}
.steps::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 6%;
    right: 6%;
    border-top: 2px dashed var(--stitch);
    z-index: 0;
}
.step { position: relative; padding: 0 18px; text-align: left; }
.step .num {
    position: relative;
    z-index: 1;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { font-size: 0.92rem; }

/* --- Selector de segmento --- */
.segment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 40px;
}
.segment-card {
    background: var(--white);
    border: 1px solid var(--stitch-soft);
    border-radius: 8px;
    padding: 26px 22px;
    text-decoration: none;
    display: block;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.segment-card:hover { border-color: var(--thread-gold); transform: translateY(-2px); }
.segment-card .icon { font-size: 1.7rem; margin-bottom: 14px; display: block; }
.segment-card h3 { color: var(--ink); font-size: 1.02rem; margin-bottom: 6px; }
.segment-card p { font-size: 0.88rem; margin-bottom: 10px; }
.segment-card .go { font-size: 0.82rem; font-weight: 600; color: var(--thread-cherry); }

/* --- Casos / portfolio (etiqueta de prenda) --- */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.case-card {
    background: var(--white);
    border: 1px dashed var(--stitch);
    border-radius: 8px;
    padding: 22px;
    position: relative;
}
.case-card .swatch-row { display: flex; gap: 8px; margin-bottom: 16px; }
.case-card .swatch { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1.5px var(--stitch); }
.case-card h3 { font-size: 1rem; margin-bottom: 4px; }
.case-card .meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 14px; }
.case-card .price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background: var(--canvas);
    padding: 8px 14px;
    border-radius: var(--radius);
}
.case-card .price-tag strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--thread-cherry); }
.case-card .price-tag span { font-size: 0.78rem; color: var(--ink-soft); }
.case-card .placeholder-note {
    position: absolute; top: 14px; right: 14px;
    font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--ink-soft); background: var(--stitch-soft); padding: 3px 8px; border-radius: 20px;
}

/* --- Reseñas --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}
.review-card {
    background: var(--white);
    border: 1px solid var(--stitch-soft);
    border-radius: 8px;
    padding: 22px;
}
.review-card .stars { color: var(--thread-gold); letter-spacing: 2px; margin-bottom: 10px; }
.review-card p { font-size: 0.92rem; font-style: italic; }
.review-card .who { font-size: 0.84rem; font-weight: 600; color: var(--ink); font-style: normal; }

.rating-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.rating-banner .score {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
}
.rating-banner .stars { color: var(--thread-gold); font-size: 1.1rem; letter-spacing: 2px; }

/* --- FAQ (acordeón nativo) --- */
.faq-list { margin-top: 32px; max-width: 780px; }
.faq-item {
    border-bottom: 1px solid var(--stitch-soft);
    padding: 6px 0;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 4px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--thread-cherry);
    flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 4px 18px; font-size: 0.95rem; }

/* --- Footer --- */
footer.site-footer {
    background: var(--ink);
    color: var(--white);
    padding: 56px 0 28px;
}
footer.site-footer p, footer.site-footer a { color: rgba(255,255,255,0.72); }
footer.site-footer a { text-decoration: none; }
footer.site-footer a:hover { color: var(--white); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}
.footer-grid h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 0.9rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
}

/* --- WhatsApp flotante --- */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #25D366;
    color: white;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    z-index: 60;
    font-size: 1.6rem;
}

/* =========================================================================
   FORMULARIOS (contacto y calculadora)
   ========================================================================= */

.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--ink);
}
.field .hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--stitch);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--thread-gold);
}
.field textarea { min-height: 120px; resize: vertical; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Honeypot — oculto para humanos, visible para bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-status {
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: #E7F1EC; color: var(--success); }
.form-status.error { background: #F6E7E9; color: var(--thread-cherry); }

/* =========================================================================
   PÁGINA: CALCULADORA DE PRESUPUESTO
   ========================================================================= */

.calc-page {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: flex-start;
}

.calc-card {
    background: var(--white);
    border: 1px solid var(--stitch-soft);
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 20px;
}
.calc-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.calc-card h3 .step-dot {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    flex-shrink: 0;
}

.zonas-guia {
    background: var(--stitch-soft);
    border: 1px dashed var(--stitch);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
}
.zonas-guia-fotos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 12px;
}
.zona-foto { margin: 0; text-align: center; }
.zona-foto img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--stitch-soft);
    border-radius: 6px;
    display: block;
}
.zona-foto figcaption {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 4px 6px;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--ink-soft);
}
.zona-foto figcaption small { color: var(--ink-soft); opacity: 0.8; }
.zonas-guia-nota { margin: 0; font-size: 0.78rem; color: var(--ink-soft); text-align: center; }
@media (max-width: 560px) {
    .zonas-guia-fotos { grid-template-columns: repeat(2, 1fr); }
}
.zona-chip {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(58, 140, 90, 0.18);
    border: 1.5px solid #2E8B57;
    color: #1E6B3E;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.model-option {
    border: 2px solid var(--stitch-soft);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.model-option:hover { border-color: var(--stitch); }
.model-option.selected { border-color: var(--thread-gold); background: #FBF6E9; }
.model-option strong { display: block; font-family: var(--font-display); margin-bottom: 4px; }
.model-option .price { font-size: 0.82rem; color: var(--thread-cherry); font-weight: 600; margin-top: 8px; display: block; }
.model-option p { font-size: 0.8rem; margin: 0; }
.model-option .refs { display: block; font-size: 0.76rem; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: 0.02em; }
.model-option input { display: none; }

.ref-wrap { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--stitch); }
.ref-title { font-weight: 600; margin: 0 0 10px; font-size: 0.92rem; }
.ref-title span { font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; }
.ref-options { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-pill {
    border: 2px solid var(--stitch-soft);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.86rem;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.ref-pill:hover { border-color: var(--stitch); }
.ref-pill.selected { border-color: var(--thread-gold); background: #FBF6E9; font-weight: 600; }
.ref-pill input { display: none; }

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 18px 8px;
}
.color-option { text-align: center; cursor: pointer; }
.color-option input { display: none; }
.color-option .dot {
    display: block;
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1.5px var(--stitch);
    margin: 0 auto 6px;
}
.color-option input:checked + .dot { box-shadow: 0 0 0 2.5px var(--thread-gold); }
.color-option span {
    display: block;
    font-size: 0.74rem;
    line-height: 1.25;
    color: var(--ink-soft);
    overflow-wrap: break-word;
}
.color-option .dot-otro {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px dashed var(--stitch);
    background: transparent;
    color: var(--ink-soft);
    font-size: 1.1rem; line-height: 1;
    margin: 0 auto 6px;
}
.color-option input:checked + .dot-otro { border-color: var(--thread-gold); color: var(--thread-gold); box-shadow: 0 0 0 1.5px var(--thread-gold); }
.calc-card > p.hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; }

.zone-item {
    border: 1.5px solid var(--stitch-soft);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.zone-item .zone-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.zone-item label.zone-check {
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 0.94rem;
    cursor: pointer;
}
.zone-item .zone-extra {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--stitch-soft);
}
.zone-item.active .zone-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zone-item.active { border-color: var(--thread-gold); }

.sizes-table { width: 100%; border-collapse: collapse; }
.sizes-table th, .sizes-table td { padding: 8px 6px; text-align: center; }
.sizes-table th { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.sizes-table input {
    width: 100%;
    padding: 8px;
    text-align: center;
    border: 1.5px solid var(--stitch);
    border-radius: var(--radius);
}
.sizes-total { margin-top: 12px; font-size: 0.86rem; }
.sizes-total strong.mismatch { color: var(--thread-cherry); }
.sizes-total strong.match { color: var(--success); }

/* --- Panel de resumen (sticky) --- */
.summary-panel {
    background: var(--ink);
    color: var(--white);
    border-radius: 10px;
    padding: 26px;
    position: sticky;
    top: 96px;
}
.summary-panel h3 { color: var(--white); font-size: 1.05rem; }
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
}
.summary-line.total {
    border-bottom: none;
    margin-top: 6px;
    padding-top: 14px;
    align-items: baseline;
}
.summary-line.total .amount {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--thread-gold);
}
.summary-line.total .label { font-size: 0.95rem; font-weight: 600; color: var(--white); }
.summary-unit { text-align: right; font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: -4px; margin-bottom: 14px; }
.summary-note {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.55);
    margin-top: 16px;
}
.summary-panel .btn-primary { margin-top: 18px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 900px) {
    nav.main-nav { position: fixed; inset: 64px 0 0 0; background: var(--white); flex-direction: column; padding: 28px 24px; align-items: flex-start; gap: 20px; transform: translateX(100%); transition: transform 0.2s ease; }
    nav.main-nav.open { transform: translateX(0); }
    .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
    .nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

    .hero-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
    .steps::before { display: none; }
    .segment-grid { grid-template-columns: 1fr 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .calc-page { grid-template-columns: 1fr; }
    .summary-panel { position: static; }
    .model-grid { grid-template-columns: 1fr; }
    .row-2, .row-3 { grid-template-columns: 1fr; }
    .zone-item.active .zone-extra { grid-template-columns: 1fr; }
}

.ref-wrap .hint { font-size: 0.78rem; color: var(--ink-soft); margin: 10px 0 0; }
