:root {
  --bg-main: #0a0e14;
  --bg-surface: #121822;
  --bg-card: #18202c;
  --bg-card-hover: #1f2a3a;
  --primary: #f43f5e;
  --primary-hover: #e11d48;
  --secondary: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.4);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --radius-lg: 20px;
  --container-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 42px;
  width: auto;
  aspect-ratio: 4 / 1;
}

.site-nav {
  display: none;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

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

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 48px;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35);
}

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

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

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

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero-section {
  padding: 56px 0 64px;
  background: radial-gradient(circle at 50% 0%, rgba(244, 63, 94, 0.12) 0%, transparent 60%);
}

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

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-title {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

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

.hero-media {
  position: relative;
}

.hero-media-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-lg);
}

.hero-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Specs Bar */
.specs-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spec-item {
  text-align: center;
  padding: 8px;
}

.spec-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--secondary);
  display: block;
}

.spec-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Section Common */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-surface);
}

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

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(56, 189, 248, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-features {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 20px;
}

.card-features li {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-features li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: bold;
}

/* Studio Details Grid with Images */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
}

@media (min-width: 900px) {
  .feature-split {
    grid-template-columns: 1fr 1fr;
  }
  .feature-split.reverse {
    direction: rtl;
  }
  .feature-split.reverse > * {
    direction: ltr;
  }
}

.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-sm);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Estimador Interactivo (100% visible, DOM transparente) */
.estimator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .estimator-card {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
  }
}

.calc-group {
  margin-bottom: 24px;
}

.calc-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.calc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  transition: all 0.2s ease;
}

.calc-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.calc-btn.active {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--primary);
  color: #ffffff;
}

.estimator-output {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.output-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 12px;
}

.output-config-box {
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.config-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}

.config-row:last-child {
  margin-bottom: 0;
}

.config-label {
  color: var(--text-muted);
}

.config-value {
  font-weight: 600;
  color: var(--text-main);
}

.output-total {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 24px;
}

.total-label {
  font-size: 13px;
  color: var(--text-muted);
}

.total-value {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

/* FAQ 100% visible con details open */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.faq-item summary {
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-main);
}

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

.faq-item summary::after {
  content: "▾";
  font-size: 18px;
  color: var(--secondary);
}

.faq-item p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Contact Block */
.contact-block {
  background: linear-gradient(135deg, var(--bg-surface) 0%, #151d28 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.contact-step-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
  margin: 36px 0;
}

@media (min-width: 768px) {
  .contact-step-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.step-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #070a0e;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* Cookie banner */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 19, 26, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 999;
}

.cookie-content {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
  }
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Legal text formatting */
.legal-page {
  padding: 56px 0 80px;
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-main);
}

.legal-content p, .legal-content ul {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 20px;
}