:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #050816;
  --bg-alt: #020617;
  --text: #f9fafb;
  --muted: #9ca3af;
  --card-bg: #111827;
  --accent: #22c55e;
  --border: #1f2937;
  --radius: 14px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --transition: 0.25s ease;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav a {
  position: relative;
  padding-bottom: 0.2rem;
  color: var(--muted);
}

.nav a.active {
  color: #e5e7eb;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.btn-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
}

/* SECCIONES GENERALES */

section {
  padding: 3.5rem 0;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h2 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32rem;
}

/* HERO */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-home {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

.hero-inner {
  background: #020617;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--muted);
  max-width: 32rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0 0.8rem;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--muted);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.7);
}

.hero-delivery {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.hero-image {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-badge {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* HIGHLIGHTS */

.highlights {
  background: #020617;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.highlight-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.highlight-card h3 {
  margin-bottom: 0.4rem;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ESTADÍSTICAS */

.stats {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--border);
  text-align: left;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
}

.stat-card h3 {
  margin: 0.2rem 0;
  font-size: 1.3rem;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* SERVICIOS */

.services {
  background: #020617;
}

.services-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card img {
  border-radius: 10px;
  height: 150px;
  object-fit: cover;
}

.service-card h3 {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.service-card .price {
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--accent);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6);
  border-color: rgba(37, 99, 235, 0.7);
}

/* PROCESO */

.process {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

.process-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.process-step {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

/* FAQ */

.faq {
  background: #020617;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  margin-top: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: #e5e7eb;
  text-align: left;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.95rem;
}

.faq-toggle {
  font-size: 1.2rem;
  color: var(--muted);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  transition: max-height var(--transition), padding-bottom var(--transition);
}

.faq-answer p {
  margin: 0.6rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 0.8rem;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

/* PORTAFOLIO */

.portfolio {
  background: #020617;
}

.portfolio-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.portfolio-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  border-color: var(--primary);
  color: #e5e7eb;
}

/* CONTACTO */

.contact {
  background: #020617;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-grid-simple {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.contact-info p {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list li + li {
  margin-top: 0.4rem;
}

.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.contact-form h3 {
  margin-top: 0;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form button {
  margin-top: 0.5rem;
  width: 100%;
}

.form-success {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--accent);
}

/* CTA */

.cta {
  background: linear-gradient(90deg, #1d4ed8, #22c55e);
  color: #f9fafb;
}

.cta-content {
  text-align: center;
}

.cta-content p {
  max-width: 32rem;
  margin: 0.4rem auto 1.2rem;
}

/* FOOTER */

.footer {
  padding: 1.5rem 0 2rem;
  background: #020617;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.footer-content {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    order: -1;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid,
  .contact-grid-simple {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    inset: 56px 0 auto 0;
    background: rgba(15, 23, 42, 0.98);
    padding: 0.8rem 1.2rem 1rem;
    flex-direction: column;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .btn-menu {
    display: block;
  }

  .hero {
    padding-top: 4rem;
  }

  .highlights-grid,
  .stats-grid,
  .services-grid,
  .process-grid,
  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}