/* ==========================================================
   LIMPIEZA BADAJOZ — Hoja de estilos
   Paleta corporativa: #619586 (verde menú) + #86c9ac (acento)
   ========================================================== */

/* ---------- Variables ---------- */
:root {
  /* Marca */
  --brand: #619586;
  --brand-dark: #4a7a6c;
  --brand-darker: #355449;
  --brand-light: #89beae;
  --brand-soft: #e8f1ee;

  /* Acento (botones e iconos) */
  --accent: #86c9ac;
  --accent-dark: #66b18d;
  --accent-glow: rgba(134, 201, 172, .45);

  /* WhatsApp y llamada */
  --whatsapp: #25d366;
  --call: #1fb04f;

  /* Neutros */
  --ink: #0f172a;
  --ink-2: #1e293b;
  --gray: #64748b;
  --gray-light: #f6f8f7;
  --white: #ffffff;
  --border: #e3eae7;

  /* UI */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 6px 18px rgba(0,0,0,.08);
  --shadow-lg: 0 18px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition: .25s cubic-bezier(.4,0,.2,1);

  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--ink); word-wrap: break-word; }
h1 { font-size: clamp(1.75rem, 5.5vw, 3.4rem); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -.3px; }
h3 { font-size: 1.15rem; font-weight: 700; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.text-center { text-align: center; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-label {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.section-header p {
  color: var(--gray);
  margin-top: 14px;
  font-size: 1.05rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #0a3a26;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--accent-glow);
}
.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(97,149,134,.35);
}
.btn-brand:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-call {
  background: var(--call);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31,176,79,.35);
}
.btn-call:hover { background: #1a9543; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.8);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline-white:hover { background: #fff; color: var(--brand); }
.btn-white {
  background: #fff;
  color: var(--brand);
  font-weight: 700;
}
.btn-white:hover { background: var(--brand-soft); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1rem; border-radius: 12px; }
.btn-full { width: 100%; }
.btn svg { flex-shrink: 0; }

/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: var(--brand);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: padding .25s ease;
}
.navbar.scrolled { padding: 10px 0; }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}
.navbar.scrolled .logo-img { height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,.95);
  font-weight: 600;
  font-size: .95rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: calc(100% - 24px); }
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,.12); color: #fff; }

