/* ============================================================
   Clínica Stability — WEB-PROPUESTA
   Maquetación estática (HTML/CSS/JS), sin lógica de negocio.
   Sitio público final, responsive y conectado al panel de contenidos.
   ============================================================ */

:root{
  --teal: #00a3ae;
  --teal-dark: #007d86;
  --teal-light: #e3f6f7;
  --coral: #ff6b5e;
  --ink: #16232e;
  --ink-soft: #566672;
  --ink-faint: #8695a1;
  --bg: #ffffff;
  --bg-soft: #f6f9fa;
  --border: #e6ecee;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(22,35,46,.06);
  --shadow-md: 0 12px 32px rgba(22,35,46,.10);
  --shadow-lg: 0 24px 60px rgba(22,35,46,.16);
  --container: 1160px;
  --container-wide: 1480px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p{ margin: 0 0 1em; }
.container{ width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Botones ---------- */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
  white-space: nowrap; font-family: inherit;
}
.btn-primary{ background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(0,163,174,.30); }
.btn-primary:hover{ background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,163,174,.38); }
.btn-outline{ background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover{ background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-dark{ background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline-dark:hover{ border-color: var(--teal); color: var(--teal); }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container{ display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 14px; max-width: var(--container-wide); }
.brand{ display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); flex: none; }
.brand-mark{
  height: 40px; width: auto; object-fit: contain; flex: none;
}
.main-nav{ display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.main-nav > li{ position: relative; }
.main-nav a{
  display: flex; align-items: center; gap: 4px;
  padding: 9px 11px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  color: var(--ink-soft); transition: all .15s ease; white-space: nowrap;
}
.main-nav a:hover{ color: var(--ink); background: var(--bg-soft); }
.main-nav a.active{ color: var(--teal-dark); background: var(--teal-light); }
.main-nav .caret{ width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .6; }

.has-dropdown{ position: relative; }
.dropdown{
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all .18s ease; z-index: 60;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown{ opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a{ display: block; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: var(--ink-soft); }
.dropdown a:hover{ background: var(--teal-light); color: var(--teal-dark); }

.header-actions{ display: flex; align-items: center; gap: 16px; flex: none; }
.header-phone{ display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.header-phone .dot{ width: 8px; height: 8px; border-radius: 50%; background: #21c37a; box-shadow: 0 0 0 4px rgba(33,195,122,.18); flex: none; }
.nav-toggle{
  display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; align-items: center; justify-content: center; cursor: pointer; font-size: 18px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar{ background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.breadcrumb{ display: flex; align-items: center; gap: 8px; padding: 16px 0; font-size: 14px; color: var(--ink-faint); flex-wrap: wrap; }
.breadcrumb a{ color: var(--ink-soft); font-weight: 600; }
.breadcrumb a:hover{ color: var(--teal-dark); }
.breadcrumb .sep{ opacity: .5; }
.breadcrumb .current{ color: var(--ink); font-weight: 600; }

/* ---------- Hero (home) ---------- */
.hero{ position: relative; overflow: hidden; }
.hero-media{ position: absolute; inset: 0; }
.hero-media img{ width: 100%; height: 100%; object-fit: cover; }
.hero-media::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,26,34,.88) 0%, rgba(12,26,34,.66) 42%, rgba(12,26,34,.30) 78%);
}
.hero-inner{ position: relative; padding: 132px 0 108px; color: #fff; }
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28); font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 26px;
}
.eyebrow .dot{ width: 7px; height: 7px; border-radius: 50%; background: #4be3a0; }
.hero h1{ font-size: 52px; line-height: 1.08; max-width: 680px; margin-bottom: 22px; }
.hero h1 em{ font-style: normal; color: #6fe3ea; }
.hero p.lead{ font-size: 18px; max-width: 540px; color: rgba(255,255,255,.86); margin-bottom: 38px; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero slider (home) ---------- */
.hero-slider{ min-height: 640px; }
.hero-slider .hero-slide{
  position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 0;
  transition: opacity 1s ease;
}
.hero-slider .hero-slide.active{ opacity: 1; visibility: visible; z-index: 1; }
.hero-slider .hero-slide .hero-media{ position: absolute; inset: 0; }
.hero-slider .hero-slide .container{ position: relative; height: 100%; display: flex; align-items: center; }
.hero-slider .hero-slide .hero-inner{ padding: 0; }
.hero-arrows{ display: flex; }
.hero-arrow{
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(12,26,34,.35); backdrop-filter: blur(4px); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.hero-arrow:hover{ background: rgba(12,26,34,.6); border-color: #fff; }
.hero-arrow.prev{ left: 20px; }
.hero-arrow.next{ right: 20px; }
.hero-dots{
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 9px;
}
.hero-dot{
  width: 9px; height: 9px; border-radius: 999px; border: none; padding: 0;
  background: rgba(255,255,255,.4); cursor: pointer; transition: all .2s ease;
}
.hero-dot:hover{ background: rgba(255,255,255,.7); }
.hero-dot.active{ width: 26px; background: #6fe3ea; }

.trust-bar{ background: var(--ink); }
.trust-bar .container{
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding: 26px 24px;
}
.trust-item{ text-align: center; color: #fff; padding: 6px 12px; border-left: 1px solid rgba(255,255,255,.12); }
.trust-item:first-child{ border-left: none; }
.trust-item strong{ display: block; font-size: 26px; font-weight: 800; color: #6fe3ea; }
.trust-item span{ font-size: 13px; color: rgba(255,255,255,.68); }

/* ---------- Page hero (páginas interiores) ---------- */
.page-hero{ position: relative; overflow: hidden; }
.page-hero .hero-media img{ filter: saturate(1.05); }
.page-hero .hero-inner{ padding: 76px 0 92px; }
.page-hero h1{ font-size: 40px; max-width: 640px; margin-bottom: 14px; }
.page-hero p.lead{ margin-bottom: 0; }
.page-hero.compact .hero-inner{ padding: 56px 0 68px; }
.page-hero.compact h1{ font-size: 32px; }

/* ---------- Secciones genéricas ---------- */
.section{ padding: 96px 0; }
.section-soft{ background: var(--bg-soft); }
.section-head{ max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head.align-left{ margin: 0 0 44px; text-align: left; }
.kicker{
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: 12px;
}
.section-head h2{ font-size: 34px; margin-bottom: 14px; }
.section-head p{ color: var(--ink-soft); font-size: 16px; margin: 0; }

/* ---------- Grid de servicios ---------- */
.services-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card{
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all .25s ease;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card .thumb{ height: 168px; overflow: hidden; position: relative; }
.service-card .thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .thumb img{ transform: scale(1.06); }
.service-card .body{ padding: 22px; }
.service-card h3{ font-size: 18px; margin-bottom: 8px; }
.service-card p{ font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.service-card .go{ font-size: 13.5px; font-weight: 700; color: var(--teal-dark); display: inline-flex; align-items: center; gap: 6px; }
.service-card .go svg{ transition: transform .2s ease; }
.service-card:hover .go svg{ transform: translateX(4px); }

/* ---------- Por qué elegirnos ---------- */
.features-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card{
  padding: 30px 26px; border-radius: var(--radius-md); background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.feature-icon{
  width: 52px; height: 52px; border-radius: 14px; background: var(--teal-light);
  color: var(--teal-dark); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3{ font-size: 18px; margin-bottom: 8px; }
.feature-card p{ font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Noticias (home preview + listado) ---------- */
.news-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card{
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all .25s ease; display: flex; flex-direction: column;
}
.news-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card .thumb{ height: 170px; overflow: hidden; }
.news-card .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.news-card .body{ padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta{ display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.news-meta .tag{ background: var(--teal-light); color: var(--teal-dark); padding: 3px 10px; border-radius: 999px; }
.news-card h3{ font-size: 17px; line-height: 1.35; }
.news-card p{ font-size: 14px; color: var(--ink-soft); margin: 0; flex: 1; }
.news-card .go{ font-size: 13.5px; font-weight: 700; color: var(--teal-dark); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }

.news-list{ display: flex; flex-direction: column; gap: 20px; }
.news-row{
  display: grid; grid-template-columns: 220px 1fr; gap: 26px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all .2s ease;
}
.news-row:hover{ box-shadow: var(--shadow-md); }
.news-row .thumb{ height: 100%; min-height: 150px; overflow: hidden; }
.news-row .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.news-row .body{ padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.news-row-noimg{ grid-template-columns: 1fr; }
.news-row-noimg .body{ padding: 22px 24px; }
.news-row h3{ font-size: 19px; }
.news-row p{ color: var(--ink-soft); font-size: 14.5px; margin: 0 0 4px; }

.news-sidebar{ display: flex; flex-direction: column; gap: 22px; }
.side-card{ background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.side-card h4{ font-size: 15px; margin-bottom: 14px; }
.side-list li{ padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.side-list li:last-child{ border-bottom: none; }
.side-list a{ color: var(--ink-soft); font-weight: 600; }
.side-list a:hover{ color: var(--teal-dark); }
.tag-row{ display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill{ background: #fff; border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.tag-pill:hover{ border-color: var(--teal); color: var(--teal-dark); }

/* ---------- Artículo de noticia ---------- */
.article-header{ max-width: 760px; margin: 0 auto 40px; text-align: center; }
.article-header .news-meta{ justify-content: center; margin-bottom: 16px; }
.article-header h1{ font-size: 36px; line-height: 1.2; margin-bottom: 16px; }
.article-cover{ border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 48px; }
.article-cover img{ width: 100%; max-height: 460px; object-fit: cover; }
.article-body{ max-width: 720px; margin: 0 auto; font-size: 17px; color: var(--ink-soft); }
.article-body h2{ font-size: 24px; color: var(--ink); margin: 40px 0 14px; }
.article-body p{ margin-bottom: 18px; }
.article-body ul{ margin: 14px 0 20px; padding-left: 22px; list-style: disc; }
.article-body ol{ margin: 14px 0 20px; padding-left: 22px; list-style: decimal; }
.article-body li{ margin: 4px 0; }
.article-share{ max-width: 720px; margin: 40px auto 0; display: flex; align-items: center; gap: 14px; padding-top: 28px; border-top: 1px solid var(--border); }
.article-share span{ font-size: 13px; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Equipo ---------- */
.team-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team-card{
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all .25s ease; text-align: center;
}
.team-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* Las fotos de images/equipo/curriculums/ son diapositivas completas
   (foto + ficha de texto), igual que en la web actual: se muestran
   enteras, sin recortar. */
.team-card .photo{ overflow: hidden; background: var(--bg-soft); }
.team-card .photo img{ width: 100%; height: auto; display: block; object-fit: contain; }
.team-card .body{ padding: 20px; }
.team-card h3{ font-size: 16.5px; margin-bottom: 4px; }
.team-card .role{ font-size: 13px; font-weight: 700; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .03em; }
.team-facts{ text-align: left; margin: 14px 0 0; padding-left: 18px; }
.team-facts li{ font-size: 13px; color: var(--ink-soft); padding: 3px 0; line-height: 1.4; }
.team-slogan{ font-size: 13px; font-style: italic; color: var(--ink-faint); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }

/* ---------- CTA banda ---------- */
.cta-section{
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  padding: 56px 0;
}
.cta-band{
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  color: #fff; flex-wrap: wrap;
}
.cta-band h2{ font-size: 28px; margin-bottom: 8px; }
.cta-band p{ margin: 0; color: rgba(255,255,255,.86); font-size: 15.5px; }
.cta-band .btn-primary{ background: #fff; color: var(--teal-dark); box-shadow: none; }
.cta-band .btn-primary:hover{ background: #eafcfd; transform: translateY(-2px); }

/* ---------- Contenido de página de servicio ---------- */
.service-layout{ display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.service-content h2.block-title{
  font-size: 22px; display: flex; align-items: center; gap: 12px; margin: 40px 0 12px;
}
.service-content h2.block-title:first-child{ margin-top: 0; }
.service-content h2.block-title::before{
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none;
}
.service-content p{ color: var(--ink-soft); font-size: 15.5px; }
.service-content .lead-p{ font-size: 17px; color: var(--ink); }
.service-content ul.check-list{ margin: 18px 0; }
.service-content ul.check-list li{
  display: flex; gap: 10px; padding: 8px 0; color: var(--ink-soft); font-size: 15px;
}
.service-content ul.check-list li::before{ content: '✓'; color: var(--teal-dark); font-weight: 800; }

/* Contenido libre venido de la base de datos (tabla "pages"), sin las
   clases del diseño: estilos genéricos de respaldo para que se vea
   igual de cuidado aunque el editor del panel no use check-list/block-title. */
.service-content h2, .service-content h3, .service-content h4{
  font-size: 20px; margin: 32px 0 10px; color: var(--ink);
}
.service-content h2:first-child, .service-content h3:first-child, .service-content h4:first-child{ margin-top: 0; }
.service-content ul:not(.check-list){ margin: 14px 0 20px; padding-left: 20px; list-style: disc; }
.service-content ul:not(.check-list) li{ color: var(--ink-soft); font-size: 15px; padding: 3px 0; }
.service-content ol{ margin: 14px 0 20px; padding-left: 20px; list-style: decimal; }
.service-content ol li{ color: var(--ink-soft); font-size: 15px; padding: 3px 0; }
.service-content strong{ color: var(--ink); }
.service-content img{ max-width: 100%; border-radius: var(--radius-md); margin: 16px 0; }
.service-content a:not(.btn){ color: var(--teal-dark); font-weight: 600; text-decoration: underline; }

.service-aside{ position: sticky; top: 108px; display: flex; flex-direction: column; gap: 20px; }
.aside-photo{ border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.aside-photo img{ aspect-ratio: 4/5; object-fit: cover; }
.aside-card{
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px;
}
.aside-card h4{ font-size: 16px; margin-bottom: 10px; }
.aside-card p{ font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.aside-card .btn{ width: 100%; justify-content: center; }
.aside-card ul{ margin-bottom: 16px; }
.aside-card ul li{ font-size: 14px; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid var(--border); }
.aside-card ul li:last-child{ border-bottom: none; }

/* ---------- Tabs (Ejercicio grupal dirigido) ---------- */
.tabs-nav{ display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.tabs-nav button{
  font-family: inherit; background: none; border: none; cursor: pointer;
  padding: 14px 6px; margin-right: 22px; font-size: 15.5px; font-weight: 700; color: var(--ink-faint);
  border-bottom: 3px solid transparent; transition: all .15s ease;
}
.tabs-nav button:hover{ color: var(--ink); }
.tabs-nav button.active{ color: var(--teal-dark); border-color: var(--teal); }
.tab-panel{ display: none; }
.tab-panel.active{ display: block; }
.tab-panel .service-layout{ align-items: start; }

/* ---------- Formulario de contacto ---------- */
.contact-layout{ display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-form{ background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row{ display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label{ font-size: 13.5px; font-weight: 700; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea{
  font-family: inherit; font-size: 15px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg-soft); color: var(--ink); resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{ outline: none; border-color: var(--teal); background: #fff; }
.form-note{ font-size: 12.5px; color: var(--ink-faint); margin-top: -6px; margin-bottom: 20px; }

.contact-info{ display: flex; flex-direction: column; gap: 18px; }
.info-card{ display: flex; gap: 16px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.info-icon{ width: 44px; height: 44px; border-radius: 12px; background: var(--teal-light); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.info-card h4{ font-size: 15px; margin-bottom: 4px; }
.info-card p{ font-size: 14px; color: var(--ink-soft); margin: 0; }
.map-embed{ border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); height: 220px; }
.map-embed iframe{ width: 100%; height: 100%; border: 0; }
.whatsapp-fab{
  position: fixed; right: 24px; bottom: 24px;
  right: max(24px, calc(24px + env(safe-area-inset-right)));
  bottom: max(24px, calc(24px + env(safe-area-inset-bottom)));
  width: 56px; height: 56px; min-width: 56px; min-height: 56px; border-radius: 50%; flex: none;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); z-index: 40; color: #fff;
}
.whatsapp-fab svg{ display: block; width: 26px; height: 26px; flex: none; }

/* ---------- Guía de estilo / colores ---------- */
.swatch-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.swatch{ border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.swatch .fill{ height: 90px; }
.swatch .label{ padding: 12px 16px; background: #fff; }
.swatch .label strong{ display: block; font-size: 14px; }
.swatch .label span{ font-size: 12.5px; color: var(--ink-faint); font-family: 'Courier New', monospace; }
.type-scale div{ display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.type-scale div:last-child{ border-bottom: none; }
.type-scale .tag{ font-size: 12.5px; color: var(--ink-faint); width: 90px; flex: none; font-family: 'Courier New', monospace; }
.component-block{ margin-bottom: 56px; }
.component-block h3{ font-size: 20px; margin-bottom: 20px; }
.btn-row{ display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.dark-demo{ background: var(--ink); border-radius: var(--radius-md); padding: 28px; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--teal-dark); color: rgba(255,255,255,.82); padding: 72px 0 0; margin-top: 96px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-brand .brand{ color: #fff; margin-bottom: 14px; }
.footer-grid p{ font-size: 14.5px; line-height: 1.7; }
.footer-col h4{ color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col ul li{ margin-bottom: 11px; }
.footer-col a{ font-size: 14.5px; transition: color .15s ease; }
.footer-col a:hover{ color: #fff; }
.footer-bottom{ display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: 13.5px; flex-wrap: wrap; gap: 12px; }
.footer-bottom a{ color: rgba(255,255,255,.7); }
.footer-bottom a:hover{ color: #fff; }
.social-row{ display: flex; gap: 10px; }
.social-row a{
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.social-row a:hover{ background: var(--teal); }

/* ---------- Responsive ---------- */
@media (max-width: 1380px){
  .header-phone{ display: none; }
  .main-nav a{ padding: 8px 9px; font-size: 12.5px; }
}
@media (max-width: 1120px){
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }
}
@media (max-width: 980px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .features-grid{ grid-template-columns: 1fr; }
  .service-layout{ grid-template-columns: 1fr; }
  .service-aside{ position: static; flex-direction: row; }
  .aside-photo{ flex: 1; }
  .aside-card{ flex: 1; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .trust-bar .container{ grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .trust-item:nth-child(3){ border-left: none; }
  .news-grid{ grid-template-columns: 1fr 1fr; }
  .contact-layout{ grid-template-columns: 1fr; }
  .swatch-grid{ grid-template-columns: repeat(2, 1fr); }
  .news-row{ grid-template-columns: 1fr; }
  .news-row .thumb{ height: 180px; }
  .news-row .body{ padding: 20px 24px; }
}
@media (max-width: 760px){
  .hero h1{ font-size: 34px; }
  .hero-inner{ padding: 92px 0 76px; }
  .hero-slider{ min-height: 560px; }
  .hero-slider .hero-inner{ padding: 0; }
  .hero-arrow{ width: 38px; height: 38px; font-size: 18px; }
  .hero-arrow.prev{ left: 10px; }
  .hero-arrow.next{ right: 10px; }
  .page-hero h1{ font-size: 28px; }
  .section{ padding: 60px 0; }
  .cta-section{ padding: 40px 0; }
  .cta-band{ flex-direction: column; text-align: center; }
  .services-grid{ grid-template-columns: 1fr; }
  .news-grid{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .service-aside{ flex-direction: column; }
  .swatch-grid{ grid-template-columns: 1fr 1fr; }
  .article-header h1{ font-size: 26px; }
}

/* ---------- Menú móvil ---------- */
.mobile-nav{
  display: none; position: fixed; top: 84px; right: 0; bottom: 0; left: 0; background: #fff; z-index: 45;
  padding: 20px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-nav.open{ display: block; }
.mobile-nav ul{ display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a{ display: block; padding: 14px 8px; font-weight: 700; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-nav .sub{ padding-left: 18px; }
.mobile-nav .sub a{ font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.mobile-nav .cta{ margin-top: 20px; }
