@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* ── Variables Globales ── */
:root {
  --bg-color: #0b0f19;
  --surface: #111827;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #8b5cf6;
  --border: #1f2937;
  --white: #ffffff;
}

/* ── Reset y Base ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* ── Header ── */
header {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--text-main);
}

/* ── Botones Globales ── */
.btn-primary,
.btn-primary-small,
.btn-submit {
  background: var(--primary);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  padding: 14px 28px;
  font-size: 1.1rem;
}

.btn-primary-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-submit {
  width: 100%;
  padding: 14px 28px;
  font-size: 1.1rem;
  margin-top: 8px;
}

.btn-primary:hover,
.btn-primary-small:hover,
.btn-submit:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main) !important;
  border: 1px solid var(--border);
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: #374151;
}

/* ── Hero Section ── */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.tagline {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  line-height: 1.1;
  max-width: 900px;
  margin-inline: auto;
}

.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ── Sección de Servicios ── */
.services-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.services-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.9rem;
  opacity: 0.7;
}

.price-new {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

.btn-card {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main) !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white) !important;
}

/* ── Sección de Contacto ── */
.contact-section {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s;
}

.contact-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.contact-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
}

.contact-item div {
  display: flex;
  flex-direction: column;
}

.contact-item strong {
  font-size: 1rem;
  font-weight: 600;
}

.contact-item span:not(.contact-icon) {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Formulario ── */
.contact-form-wrapper {
  background: var(--bg-color);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px top 50%;
  background-size: 12px auto;
}

/* ── Footer ── */
footer {
  background: var(--bg-color);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form-wrapper {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  nav {
    display: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-section h2 {
    font-size: 2rem;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links a {
    margin: 0 10px;
  }
}
/* ── Estado de carga del botón ── */
.btn-submit.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── Mensaje de éxito ── */
.success-content {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1;
}

.success-content h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.success-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
/* ── Tarjeta a Medida (Variación visual) ── */
.service-card-custom {
  border: 1px dashed var(--primary);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, var(--surface) 100%);
}
.service-card-custom:hover {
  border-style: solid;
  border-color: var(--primary);
}
.service-card-custom .price-new {
  font-size: 1.6rem;
  background: none;
  -webkit-text-fill-color: var(--primary);
}
/* ── Checkbox de Términos ── */
.checkbox-group {
  margin-top: 10px;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary); /* Pinta el checkbox nativo con nuestro azul */
}

.checkbox-label span {
  flex: 1;
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.checkbox-label a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}