.nav-cta {
  background: var(--accent);
  color: #0a3a26;
  padding: 10px 20px;
  font-size: .9rem;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-cta:hover {
  background: #fff;
  color: var(--brand);
  transform: translateY(-2px);
}
/* En desktop sólo se ve el CTA externo, no el del menú interior */
.nav-cta-mobile { display: none !important; }
.nav-cta-desktop { display: inline-flex; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  margin-left: auto;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1001;  /* siempre por encima del menú abierto */
  border-radius: 8px;
  transition: background .2s ease;
}
.hamburger:hover { background: rgba(255,255,255,.12); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, background .2s ease;
  transform-origin: center;
}
/* Hamburguesa convertida en X cuando el menú está abierto */
.hamburger[aria-expanded="true"] {
  background: transparent;
}
.hamburger[aria-expanded="true"] span { background: var(--ink); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Tinte verde corporativo muy sutil + viñeta inferior izquierda para legibilidad del texto */
  background:
    linear-gradient(90deg, rgba(15,30,25,.55) 0%, rgba(15,30,25,.25) 45%, rgba(15,30,25,0) 75%),
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 35%),
    rgba(97,149,134,.12);
  z-index: 1;
}
.hero-overlay::after { content: none; }
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
  padding-top: 90px;
  padding-bottom: 40px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
  letter-spacing: .03em;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero h1 {
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 2px 22px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.4);
}
.hero h1 .highlight {
  color: var(--accent);
  text-shadow: 0 2px 22px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.45);
}
.hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.95);
  margin-bottom: 32px;
  max-width: 560px;
  text-shadow: 0 1px 12px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.4);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 18px 26px;
  width: fit-content;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #fff;
}
.stat span {
  font-size: .78rem;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.stat-divider { width: 1px; height: 38px; background: rgba(255,255,255,.25); }

/* ==========================================================
   PAGE HEADER (subpáginas)
   ========================================================== */
.page-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 130px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(134,201,172,.25) 0%, transparent 60%);
}
.page-header h1 { color: #fff; margin-bottom: 12px; position: relative; z-index: 1; }
.page-header p {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { opacity: .5; }

/* ==========================================================
   FEATURES (¿Por qué elegirnos?)
   ========================================================== */
.features { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { color: var(--gray); font-size: .92rem; line-height: 1.6; }

/* ==========================================================
   SERVICIOS PREVIEW (cards en home)
   ========================================================== */
.services-preview { background: #fff; }
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-preview-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-preview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-preview-card .img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.service-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-preview-card:hover img { transform: scale(1.06); }
.service-preview-card .img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(53,84,73,.55) 0%, transparent 50%);
}
.service-preview-card .icon-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.service-preview-card h3 { padding: 22px 22px 8px; font-size: 1.1rem; }
.service-preview-card p { padding: 0 22px 16px; color: var(--gray); font-size: .92rem; flex: 1; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 22px 22px;
  color: var(--brand);
  font-weight: 700;
  font-size: .92rem;
  transition: all var(--transition);
}
.link-arrow:hover { gap: 10px; color: var(--accent-dark); }

/* ==========================================================
   ABOUT
   ========================================================== */
.about-section { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-badge-float {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--accent);
  color: #0a3a26;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(134,201,172,.55);
  font-weight: 700;
  font-size: .9rem;
}
.about-text h2 { margin-bottom: 14px; }
.about-text .lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.about-text p { color: var(--gray); margin-bottom: 16px; }

/* Values section */
.values-section { background: var(--gray-light); }
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  padding: 26px;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  border: 2px solid transparent;
}
.value-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.value-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.value-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-item p { font-size: .92rem; color: var(--gray); margin: 0; line-height: 1.6; }

/* Mission & vision */
.mission-vision { background: #fff; }
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.mission-vision-card {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.mission-vision-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.mv-icon {
  width: 70px;
  height: 70px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px var(--accent-glow);
}
.mission-vision-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.mission-vision-card p { color: var(--gray); line-height: 1.7; }

/* ==========================================================
   SERVICES SECTION (servicios.html)
   ========================================================== */
.services-section { background: #fff; }
.intro-text {
  font-size: 1.05rem;
  color: var(--gray);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  line-height: 1.75;
}
.services-full-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.service-full-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.service-full-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); }
.service-full-card:nth-child(even) .service-full-image { order: 2; }
.service-full-image {
  min-height: 360px;
  overflow: hidden;
}
.service-full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-full-card:hover .service-full-image img { transform: scale(1.05); }
.service-full-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.service-full-icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.service-full-content h3 { margin-bottom: 12px; font-size: 1.4rem; }
.service-full-content > p { color: var(--gray); margin-bottom: 22px; line-height: 1.7; }
.service-features { margin-bottom: 26px; }
.service-features li {
  padding: 6px 0;
  color: var(--ink-2);
  font-size: .95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.service-features li::before {
  content: "✓";
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ==========================================================
   CTA BANNER
   ========================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: .15;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-text h2 { color: #fff; margin-bottom: 8px; }
.cta-text p { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================
   TESTIMONIOS
   ========================================================== */
.testimonials { background: var(--gray-light); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  color: #facc15;
}
.testimonial-text {
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: .95rem; color: var(--ink); }
.testimonial-meta { font-size: .8rem; color: var(--gray); }

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .8rem;
  color: var(--gray);
  margin-bottom: 14px;
}

/* ==========================================================
   ZONAS
   ========================================================== */
.zones-section { background: var(--brand-soft); padding: 70px 0; }
.zones-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}
.zone-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .9rem;
  color: var(--ink-2);
  font-weight: 500;
  transition: all var(--transition);
}
.zone-tag:hover {
  border-color: var(--accent);
  color: var(--brand-dark);
  background: var(--brand-soft);
}
.zone-tag svg { color: var(--accent-dark); }

/* ==========================================================
   FAQ
   ========================================================== */
.faq-section { background: var(--gray-light); }
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item[open] { border-color: var(--accent); box-shadow: var(--shadow); }
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent-dark);
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 22px 20px;
  font-size: .95rem;
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================
   CONTACTO
   ========================================================== */
.contact-section { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 12px; font-size: 1.7rem; }
.contact-info > p { color: var(--gray); margin-bottom: 28px; line-height: 1.7; }
.contact-items { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--gray-light);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.contact-item:hover {
  border-color: var(--accent);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item strong { display: block; font-size: .95rem; margin-bottom: 4px; color: var(--ink); }
.contact-item p, .contact-item .value { color: var(--gray); font-size: .9rem; margin: 0; line-height: 1.5; }
.contact-item a:hover { color: var(--brand); text-decoration: underline; }
.map-wrap {
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.map-wrap iframe { display: block; width: 100%; height: 260px; border: 0; }

/* Form */
.contact-form-wrap {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.contact-form-wrap h2 { margin-bottom: 8px; font-size: 1.5rem; }
.contact-form-wrap > p { color: var(--gray); margin-bottom: 26px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: all var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .85rem;
  color: var(--gray);
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent-dark);
}
.form-check a { color: var(--brand); text-decoration: underline; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: #dcfce7;
  color: #166534;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 500;
  margin-top: 14px;
}
.form-success.visible { display: flex; }
.form-error {
  color: #dc2626;
  font-size: .85rem;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: #fef2f2;
  border-radius: 8px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-img { height: 56px; background: rgba(255,255,255,.04); border-radius: 8px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-bottom: 12px; }
.footer-email a { color: var(--accent); font-size: .9rem; }
.footer-email a:hover { text-decoration: underline; }
.footer-links h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; font-weight: 700; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-links li {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.4); }

/* ==========================================================
   FLOATING TELÉFONO (móvil) — aparece tras hacer scroll
   ========================================================== */
.floating-phone {
  display: none; /* oculto en desktop siempre */
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 998;
  background: var(--call);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(31,176,79,.45);
  align-items: center;
  gap: 10px;
}
.floating-phone svg { width: 20px; height: 20px; }
@keyframes pulse-call {
  0% { box-shadow: 0 8px 24px rgba(31,176,79,.45), 0 0 0 0 rgba(31,176,79,.6); }
  70% { box-shadow: 0 8px 24px rgba(31,176,79,.45), 0 0 0 14px rgba(31,176,79,0); }
  100% { box-shadow: 0 8px 24px rgba(31,176,79,.45), 0 0 0 0 rgba(31,176,79,0); }
}

/* WhatsApp flotante (debajo del teléfono — opcional) */
.floating-whatsapp {
  display: none;
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 998;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
}
.floating-whatsapp svg { width: 28px; height: 28px; }

/* ==========================================================
   BACK TO TOP
   ========================================================== */
.back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 997;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--accent-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-3px); }

/* ==========================================================
   REVEAL — visible por defecto si JS no carga (CLS / SEO friendly)
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .js-on .reveal.visible { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .features-grid,
  .services-preview-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img { height: 360px; }
  .about-badge-float { right: 0; }
  .mission-vision-grid { grid-template-columns: 1fr; }
  .service-full-card,
  .service-full-card:nth-child(even) { grid-template-columns: 1fr; }
  .service-full-card:nth-child(even) .service-full-image { order: 0; }
  .service-full-image { min-height: 260px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-cta-desktop { display: none !important; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fff;
    padding: 84px 24px 32px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    gap: 4px;
    max-height: 100vh;
    overflow-y: auto;
  }
  .nav-links.open a {
    color: var(--ink-2);
    font-size: 1.05rem;
    padding: 12px 16px;
    width: 100%;
  }
  .nav-links.open a:hover,
  .nav-links.open a.active { background: var(--brand-soft); color: var(--brand); }
  .nav-links.open a::after { display: none; }
  .nav-links.open .nav-cta-mobile {
    display: inline-flex !important;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
    background: var(--accent);
    color: #0a3a26;
  }

  .hero {
    align-items: flex-start;  /* En móvil, no centrar — evita que el contenido se solape con el navbar */
    min-height: auto;
  }
  .hero-content { padding-top: 45px; padding-bottom: 32px; }
  .page-header { padding: 100px 0 48px; }
  .hero-stats { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 22px; }
  .stat-divider { width: 100%; height: 1px; }
  .stat { text-align: left; display: flex; align-items: baseline; justify-content: space-between; }
  .stat span { letter-spacing: .04em; }

  .features-grid,
  .services-preview-grid,
  .testimonials-grid,
  .values-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-wrap { padding: 28px 22px; }
  .service-full-content { padding: 28px 22px; }
  /* Botón flotante de llamada: aparece sólo tras hacer scroll (clase .visible añadida por JS) */
  .floating-phone {
    display: inline-flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(24px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .floating-phone.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    animation: pulse-call 2.5s infinite;
  }
  /* WhatsApp flotante deshabilitado por defecto, queda disponible si lo activas */
  .floating-whatsapp { display: none; }
  /* En móvil no mostramos el botón de volver arriba */
  .back-to-top { display: none !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .floating-phone { padding: 12px 18px; font-size: .9rem; left: 14px; bottom: 14px; }
  .hero-content { padding-top: 45px; padding-bottom: 28px; }
  .hero h1 { font-size: 1.85rem; line-height: 1.15; }
  .hero .lead { font-size: 1rem; }
  .page-header { padding: 95px 0 42px; }
  .page-header h1 { font-size: 1.7rem; }
  .feature-card,
  .testimonial-card,
  .value-item,
  .mission-vision-card,
  .service-preview-card { padding-left: 22px; padding-right: 22px; }
  .service-full-content { padding: 24px 22px; }
  .contact-form-wrap { padding: 24px 22px; }
  .cta-banner { padding: 56px 0; }
  .footer { padding-top: 48px; }
  /* Etiquetas zone más compactas */
  .zone-tag { padding: 8px 14px; font-size: .85rem; }
  /* Sección headers más cortas */
  .section-header { margin-bottom: 36px; }
}

/* Print: oculta elementos interactivos */
@media print {
  .navbar, .floating-phone, .floating-whatsapp, .back-to-top, .cta-banner { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
