:root {
  --black: #0a0a0a;
  --black-soft: #161616;
  --gray-border: #2a2a2a;
  --gray-text: #b8b8b8;
  --white: #f5f5f5;
  --orange: #ff6a1a;
  --orange-dark: #d9500c;
  --gradient: linear-gradient(135deg, #0a0a0a 0%, #2a1608 55%, #ff6a1a 130%);
  --radius: 10px;
  --max-width: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.section-intro {
  color: var(--gray-text);
  margin-top: 0;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

section {
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-border);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--gray-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--black);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gray-border);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #0a0a0a;
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  background: var(--gradient);
  padding: 140px 0 100px;
  border-bottom: 1px solid var(--gray-border);
}

.hero-inner {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(245, 245, 245, 0.85);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card-simple {
  background: var(--black-soft);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px;
}

.card-simple h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.card-simple p {
  color: var(--gray-text);
  margin-bottom: 0;
}

/* Servicio */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 700px;
}

.check-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--gray-border);
  color: var(--gray-text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

/* Proceso */
.step {
  text-align: left;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black-soft);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step p {
  color: var(--gray-text);
  margin: 0;
  font-size: 0.95rem;
}

/* Portafolio */
.portfolio-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-soft);
}

.portfolio-thumb {
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 24px;
}

.portfolio-thumb span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.portfolio-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-info h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.portfolio-info p {
  color: var(--gray-text);
}

.link-arrow {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

/* Precios */
.pricing-grid {
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--black-soft);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--orange);
}

.badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--orange);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.price-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 20px;
}

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

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--gray-text);
  font-size: 0.95rem;
}

.price-card li {
  padding: 8px 0;
  border-top: 1px solid var(--gray-border);
}

.price-card li:first-child {
  border-top: none;
}

.pricing-note {
  margin-top: 32px;
  color: var(--gray-text);
  font-size: 0.95rem;
  text-align: center;
}

/* FAQ */
.faq-list {
  max-width: 760px;
}

.faq-list details {
  border-bottom: 1px solid var(--gray-border);
  padding: 18px 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--orange);
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  color: var(--gray-text);
  margin: 12px 0 0;
}

/* Formulario */
.lead-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.9rem;
  color: var(--gray-text);
}

.form-row input,
.form-row textarea {
  background: var(--black-soft);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
}

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

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox label {
  color: var(--gray-text);
  font-size: 0.9rem;
}

.form-checkbox a {
  color: var(--orange);
}

.form-checkbox input {
  margin-top: 4px;
}

.form-feedback {
  min-height: 20px;
  font-size: 0.9rem;
}

.form-feedback.success {
  color: #4ade80;
}

.form-feedback.error {
  color: #f87171;
}

/* CTA final */
.cta-final {
  text-align: center;
  padding: 100px 0;
  border-bottom: none;
}

.cta-final h2 {
  margin-bottom: 32px;
}

/* Footer */
.site-footer {
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray-text);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--gray-text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 90;
  color: var(--black);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--black-soft);
  border-top: 1px solid var(--gray-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1 1 360px;
  margin: 0;
  color: var(--gray-text);
  font-size: 0.9rem;
}

.cookie-banner-text a {
  color: var(--orange);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-preferences {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--gray-border);
  padding-top: 16px;
  margin-top: 4px;
}

.cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 420px;
  color: var(--white);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1 1 auto;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-card {
    grid-template-columns: 1fr;
  }
}

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

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--gray-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 110px 0 70px;
  }

  section {
    padding: 56px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
