/* ===== VARIABLES ===== */
:root {
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-nav: #111111ee;
  --accent: #00d4aa;
  --accent-dark: #00a884;
  --text: #e8e8e8;
  --text-muted: #888;
  --border: #2a2a2a;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: radial-gradient(ellipse at 50% 0%, #00d4aa18 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300d4aa' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 700px; }
.hero-badge {
  display: inline-block;
  background: #00d4aa15;
  border: 1px solid #00d4aa40;
  color: var(--accent);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #00d4aa40;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 1rem;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== SECCIONES ===== */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
}
.section-header h2 span { color: var(--accent); }
.section-header p { color: var(--text-muted); max-width: 480px; margin: 0 auto; }

/* ===== CATÁLOGO ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #222;
}
.product-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.product-img-placeholder svg { width: 48px; opacity: 0.3; }
.product-info { padding: 1.25rem; }
.product-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}
.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.product-specs span {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #ffffff08;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
.product-disclaimer {
  font-size: 0.72rem;
  color: #666;
  font-style: italic;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}
.product-actions { display: flex; gap: 0.75rem; align-items: center; }
.product-actions .btn {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s;
}
.external-link:hover { color: var(--accent); border-color: var(--accent); }

/* ===== CÓMO FUNCIONA ===== */
.how-bg { background: #141414; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: steps;
}
.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: steps;
  position: relative;
}
.step::before {
  content: counter(steps);
  position: absolute;
  top: -1px;
  left: -1px;
  background: var(--accent);
  color: #000;
  font-weight: 900;
  font-size: 0.8rem;
  width: 28px;
  height: 28px;
  border-radius: var(--radius) 0 var(--radius) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: var(--text-muted); }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, #00d4aa15, #00d4aa05);
  border-top: 1px solid #00d4aa30;
  border-bottom: 1px solid #00d4aa30;
  text-align: center;
  padding: 4rem 2rem;
}
.cta-band h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-band p { color: var(--text-muted); margin-bottom: 2rem; }

/* ===== FOOTER ===== */
footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.75rem; max-width: 280px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== PÁGINA INTERNA (presupuesto / contacto) ===== */
.page-hero {
  padding: 5rem 2rem 3rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #00d4aa12 0%, transparent 60%);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -1px; }
.page-hero h1 span { color: var(--accent); }
.page-hero p { color: var(--text-muted); margin-top: 0.75rem; }

/* ===== FORMULARIOS ===== */
.form-section { padding: 3rem 2rem 5rem; }
.form-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #00d4aa20;
}
textarea { resize: vertical; min-height: 130px; }
select option { background: var(--bg-card); }
.form-submit { width: 100%; padding: 1rem; font-size: 1rem; margin-top: 0.5rem; }
.form-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }
.success-msg {
  display: none;
  text-align: center;
  padding: 2rem;
  background: #00d4aa15;
  border: 1px solid #00d4aa40;
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 600;
}
.fs-field-error {
  display: block;
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  min-height: 1rem;
}
.fs-error-global {
  display: none;
  background: #ff6b6b18;
  border: 1px solid #ff6b6b40;
  color: #ff6b6b;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px #ff6b6b20;
}

/* ===== CONTACTO ===== */
.contact-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.contact-card a { color: var(--accent); font-weight: 600; }

/* ===== OFERTAS ===== */
.ofertas-bg { background: #141414; }
.ofertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.oferta-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 32px #00d4aa12;
  transition: transform 0.2s, box-shadow 0.2s;
}
.oferta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px #00d4aa22;
}
.oferta-label {
  background: #00d4aa18;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid #00d4aa30;
}
.oferta-card .oferta-img {
  object-fit: contain;
  background: #111;
  aspect-ratio: 3/4;
}

.oferta-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.oferta-img-placeholder svg { width: 48px; opacity: 0.3; }
.oferta-body { padding: 1.5rem; }
.oferta-body h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.75rem; }
.oferta-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.oferta-items {
  list-style: none;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.oferta-items li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  background: #00d4aa0a;
  border: 1px solid #00d4aa20;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.oferta-item-icon { font-size: 1.1rem; }
.oferta-precio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #00d4aa12;
  border: 1px solid #00d4aa30;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.oferta-precio-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.oferta-precio-valor {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1px;
}

.oferta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
}

/* ===== TUTORIALES ===== */
.tut-index-section { padding: 1.5rem 2rem 0; }
.tut-index {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
}
.tut-index-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.tut-index-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.tut-index-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  background: #00d4aa12;
  border: 1px solid #00d4aa30;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  transition: background 0.2s;
}
.tut-index-link:hover { background: #00d4aa22; color: var(--accent); }

.tut-section { padding: 4rem 2rem; }
.tut-header { margin-bottom: 2.5rem; }
.tut-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.tut-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
}
.tut-intro { color: var(--text-muted); max-width: 640px; margin-bottom: 1.25rem; }
.tut-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.tut-meta-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
}

.tut-img-placeholder {
  width: 100%;
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.tut-img-placeholder svg { opacity: 0.3; }
.tut-img-main {
  aspect-ratio: 16/7;
  margin-bottom: 3rem;
}
.tut-img-main svg { width: 64px; }

.tut-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.tut-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tut-step-final { border-color: var(--accent); box-shadow: 0 0 24px #00d4aa14; }
.tut-step-num {
  background: var(--accent);
  color: #000;
  font-weight: 900;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 1.25rem 0;
  flex-shrink: 0;
}
.tut-step-num-final { background: #00d4aa; }
.tut-step-body { padding: 1rem 1.25rem 1.25rem; }
.tut-step-body .tut-img-placeholder {
  aspect-ratio: 4/3;
  margin-bottom: 1rem;
}
.tut-step-body .tut-img-placeholder svg { width: 36px; }
.tut-step-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.tut-step-body p { font-size: 0.875rem; color: var(--text-muted); }

.tut-tip {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #00d4aa0a;
  border: 1px solid #00d4aa30;
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.tut-tip-icon { font-size: 1.5rem; flex-shrink: 0; }
.tut-tip strong { color: var(--text); }

.tut-cta-band {
  background: linear-gradient(135deg, #00d4aa15, #00d4aa05);
  border-top: 1px solid #00d4aa30;
  border-bottom: 1px solid #00d4aa30;
  padding: 3rem 2rem;
}
.tut-cta-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.tut-cta-content h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.tut-cta-content p { color: var(--text-muted); font-size: 0.9rem; }
.tut-cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .btn-secondary { margin-left: 0; }
}
