:root {
  --bg-dark: #0a0c10;
  --bg-surface: #12161f;
  --bg-card: #181d28;
  --bg-card-hover: #202737;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.18);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #f59e0b;
  --radius: 12px;
  --radius-lg: 18px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1180px;
}

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

html {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

/* Encabezado y Navegación */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  aspect-ratio: 1 / 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-item a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.nav-item a:hover {
  color: var(--text-main);
}

/* Botones con ergonomía táctil >= 48px */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 0.75rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #000;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
  padding: clamp(3rem, 7vw, 6rem) 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background-color: var(--accent-glow);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Secciones Generales */
.section-block {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border-color);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Estimador Interactivo (Siempre visible, botones type=button, zero forms) */
.estimator-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 820px) {
  .estimator-panel {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.est-control-group {
  margin-bottom: 1.5rem;
}

.est-control-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

.est-btn-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
}

.est-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 48px;
  text-align: center;
  transition: all 0.15s ease;
}

.est-btn:hover {
  background-color: var(--bg-card-hover);
}

.est-btn.is-active {
  background-color: var(--accent-glow);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.est-summary-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.est-summary-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.est-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.est-row-total {
  border-bottom: none;
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.est-total-val {
  color: var(--accent);
  font-size: 1.8rem;
}

/* Tarjetas y Rejillas de Contenido */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.spec-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.spec-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.spec-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--accent-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-weight: bold;
}

.spec-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.spec-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Tarjetas de Tarifas */
.price-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.12);
}

.price-tag {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 1rem 0 0.5rem;
  color: var(--text-main);
}

.price-tag span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-feature-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  flex-grow: 1;
}

.price-feature-list li {
  padding: 0.5rem 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.price-feature-list li::before {
  content: "✔";
  color: var(--accent);
  font-weight: bold;
}

/* FAQ 100% Abierto y Visible (Sin display:none ni cloaking) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.faq-card summary {
  font-size: 1.1rem;
  font-weight: 700;
  cursor: default;
  color: var(--text-main);
  list-style: none;
  margin-bottom: 0.75rem;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Bloque de Contacto Directo (ENABLE_FORM: OFF) */
.contact-direct-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.contact-step-badge {
  display: inline-block;
  background-color: var(--accent-glow);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.contact-direct-card h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.3rem);
  margin-bottom: 1rem;
}

.contact-direct-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 2rem;
}

/* Pie de Página */
.site-footer {
  background-color: #07090c;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Aviso de Cookies y Consentimiento */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(18, 22, 31, 0.96);
  border-top: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  padding: 1rem;
  z-index: 999;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

/* Contenido Legal Interno */
.legal-content {
  padding: 3rem 0 5rem;
  max-width: 840px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}