/* ============================================
   Cerrajeros Senija 24h — Design System
   Mobile-first · Core Web Vitals optimized
   ============================================ */

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-dark: #1a1d23;
  --color-dark-soft: #2d3239;
  --color-text: #3d4450;
  --color-text-muted: #6b7280;
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-accent-light: #fef3c7;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1da851;
  --color-brand-900: #1e3a8a;
  --color-brand-600: #2563eb;
  --color-call: var(--color-brand-600);
  --color-call-hover: var(--color-brand-900);
  --color-border: #e5e7eb;
  --color-border-soft: #f3f4f6;

  --font: 'Outfit', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(26, 29, 35, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 29, 35, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 29, 35, 0.12);
  --header-h: 80px;
  --topbar-h: 36px;
  --mobile-bar-h: 64px;
  --container: min(1120px, 100% - 2rem);
  --transition: 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-bar-h);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  flex-shrink: 0;
  fill: currentColor;
}

.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 18px; height: 18px; }
.icon--md { width: 22px; height: 22px; }
.icon--lg { width: 24px; height: 24px; }

.scroll-target {
  scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 12px);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--lg {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  min-height: 52px;
}

.btn--call {
  background: var(--color-brand-600);
  color: #fff;
}

.btn--call:hover {
  background: var(--color-brand-900);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
  background: var(--color-whatsapp-hover);
}

/* ---- Topbar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--topbar-h);
  padding: 0.5rem 1rem;
  background: var(--color-brand-900);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.topbar .icon {
  color: #fbbf24;
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-soft);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  line-height: 1;
}

.logo__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo--footer .logo__img {
  width: 40px;
  height: 40px;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-brand-900);
}

.logo--footer .logo__title {
  color: #fff;
}

.logo__subtitle {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-brand-600);
}

.logo--footer .logo__subtitle {
  color: var(--color-accent);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--color-border-soft);
  background: #fff;
}

.mobile-nav--open {
  display: flex;
}

.mobile-nav a {
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--color-text);
}

.mobile-nav a:hover {
  background: var(--color-bg);
}

.mobile-nav .btn {
  margin-top: 0.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

.nav {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: block;
  }

  .nav__list {
    display: flex;
    gap: 1.75rem;
  }

  .nav__list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
  }

  .nav__list a:hover {
    color: var(--color-dark);
  }
}

.header__cta span {
  display: none;
}

@media (min-width: 480px) {
  .header__cta span {
    display: inline;
  }
}

.section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 2.5rem 0 3rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 0 5rem;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(234, 88, 12, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 140%;
  background: linear-gradient(135deg, transparent 40%, rgba(245, 158, 11, 0.04) 40%, rgba(245, 158, 11, 0.04) 42%, transparent 42%);
  transform: rotate(-8deg);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-dark-soft);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.hero__subtitle strong {
  color: var(--color-dark);
}

.hero__cta {
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-group--center {
  align-items: center;
}

@media (min-width: 480px) {
  .cta-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cta-group--center {
    justify-content: center;
  }
}

.cta-group--lg .btn {
  flex: 1;
  min-width: 160px;
}

.cta-group--lg {
  max-width: 100%;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.hero__stats li {
  text-align: center;
}

@media (min-width: 480px) {
  .hero__stats li {
    text-align: left;
  }
}

.hero__stats strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-dark);
}

.hero__stats span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Hero card (decorative) */
.hero__card {
  display: none;
}

@media (min-width: 900px) {
  .hero__card {
    display: block;
  }
}

.hero__card-inner {
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

.hero__card-inner:hover {
  transform: rotate(0deg);
}

.hero__card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.hero__card-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero__card-phone {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.hero__card-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.hero__card-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.hero__card-bar-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-call));
  border-radius: 2px;
  animation: barPulse 3s ease-in-out infinite;
}

@keyframes barPulse {
  0%, 100% { width: 72%; }
  50% { width: 85%; }
}

.hero__card-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Sections ---- */
.section {
  padding: 4rem 0;
}

.section__header {
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-600);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section__desc {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* ---- Services ---- */
.services {
  background: var(--color-surface);
}

.services__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 3px;
  background: var(--color-border);
  border-radius: 0 2px 2px 0;
  transition: background var(--transition);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.service-card:hover::before {
  background: linear-gradient(180deg, var(--color-accent), var(--color-call));
}

.service-card--highlight {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border-color: rgba(245, 158, 11, 0.25);
}

.service-card--highlight::before {
  background: linear-gradient(180deg, var(--color-accent), var(--color-call));
}

.service-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  color: var(--color-brand-600);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.service-card__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.services__cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-lg);
}

