/* PALETA DE COLORES Y VARIABLES PREMIUM */
:root {
  --primary: #1e1b4b; /* Indigo muy oscuro */
  --primary-light: #312e81;
  --secondary: #b45309; /* Ámbar / Oro cálido */
  --secondary-light: #d97706;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #f1f5f9;
  --border-color: #e2e8f0;
  --accent-soft: #fef3c7; /* Oro suave para tarjetas especiales */
  --font-headings: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* ACCESIBILIDAD */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--secondary);
  color: var(--text-light);
  padding: 1rem;
  z-index: 9999;
  transition: top 0.3s ease;
  text-decoration: none;
  font-weight: bold;
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* GRID Y CONTENEDORES */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: 750px;
}
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2-cols {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-2-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* TIPOGRAFÍAS */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}
h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}
p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.text-center { text-align: center; }
.margin-top-md { margin-top: 1.5rem; }
.margin-top-lg { margin-top: 3rem; }
.margin-bottom-md { margin-bottom: 1.5rem; }
.margin-bottom-lg { margin-bottom: 3rem; }

/* ENLACES Y BOTONES */
a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--secondary);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background-color: var(--secondary);
  color: var(--text-light);
}
.btn-primary:hover {
  background-color: var(--secondary-light);
  color: var(--text-light);
}
.btn-secondary {
  background-color: var(--primary);
  color: var(--text-light);
}
.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--text-light);
}
.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
}
.btn-full-width {
  display: block;
  width: 100%;
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* HEADER */
.site-header {
  background-color: var(--primary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-container {
  display: flex;
  justify-content: space-between;
  aria-expanded: false;
  align-items: center;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light) !important;
}
.logo-img {
  border-radius: 4px;
}
.logo-text {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: bold;
}
.menu-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}
.nav-menu {
  display: none;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary);
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.nav-menu--open {
  display: block;
}
.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.nav-item {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1.1rem;
}
.nav-item--active, .nav-item:hover {
  color: var(--secondary) !important;
}
.nav-cta {
  background-color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: inline-block;
  color: var(--text-light) !important;
}
.nav-cta:hover {
  background-color: var(--secondary-light);
}

@media (min-width: 992px) {
  .menu-toggle { display: none; }
  .nav-menu {
    display: block;
    position: static;
    width: auto;
    padding: 0;
    box-shadow: none;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

/* HERO SECTION */
.hero {
  padding: 3rem 0;
  background-color: var(--bg-light);
}
.hero-pattern {
  background-image: radial-gradient(circle at 1px 1px, #b453091a 1px, transparent 0);
  background-size: 24px 24px;
}
.hero-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.hero-text-block h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@media (min-width: 768px) {
  .hero { padding: 5rem 0; }
  .hero-container {
    flex-direction: row;
  }
  .hero-text-block {
    flex: 1.2;
  }
  .hero-image-block {
    flex: 0.8;
  }
}

/* STATISTICS */
.stats-section {
  padding: 2.5rem 0;
  background-color: var(--primary);
  color: var(--text-light);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-number {
  display: block;
  font-family: var(--font-headings);
  font-size: 2.5rem;
  color: var(--secondary-light);
  font-weight: bold;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* HOW IT WORKS */
.how-it-works {
  padding: 5rem 0;
  background-color: var(--bg-white);
}
.section-title {
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step-card {
  text-align: center;
  padding: 1rem;
}
.step-icon-wrapper {
  position: relative;
  display: inline-block;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.step-num {
  position: absolute;
  top: -10px;
  right: -20px;
  background-color: var(--secondary);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: bold;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TRUST BLOCK */
.trust-block {
  padding: 5rem 0;
  background-color: var(--bg-light);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.trust-bullets {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.trust-bullet {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.trust-bullet i {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-top: 0.2rem;
}
.trust-card-dark {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.trust-card-dark h3 {
  color: var(--secondary-light);
}
.trust-card-dark p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* SERVICES */
.services-overview {
  padding: 5rem 0;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-content {
  padding: 1.5rem;
}
.service-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
}

/* SERVICES DETAIL PAGE */
.services-detail {
  padding: 5rem 0;
}
.service-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 5rem;
  align-items: center;
}
.service-detail-item:last-child {
  margin-bottom: 0;
}
.service-detail-img-box {
  width: 100%;
  max-width: 500px;
}
.service-detail-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.service-detail-text ul {
  list-style: none;
  margin-top: 1.5rem;
}
.service-detail-text li {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
}
.service-detail-text i {
  color: var(--secondary);
}
@media (min-width: 768px) {
  .service-detail-item {
    flex-direction: row;
  }
  .service-detail-item--reverse {
    flex-direction: row-reverse;
  }
  .service-detail-img-box, .service-detail-text {
    flex: 1;
  }
}

/* FEATURE ASYMMETRIC */
.feature-asymmetric {
  padding: 5rem 0;
  background-color: var(--bg-light);
}
.feature-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}
.feature-image-block {
  width: 100%;
  max-width: 450px;
}
.feature-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}
.feature-list li {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
}
.feature-list i {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 0.1rem;
}
@media (min-width: 768px) {
  .feature-container {
    flex-direction: row-reverse;
  }
  .feature-image-block, .feature-text-block {
    flex: 1;
  }
}

/* PRICING */
.pricing-section {
  padding: 5rem 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.price-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 8px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.price-card--popular {
  border-color: var(--secondary);
  background-color: var(--accent-soft);
  box-shadow: 0 10px 30px rgba(180,83,9,0.15);
}
.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary);
  color: var(--text-light);
  padding: 0.25rem 1rem;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 20px;
}
.price {
  font-family: var(--font-headings);
  font-size: 3rem;
  color: var(--primary);
  font-weight: bold;
  margin: 1.5rem 0;
}
.price-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2.5rem;
}
.price-features li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.price-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* FORM LEAD CAPTURE */
.form-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}
.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.form-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--secondary);
  outline: none;
}
.form-help {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.form-consent {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.form-consent input {
  margin-top: 0.2rem;
}

/* FAQ TEASER & ACCORDION */
.faq-teaser {
  padding: 5rem 0;
}
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--secondary);
  transition: var(--transition);
}
.faq-question[aria-expanded="true"]::after {
  content: '-';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-muted);
  line-height: 1.6;
}
.faq-answer--open {
  max-height: 400px;
  padding-top: 1rem;
}

/* TRUST LAYER */
.trust-layer {
  background-color: var(--primary-light);
  color: var(--text-light);
  padding: 3rem 0;
  border-top: 4px solid var(--secondary);
}
.trust-layer h4 {
  color: var(--secondary-light);
  margin-bottom: 1rem;
}
.trust-layer p {
  color: var(--text-light);
  font-size: 0.9rem;
}
.trust-disclaimer {
  font-size: 0.8rem !important;
  opacity: 0.8;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* FOOTER */
.site-footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
.footer-brand {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  color: var(--text-light);
  font-weight: bold;
  display: block;
  margin-bottom: 1rem;
}
.footer-about p {
  color: var(--text-light);
  opacity: 0.8;
}
.site-footer h4 {
  color: var(--secondary-light);
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}
.site-footer ul {
  list-style: none;
}
.site-footer li {
  margin-bottom: 0.75rem;
}
.site-footer a {
  color: var(--text-light);
  opacity: 0.8;
}
.site-footer a:hover {
  opacity: 1;
  color: var(--secondary);
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary);
  color: var(--text-light);
  padding: 1.5rem 0;
  z-index: 10000;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
}
.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.cookie-container p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.cookie-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-link {
  color: var(--secondary-light);
  font-size: 0.85rem;
  text-decoration: underline;
}

/* THANK YOU PAGE */
.thank-you-main {
  padding: 6rem 0;
  background-color: var(--bg-light);
}
.thank-you-card {
  background: var(--bg-white);
  padding: 4rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.success-icon {
  font-size: 4rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* LEGAL PAGES GENERAL */
.legal-page-container {
  padding: 4rem 0;
}
.back-home-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: bold;
}
.legal-date {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 3rem;
}
.legal-section {
  margin-bottom: 3rem;
}
.legal-section h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}
.legal-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-section li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.hq-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}
.map-container {
  margin-top: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}