@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/poppins-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/poppins-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/poppins-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/poppins-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/poppins-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/poppins-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/poppins-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/poppins-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ==========================================================================
   Coweb — hoja de estilos única
   Estructura: 1 Tokens · 2 Base · 3 Layout · 4 Cabecera · 5 Componentes
               6 Contenido (prose) · 7 Blog · 8 Formulario · 9 Pie y flotantes
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --brand: #ff6600;
  --brand-ink: #c24e00;          /* naranja con contraste AA para texto sobre claro */
  --ink: #000;
  --text: #777;
  --tint: #f5f9fc;
  --dark: #232323;
  --line: #e3e9ee;
  --radius: 20px;
  --container: 1080px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 6px 24px rgb(30 30 30 / 8%);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 15px/1.7 var(--font);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; color: var(--ink); font-weight: 600; line-height: 1.25; }
/* Escala tipográfica Poppins: cada nivel es claramente menor que el anterior */
h1, h2, h3, h4, h5 { letter-spacing: -.02em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.25rem); font-weight: 600; line-height: 1.12; }
h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.7rem); font-weight: 600; line-height: 1.18; }
h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: .95rem; font-weight: 600; }
h6 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
button, input, select, textarea { font: inherit; }
p, ul, ol, table, blockquote { margin: 0 0 1.1em; }
a { color: var(--brand-ink); text-underline-offset: .18em; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem;
  background: var(--ink); color: #fff; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }
.text-center { text-align: center; }
.accent { color: var(--brand); }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--tint { background: var(--tint); }
.section--hero { padding-top: clamp(1rem, 3vw, 2rem); }
.container > * + * { margin-top: 2rem; }

.stack { display: grid; gap: 1.5rem; }
.stack--center { justify-items: center; text-align: center; }
.stack--center > .prose { max-width: 800px; }
.stack .media { border-radius: var(--radius); }

.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.split__col { display: grid; gap: 1rem; min-width: 0; }
.split .media { border-radius: var(--radius); width: 100%; }
@media (min-width: 768px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cards { display: grid; gap: 1.5rem; }
@media (min-width: 600px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 4. Cabecera -------------------------------------------------------------- */
.site-header { padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 2vw, 1.75rem); }
.site-header__bar {
  position: relative; max-width: var(--container); margin-inline: auto;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1rem;
  background: var(--tint); border-radius: 100px; padding: 1rem 2.25rem;
}
.brand { display: block; line-height: 0; }
.brand img { width: clamp(100px, 14vw, 125px); height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1.75rem; }
.site-nav a {
  display: block; padding: .5rem 0; color: var(--text); font-size: .9rem; font-weight: 500;
  text-decoration: none; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .is-active a, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--brand);
  border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { left: 0; top: -7px; }
.nav-toggle__bars::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-header__bar { grid-template-columns: 1fr auto auto; padding: .75rem 1rem .75rem 1.5rem; }
  .nav-toggle { display: block; order: 3; }
  .site-header__cta { order: 2; }
  .site-nav {
    display: none; grid-column: 1 / -1; order: 5; padding: .5rem 0 .75rem;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  .site-nav a { padding: .7rem .25rem; border-bottom: 0; }
  .site-header__bar:has(.site-nav.is-open) { border-radius: 28px; }
}

/* 5. Componentes ----------------------------------------------------------- */
.btn {
  display: inline-block; padding: .8em 1.8em; border: 2px solid var(--brand); border-radius: 50px;
  background: var(--brand); color: #fff; font: 700 .95rem/1.2 var(--font);
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--sm { padding: .6em 1.3em; font-size: .85rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--brand); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.btn-row { margin: 0; display: flex; }
.btn-row--center { justify-content: center; }
.btn-row--right { justify-content: flex-end; }
.btn-row--left { justify-content: flex-start; }

.card {
  display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem;
  background: var(--tint); border-radius: var(--radius); overflow: hidden;
}
.section--tint .card { background: #fff; }
.card__icon { color: var(--brand); line-height: 0; }
.card__icon .icon { width: 2.8rem; height: 2.8rem; }
.card__title { font-size: 1rem; margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--brand-ink); }
.card p { margin: 0; font-size: .95rem; }
.card--client { padding: 1.25rem; text-align: center; }
.card--client .card__media img { width: 100%; border-radius: 10px; }
.card--client .card__title { font-size: 1.05rem; }

.panel { width: 100%; }

.reviews { position: relative; width: 100%; text-align: left; overflow: hidden; border-radius: var(--radius); background: var(--tint); padding: 1.5rem 0 .5rem; }
.reviews__track {
  display: flex; gap: 1rem; padding: .25rem 1rem 1rem; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: var(--brand) transparent;
}
/* Bucle infinito: main.js duplica las tarjetas y añade .is-looping */
.reviews.is-looping .reviews__track { overflow: visible; width: max-content; padding-inline: 0 1rem; animation: reviews-loop 45s linear infinite; }
.reviews.is-looping:hover .reviews__track, .reviews.is-looping:focus-within .reviews__track { animation-play-state: paused; }
@keyframes reviews-loop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .reviews.is-looping .reviews__track { animation: none; transform: none; width: auto; overflow-x: auto; } }
.review {
  flex: 0 0 min(340px, 82vw); background: #fff; border-radius: 14px;
  padding: 1.25rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem;
}
.review__head { display: flex; align-items: center; gap: .75rem; }
.review__avatar {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
}
.review__name { margin: 0; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.review__src { margin: 0; font-size: .75rem; }
.review__stars { margin: 0; color: #f5a000; letter-spacing: 2px; font-size: 1.05rem; }
.review__text {
  margin: 0; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1;
}
.review__more { font-size: .85rem; font-weight: 600; }

.logos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
@media (min-width: 768px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.logos a { display: block; background: #fff; border-radius: 14px; padding: .75rem; }
.logos img { margin-inline: auto; }

/* 6. Contenido (prose) ----------------------------------------------------- */
.prose > :last-child { margin-bottom: 0; }
.prose::after { content: ""; display: table; clear: both; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; }
.prose > h1:first-child, .prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose h2 .accent, .prose h3 .accent { color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: 10px; }
.prose img.align-center { margin-inline: auto; }
.prose img.align-left { float: left; margin: .25rem 1.25rem 1rem 0; }
.prose img.align-right { float: right; margin: .25rem 0 1rem 1.25rem; }
.prose p:has(> img.align-center:only-child) { text-align: center; }
.prose iframe { border: 0; border-radius: 10px; max-width: 100%; }
.prose blockquote { border-left: 4px solid var(--brand); padding: .25rem 0 .25rem 1.25rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: .6rem .75rem; border: 1px solid var(--line); text-align: left; }
.prose--page { max-width: 820px; margin-inline: auto; }
.prose--page h1 { margin-bottom: 1.2rem; }
.prose .btn { margin-top: .5rem; }
.contact-mail { font-size: 1.25rem; font-weight: 600; text-align: center; }
.contact-mail a { color: var(--ink); text-decoration: none; }
.contact-mail a:hover { color: var(--brand-ink); }
.section--hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem); }
.section--hero h2 { font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem); font-weight: 500; color: var(--text); }

/* 7. Blog ------------------------------------------------------------------ */
.post__head { margin-bottom: 2rem; }
.post__head h1 { margin-bottom: 1rem; }
.post__meta { margin: 0 0 .75rem; font-size: .85rem; }
.post__meta a { font-weight: 600; }
.post__cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); }
.post__foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.listing__head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.chips ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.chips a {
  display: block; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 50px;
  color: var(--text); font-size: .85rem; text-decoration: none; transition: all .2s;
}
.chips a:hover, .chips a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.post-grid { display: grid; gap: 2rem 1.5rem; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { display: flex; flex-direction: column; gap: 1rem; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); transition: transform .3s; }
.post-card__media { overflow: hidden; border-radius: var(--radius); }
.post-card__media:hover img { transform: scale(1.03); }
.post-card__title { font-size: 1.05rem; margin: 0 0 .5rem; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--brand-ink); }
.post-card__body p:last-child { margin: 0; font-size: .95rem; }