.services__cta p {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.services__cta .cta-group {
  justify-content: center;
}

/* ---- Coverage ---- */
.coverage {
  background: var(--color-bg);
}

.coverage__layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .coverage__layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.coverage__intro p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.coverage__intro p strong {
  color: var(--color-dark);
}

.coverage__zones {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.coverage__zones-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.zones-list {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .zones-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem 1rem;
  }
}

.zones-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-dark-soft);
}

.zones-list svg,
.zones-list .icon {
  color: var(--color-brand-600);
}

/* ---- Trust ---- */
.trust {
  background: var(--color-surface);
}

.trust__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .trust__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  transition: box-shadow var(--transition);
}

.trust-card:hover {
  box-shadow: var(--shadow-md);
}

.trust-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  color: var(--color-brand-600);
  border-radius: 50%;
}

.trust-card__icon svg {
  width: 26px;
  height: 26px;
}

.trust-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.trust-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
  padding: 3rem 0;
}

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-banner__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cta-banner__text h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.cta-banner__text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.cta-banner .cta-group {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cta-banner .cta-group {
    justify-content: flex-end;
  }
}

/* ---- Footer ---- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 0.75fr;
    gap: 3rem;
  }
}

.logo--footer {
  margin-bottom: 1rem;
}

.logo--footer .logo__img {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 1rem;
}

.footer__contact ul,
.footer__legal ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__contact a,
.footer__legal a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__contact a:hover,
.footer__legal a:hover {
  color: #fff;
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer__contact .icon {
  opacity: 0.7;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
}

.footer__bottom p {
  font-size: 0.8125rem;
  text-align: center;
}

.footer__bottom a {
  color: var(--color-accent);
}

.footer__bottom a:hover {
  text-decoration: underline;
}

/* ---- Mobile Bar ---- */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  height: var(--mobile-bar-h);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(26, 29, 35, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 768px) {
  .mobile-bar {
    display: none;
  }
}

.mobile-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  transition: filter var(--transition);
}

.mobile-bar__btn:active {
  filter: brightness(0.9);
}

.mobile-bar__btn--call {
  background: var(--color-call);
}

.mobile-bar__btn--wa {
  background: var(--color-whatsapp);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse,
  .hero__card-dot,
  .hero__card-bar-fill {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Animations (reveal on scroll) ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Legal pages ---- */
.legal-page {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}

.legal-page h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.legal-page .legal-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page a {
  color: var(--color-brand-600);
  text-decoration: underline;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand-600);
  margin-bottom: 2rem;
}

.legal-back:hover {
  text-decoration: underline;
}

/* ---- Reviews ---- */
.reviews {
  background: var(--color-bg);
}

.reviews__rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
}

.reviews__stars,
.review-card__stars,
.stars {
  display: flex;
  gap: 0.125rem;
  color: var(--color-accent);
}

.reviews__stars {
  gap: 0.25rem;
}

.review-card__stars {
  margin-bottom: 0.875rem;
}

.reviews__score {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.reviews__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .reviews__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.review-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.review-card p {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.review-card footer {
  border-top: 1px solid var(--color-border-soft);
  padding-top: 0.875rem;
}

.review-card cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-dark);
}

.review-card footer span {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: var(--color-brand-600);
  font-weight: 500;
}

/* ---- Quote / Presupuesto ---- */
.quote {
  background: var(--color-surface);
}

.quote-accordion {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.quote-accordion__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-dark);
  cursor: pointer;
  list-style: none;
  background: linear-gradient(135deg, #fffbeb 0%, #eff6ff 100%);
  transition: background var(--transition);
}

.quote-accordion__toggle::-webkit-details-marker {
  display: none;
}

.quote-accordion__toggle:hover {
  background: linear-gradient(135deg, #fef3c7 0%, #dbeafe 100%);
}

.quote-accordion[open] .quote-accordion__chevron {
  transform: rotate(180deg);
}

.quote-accordion__chevron {
  flex-shrink: 0;
  color: var(--color-brand-600);
  transition: transform var(--transition);
}

.quote-form {
  padding: 0 1.5rem 1.5rem;
}

.quote-form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding-top: 1.25rem;
}

@media (min-width: 600px) {
  .quote-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-dark);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-brand-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

.quote-form__note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #dc2626;
}

.quote-form__submit {
  width: 100%;
  margin-top: 1.25rem;
}
