/* Manitas Sevilla — Diseño Profesional, Realista y de Alta Conversión */
:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --slate: #475569;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-soft: #fff7ed;
  --green: #16a34a;
  --green-soft: #f0fdf4;
  --radius: 14px;
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--navy-2);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* Top bar informativa */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f8fafc;
  font-weight: 600;
}
.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
}

/* Cabecera principal */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--slate);
}
.nav a:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px -4px rgba(234, 88, 12, 0.45);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-whatsapp {
  background: #16a34a;
  color: #ffffff;
}
.btn-whatsapp:hover { background: #15803d; }
.btn-outline {
  background: #ffffff;
  color: var(--navy);
  border: 1.5px solid #cbd5e1;
}
.btn-outline:hover { border-color: var(--navy); }

/* Hero */
.hero {
  padding: 42px 0 56px;
  background: radial-gradient(circle at 15% 15%, #fff7ed 0%, #f8fafc 52%, #f1f5f9 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: start;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid #fed7aa;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 15px;
  letter-spacing: -0.025em;
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--slate);
  margin: 0 0 22px;
  max-width: 600px;
}
.trust-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.trust-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--navy-2);
}
.check-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: inline-grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}
.hero-photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-top: 10px;
}
.hero-photo-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}
.hero-photo-caption {
  background: var(--navy);
  color: #f8fafc;
  padding: 10px 15px;
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Tarjeta Formulario de Presupuesto Rápido */
.form-card {
  background: var(--card);
  border: 1px solid #cbd5e1;
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.16);
}
.form-card h2 {
  margin: 0 0 4px;
  font-size: 1.32rem;
  color: var(--navy);
}
.form-sub {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
}
.field { margin-bottom: 12px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-2);
  margin-bottom: 4px;
}
.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--navy);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14);
}
.file-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1.5px dashed #94a3b8;
  border-radius: 9px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--slate);
}
.file-upload:hover { border-color: var(--accent); background: var(--accent-soft); }
.file-upload input { display: none; }
.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 10px 0 14px;
}
.privacy-check a { text-decoration: underline; color: var(--navy-2); }
.form-msg {
  display: none;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
}
.form-msg.ok { display: block; background: var(--green-soft); color: #166534; border: 1px solid #86efac; }
.form-msg.err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.hp-trap { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Secciones generales */
.section { padding: 64px 0; }
.section-alt { background: #ffffff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  max-width: 680px;
  margin: 0 auto 38px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--slate);
  font-size: 1rem;
}

/* Grid de Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.srv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.srv-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.srv-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--navy);
}
.srv-card p {
  margin: 0 0 12px;
  font-size: 0.91rem;
  color: var(--slate);
}
.srv-list {
  margin: 0 0 16px;
  padding-left: 17px;
  font-size: 0.86rem;
  color: var(--navy-2);
}
.srv-list li { margin-bottom: 4px; }
.srv-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.srv-link:hover { color: var(--accent-hover); }

/* Galería de trabajos reales */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.work-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.work-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.work-body { padding: 16px 18px; }
.work-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.work-body h3 { margin: 0 0 6px; font-size: 1.04rem; color: var(--navy); }
.work-body p { margin: 0; font-size: 0.88rem; color: var(--slate); }

/* Cómo trabajamos (3 pasos) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.step-box h3 { margin: 0 0 7px; font-size: 1.08rem; color: var(--navy); }
.step-box p { margin: 0; font-size: 0.91rem; color: var(--slate); }

/* Zonas de cobertura */
.zones-wrap {
  background: var(--navy);
  color: #f8fafc;
  border-radius: 18px;
  padding: 34px 32px;
}
.zones-wrap h2 { margin: 0 0 8px; font-size: 1.6rem; }
.zones-wrap p { margin: 0 0 20px; color: #cbd5e1; max-width: 720px; }
.zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.zone-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Preguntas frecuentes */
.faq-list { max-width: 820px; margin: 0 auto; }
details.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 10px;
  padding: 15px 18px;
}
details.faq-item summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 800;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p {
  margin: 10px 0 0;
  color: var(--slate);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

/* Footer */
.footer {
  background: #0b1120;
  color: #94a3b8;
  padding: 42px 0 90px;
  font-size: 0.88rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer strong { color: #f8fafc; }
.footer a:hover { color: #ffffff; }

/* Barra inferior móvil fija */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.97);
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.14);
  gap: 10px;
}
.mobile-cta .btn { flex: 1; padding: 12px 10px; font-size: 0.92rem; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .services-grid, .works-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .services-grid, .works-grid, .steps-grid, .trust-points, .field-row { grid-template-columns: 1fr; }
  .hero { padding: 24px 0 40px; }
  .form-card { padding: 18px; }
  .zones-wrap { padding: 24px 18px; }
  .mobile-cta { display: flex; }
}
