/* ============================================================
   OLSAAL · Cable Clips Manual
   Estilos premium, mobile-first, sin dependencias
   ============================================================ */

/* ---------- Variables de marca ---------- */
:root {
  --black: #111111;
  --white: #FFFFFF;
  --bg: #F7F5F0;          /* blanco roto / fondo premium */
  --charcoal: #1D1D1F;
  --text-gray: #5F5F5F;
  --border: #E8E4DD;
  --accent: #C8B8A2;      /* beige acento, uso muy puntual */
  --card-bg: #FBF8F3;

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px rgba(17, 17, 17, 0.05);
}

/* ---------- Reset básico ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Tipografía ---------- */
h1 {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--black);
  font-weight: 700;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.05rem;
  color: var(--black);
  font-weight: 600;
}

.lead {
  color: var(--text-gray);
  max-width: 60ch;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 14px;
}

.section-num {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 1rem;
  color: var(--black);
  text-decoration: none;
}

/* ---------- Selector de idioma ---------- */
.lang-switcher {
  display: flex;
  gap: 6px;
}

.lang-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-gray);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover {
  border-color: var(--charcoal);
  color: var(--black);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.lang-btn[aria-pressed="true"] {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 36px;
}

.hero-subtitle {
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-top: 14px;
  max-width: 46ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
}

.chip .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Placeholders de imagen ---------- */
/* Sustituir estos bloques por <img> reales (ver comentarios en el HTML) */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 280px;
  color: var(--accent);
  box-shadow: var(--shadow);
}

.img-placeholder-small {
  min-height: 180px;
  max-width: 420px;
  margin: 36px auto 0;
}

.ph-icon {
  width: 88px;
  height: 88px;
}

.ph-label {
  font-size: 0.75rem;
  color: var(--text-gray);
  letter-spacing: 0.04em;
}

.hero-img,
.pack-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Listas con check ---------- */
.check-list li {
  position: relative;
  padding: 14px 16px 14px 46px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  color: var(--charcoal);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23111111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ---------- Recomendado / Evitar ---------- */
.surfaces-grid {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.surface-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.surface-title .icon {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  flex-shrink: 0;
}

.surface-yes .surface-title .icon {
  color: var(--white);
  background: var(--black);
}

.surface-no .surface-title .icon {
  color: var(--charcoal);
  background: var(--border);
}

.surface-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-gray);
  font-size: 0.95rem;
}

.surface-card ul li:last-child {
  border-bottom: none;
}

/* ---------- Nota ---------- */
.note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--card-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-gray);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ---------- Pasos ---------- */
.steps {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.section-alt .step,
.section-alt .check-list li,
.section-alt .card,
.section-alt .note {
  background: var(--bg);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ---------- Errores frecuentes ---------- */
.faq-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.faq-card h3 {
  margin: 4px 0 16px;
  font-size: 1.1rem;
}

.faq-card p:last-child {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-top: 4px;
}

.faq-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
}

.faq-label-sol {
  color: var(--text-gray);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ---------- Cierre de marca ---------- */
.brand-close {
  text-align: center;
  padding: 72px 0;
}

.brand-close .lead {
  margin: 0 auto;
}

.brand-logo {
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 28px 0;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

/* ============================================================
   Breakpoints
   ============================================================ */

/* Tablet */
@media (min-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .surfaces-grid,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop */
@media (min-width: 960px) {
  .hero {
    padding: 88px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
  }

  .section {
    padding: 88px 0;
  }

  .steps {
    gap: 16px;
  }

  .step {
    padding: 26px 30px;
  }
}

/* Accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
