/* ==========================================================================
   MopaClean Illescas — style.css
   ========================================================================== */

:root {
  --accent: #2196F3;
  --accent-dark: #1565C0;
  --whatsapp: #25D366;
  --white: #ffffff;
  --soft: #F8FAFC;
  --dark: #0F172A;
  --navy: #1E3A5F;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius: 20px;
  --header-h: 64px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-white { background: var(--white); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  background: rgba(33, 150, 243, 0.10);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

h1, h2, h3, h4 { color: var(--dark); font-weight: 800; line-height: 1.2; }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(33, 150, 243, 0.32);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(33, 150, 243, 0.38); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.30);
}
.btn-whatsapp:hover { background: #1eb85a; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 500;
}
.header-inner {
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  padding: 8px 14px 8px 8px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.menu-btn:hover { background: var(--soft); }
.menu-btn svg { width: 22px; height: 22px; }

.header-right { display: flex; align-items: center; gap: 20px; }

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.25rem;
  font-weight: 800;
  white-space: nowrap;
}
.logo .logo-mopa { color: var(--dark); }
.logo .logo-illescas { color: var(--accent); }

.header-cta { display: inline-flex; padding: 10px 22px; font-size: 0.92rem; }

@media (max-width: 768px) {
  .header-cta { display: none; }
}

/* Skip link — accesibilidad de teclado */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  z-index: 2000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

.sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: 320px;
  max-width: 84vw;
  background: var(--white);
  z-index: 950;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.sidebar.open { transform: translateX(0); }

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.sidebar-close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.sidebar-close:hover { background: var(--soft); }
.sidebar-close svg { width: 22px; height: 22px; color: var(--dark); }

.sidebar-nav { flex: 1; padding: 20px 12px; overflow-y: auto; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--soft); color: var(--accent-dark); }

.sidebar-footer { padding: 20px 24px 28px; border-top: 1px solid var(--border); }
.sidebar-footer p { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }

body.sidebar-locked { overflow: hidden; }

/* ==========================================================================
   Hero (index)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding-top: var(--header-h);
  background-image: url('img/hero-desktop.png');
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 18, 35, 0.82) 0%,
    rgba(10, 18, 35, 0.35) 42%,
    rgba(10, 18, 35, 0.35) 58%,
    rgba(10, 18, 35, 0.82) 100%
  );
}
@media (max-width: 768px) {
  .hero { background-image: url('img/hero-mobile.png'); }
}

.hero-top, .hero-bottom {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.hero-top { padding-top: 3rem; display: flex; flex-direction: column; align-items: center; }
.hero-bottom { padding-bottom: 3.5rem; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 0 0 rgba(37, 211, 102, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
}

/* ==========================================================================
   Page hero (páginas internas)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 72px;
  background: var(--navy);
  overflow: hidden;
}
.page-hero.with-image {
  background-image: linear-gradient(rgba(10,18,35,0.78), rgba(10,18,35,0.86)), url('img/vehiculos-hero.png');
  background-size: cover;
  background-position: center;
}
.page-hero .eyebrow { background: rgba(255,255,255,0.14); color: var(--white); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4.4vw, 2.9rem); max-width: 780px; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.08rem; max-width: 640px; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.86rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span.sep { color: rgba(255,255,255,0.4); }
.breadcrumb span.current { color: var(--white); font-weight: 600; }

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar {
  background: var(--white);
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trust-item .icon-circle { width: 46px; height: 46px; }
.trust-item span { font-weight: 700; color: var(--dark); font-size: 0.95rem; }
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Icon circle
   ========================================================================== */
.icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(33, 150, 243, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.icon-circle svg { width: 26px; height: 26px; }

/* ==========================================================================
   Servicios (tarjetas)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.service-badge {
  position: absolute;
  top: -14px; left: 28px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(33,150,243,0.35);
}
.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p.desc { color: var(--muted); font-size: 0.96rem; margin-bottom: 16px; flex-grow: 1; }
.service-price {
  font-weight: 800;
  color: var(--accent-dark);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.service-card .btn { width: 100%; }

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ==========================================================================
   Fichas detalladas (limpieza-por-horas.html)
   ========================================================================== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}
.service-detail:not(:last-child) { border-bottom: 1px solid var(--border); }
.service-detail.reverse .detail-media { order: 2; }
.detail-media img { border-radius: var(--radius); width: 100%; height: 360px; object-fit: cover; box-shadow: var(--shadow-md); }
.detail-content .service-price { font-size: 1.3rem; }
.detail-content h3 { font-size: 1.6rem; margin-bottom: 12px; }
.detail-content > p { color: var(--muted); margin-bottom: 18px; }
.detail-list { margin-bottom: 24px; }
.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.98rem;
  color: var(--text);
}
.detail-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 900px) {
  .service-detail, .service-detail.reverse { grid-template-columns: 1fr; }
  .service-detail.reverse .detail-media { order: 0; }
  .detail-media img { height: 260px; }
}

/* ==========================================================================
   Por qué elegirnos
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.why-item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.why-item .icon-circle { width: 64px; height: 64px; }
.why-item .icon-circle svg { width: 30px; height: 30px; }
.why-item h3 { font-size: 1.05rem; }
.why-item p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Zonas SEO chips (index) y tarjetas (zonas.html)
   ========================================================================== */
.zonas-text { max-width: 760px; margin: 0 auto 32px; text-align: center; color: var(--muted); }
.zonas-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.zona-chip {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  transition: all 0.2s ease;
}
.zona-chip:hover { background: var(--accent); color: var(--white); border-color: var(--accent); transform: translateY(-2px); }

.zonas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.zona-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.zona-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.zona-card .zona-badge {
  display: inline-block;
  background: rgba(33,150,243,0.10);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.zona-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.zona-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.zona-card .btn { width: 100%; padding: 11px 20px; font-size: 0.92rem; }

@media (max-width: 900px) {
  .zonas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .zonas-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reseñas
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.review-google {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}
.review-google svg { width: 18px; height: 18px; flex-shrink: 0; }
.review-google span { font-size: 0.82rem; font-weight: 600; color: #5F6368; }
.review-stars { display: flex; gap: 3px; margin-bottom: 14px; color: #FBBF24; }
.review-stars svg { width: 18px; height: 18px; }
.review-card p.review-text { color: var(--text); font-size: 0.95rem; margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.review-author .name { font-weight: 700; font-size: 0.92rem; }
.review-author .loc { color: var(--muted); font-size: 0.82rem; }

@media (max-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ acordeón
   ========================================================================== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  text-align: left;
}
.faq-question .plus {
  width: 24px; height: 24px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}
.faq-question .plus::before, .faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
}
.faq-question .plus::before { width: 100%; height: 2.5px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-question .plus::after { width: 2.5px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); transition: opacity 0.25s ease; }
.faq-item.open .faq-question .plus { transform: rotate(180deg); }
.faq-item.open .faq-question .plus::after { opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding: 0 24px 20px; color: var(--muted); font-size: 0.95rem; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ==========================================================================
   Pricing (vehiculos.html)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pricing-card.recommended { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(33,150,243,0.35);
}
.pricing-pack { color: var(--accent-dark); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.pricing-price { font-size: 2.4rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.pricing-price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.pricing-intro { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.pricing-list { margin-bottom: 20px; flex-grow: 1; }
.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--border);
}
.pricing-list li:last-child { border-bottom: none; }
.pricing-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.pricing-time {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.86rem; margin-bottom: 20px;
}
.pricing-time svg { width: 16px; height: 16px; }
.pricing-card .btn { width: 100%; }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .pricing-card.recommended { transform: none; order: -1; }
}

/* ==========================================================================
   Cómo trabajamos (pasos)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step-item { position: relative; text-align: center; padding-top: 8px; }
.step-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step-item p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Garantías
   ========================================================================== */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.guarantee-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.guarantee-card .icon-circle { flex-shrink: 0; }
.guarantee-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.guarantee-card p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) {
  .guarantees-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ==========================================================================
   Precios orientativos (tabla)
   ========================================================================== */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table th, .price-table td {
  padding: 18px 24px;
  text-align: left;
  font-size: 0.95rem;
}
.price-table th {
  background: var(--soft);
  font-weight: 700;
  color: var(--dark);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.price-table th:last-child { text-align: right; }
.price-table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.price-table tbody tr:nth-child(even) { background: var(--soft); }
.price-table td:first-child { font-weight: 600; color: var(--text); }
.price-table td.price-cell {
  font-weight: 800;
  color: var(--accent-dark);
  white-space: nowrap;
  text-align: right;
}
.price-table-note { color: var(--muted); font-size: 0.86rem; margin-top: 18px; text-align: center; }

@media (max-width: 640px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody { display: block; width: 100%; }
  .price-table tr {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
  }
  .price-table tbody tr:not(:last-child) { border-bottom: 1px solid var(--border); }
  .price-table td {
    display: block;
    padding: 0;
    border-bottom: none !important;
    font-size: 0.88rem;
    min-width: 0;
  }
  .price-table td:first-child { flex: 1 1 auto; }
  .price-table td.price-cell { text-align: right; white-space: nowrap; flex: 0 0 auto; }
}

/* ==========================================================================
   NAP (footer) — teléfono / zona / horario visibles para consistencia local
   ========================================================================== */
.footer-nap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  font-size: 0.88rem;
}
.footer-nap a { color: rgba(255,255,255,0.85); transition: color 0.2s ease; }
.footer-nap a:hover { color: var(--accent); }
.footer-nap span { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); }
.footer-nap svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  background: var(--navy);
  text-align: center;
  padding: 80px 0;
}
.cta-final h2 { color: var(--white); font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 14px; }
.cta-final p { color: rgba(255,255,255,0.8); margin-bottom: 30px; font-size: 1.05rem; }

/* ==========================================================================
   WhatsApp float (escritorio/tablet) + barra CTA fija (móvil)
   ========================================================================== */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 400;
}
.wa-float.wa-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.wa-float svg { width: 30px; height: 30px; color: var(--white); }
.wa-float:hover { transform: scale(1.08); }


/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-col h4 { color: var(--white); font-size: 0.98rem; margin-bottom: 18px; }
.footer-col .logo { margin-bottom: 14px; }
.footer-col .logo .logo-mopa { color: var(--white); }
.footer-col p.desc { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Cookies banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: calc(100% - 32px);
  max-width: 620px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  z-index: 1000;
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-banner p { font-size: 0.88rem; color: var(--text); margin-bottom: 16px; line-height: 1.55; }
.cookie-banner p a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions button { flex: 1; padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.cookie-accept { background: var(--accent); color: var(--white); }
.cookie-accept:hover { background: var(--accent-dark); }
.cookie-necessary { background: var(--soft); color: var(--text); border: 1px solid var(--border) !important; }
.cookie-necessary:hover { background: var(--border); }

/* ==========================================================================
   Formulario contacto
   ========================================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--dark); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--soft);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-status { display: none; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; margin-bottom: 20px; }
.form-status.success { display: flex; background: rgba(37, 211, 102, 0.12); color: #15803D; }
.form-status.error { display: flex; background: rgba(239, 68, 68, 0.10); color: #B91C1C; }

.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.submitting .spinner { display: inline-block; }
.submitting .btn-label { opacity: 0.85; }

.success-message {
  display: none;
  text-align: center;
  padding: 50px 20px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius);
}
.success-message.show { display: block; }
.success-message .icon-circle { width: 64px; height: 64px; background: rgba(37,211,102,0.15); color: #15803D; margin: 0 auto 18px; }
.success-message .icon-circle svg { width: 30px; height: 30px; }
.success-message h3 { margin-bottom: 8px; }
.success-message p { color: var(--muted); }

.contact-info-card {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item h4 { font-size: 1rem; margin-bottom: 6px; }
.contact-info-item p, .contact-info-item ul { color: var(--muted); font-size: 0.92rem; }
.contact-info-item p a { color: var(--accent-dark); font-weight: 700; }
.contact-info-item ul { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.contact-info-item ul li::after { content: ","; }
.contact-info-item ul li:last-child::after { content: "."; }

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px; }
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-size: 1.3rem; margin: 36px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text); margin-bottom: 14px; font-size: 0.98rem; }
.legal-content ul { padding-left: 22px; list-style: disc; }
.legal-content ul li { margin-bottom: 8px; }
.legal-content .updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 40px; }

/* ==========================================================================
   fadeUp animation
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1.visible { transition-delay: 0.1s; }
.fade-up-delay-2.visible { transition-delay: 0.2s; }
.fade-up-delay-3.visible { transition-delay: 0.3s; }

/* ==========================================================================
   Responsive general
   ========================================================================== */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .cta-final { padding: 56px 0; }
}