/* 8. Formulario ------------------------------------------------------------ */
.form p { margin: 0 0 1rem; }
.form__row { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form label { display: block; margin-bottom: .35rem; color: var(--ink); font-size: .9rem; font-weight: 500; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid #cfd8de; border-radius: 12px; background: #fff;
  font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(255 102 0 / 20%); }
.form__consent label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .85rem; }
.form__consent input { margin-top: .3rem; accent-color: var(--brand); }
.form__hp { position: absolute; left: -9999px; }
.form__actions { text-align: right; }
.form__status { min-height: 1.5em; font-size: .9rem; text-align: right; }

/* 9. Pie y elementos flotantes -------------------------------------------- */
.site-footer { background: var(--dark); color: #d6d6d6; padding: 2rem var(--gutter) 1rem; margin-top: 2rem; }
.site-footer__grid {
  max-width: var(--container); margin-inline: auto; display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer__title { margin: 0 0 1rem; color: var(--brand); font-size: 1.1rem; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer__logo { width: 200px; height: auto; }
.site-footer__copy { max-width: var(--container); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid #3a3a3a; font-size: .8rem; text-align: center; }

.whatsapp {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  box-shadow: 0 4px 16px rgb(0 0 0 / 25%); background: #25d366; color: #fff; text-decoration: none;
}
.whatsapp img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.whatsapp__badge {
  position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; padding: 4px; border-radius: 50%;
  background: #25d366; border: 2px solid #fff;
}
.whatsapp__tip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  padding: .4rem .8rem; background: #fff; color: var(--ink); border-radius: 10px; font-size: .8rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.whatsapp:hover .whatsapp__tip, .whatsapp:focus-visible .whatsapp__tip { opacity: 1; }

.cookie-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: center; padding: 1rem var(--gutter);
  background: var(--dark); color: #e8e8e8; font-size: .85rem; box-shadow: 0 -4px 20px rgb(0 0 0 / 20%);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; max-width: 820px; }
.cookie-bar a { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .whatsapp, .cookie-bar, .btn { display: none !important; }
}

.reviews__more { margin: 1rem 0 0; text-align: center; }
