/* ================================================
   DESIGN TOKENS — PALETA MORADO PREMIUM
   ================================================ */
:root {
  --purple-deep: #1A0A3B;
  /* fondo hero izquierdo */
  --purple-dark: #2E1065;
  /* secciones oscuras     */
  --purple-mid: #5B21B6;
  /* acentos medios        */
  --purple-light: #8B5CF6;
  /* highlights            */
  --purple-glow: #A78BFA;
  /* glow / hover          */
  --lavender-bg: #F5F3FF;
  /* fondo secciones light */
  --ivory: #FAFAF8;
  /* fondo base            */
  --white: #FFFFFF;

  /* Gold para el CTA — contraste premium sobre morado */
  --gold: #C9A84C;
  --gold-hover: #B8962E;

  --gray-1: #6B7280;
  --gray-2: #9CA3AF;
  --text-dark: #120733;
  /* casi negro con tinte morado */

  --ff-heading: 'Playfair Display', Georgia, serif;
  --ff-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-card: 0 8px 40px rgba(91, 33, 182, 0.13);
  --shadow-hero: 0 20px 60px rgba(91, 33, 182, 0.22);

  --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-body);
  background: var(--ivory);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

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

/* ================================================
   TYPOGRAPHY UTILITIES
   ================================================ */
.section-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 0.9rem;
}

.section-label-gold {
  color: var(--gold);
}

.section-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

.section-title-light {
  color: var(--ivory);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ================================================
   CONTAINER
   ================================================ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================================
   ANIMACIONES FADE-UP (gestionadas por JS)
   ================================================ */
.animate-fadeup {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--transition),
    transform 0.7s var(--transition);
}

.animate-fadeup.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.30s;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  align-items: stretch;
}

/* ── Columna izquierda ── */
.hero-left {
  background: var(--purple-deep);
  background-image:
    radial-gradient(ellipse at 15% 25%, rgba(139, 92, 246, 0.30) 0%, transparent 58%),
    radial-gradient(ellipse at 85% 80%, rgba(91, 33, 182, 0.40) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 110%, rgba(167, 139, 250, 0.15) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(2rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

/* Textura sutil */
.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.022) 0px,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 14px);
  pointer-events: none;
}

/* Círculo decorativo difuso */
.hero-left::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.38);
  color: var(--purple-glow);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  width: fit-content;
  margin-bottom: 1.8rem;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-title-accent {
  color: var(--gold);
  font-style: italic;
}

.hero-tagline {
  font-family: var(--ff-heading);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(250, 250, 248, 0.80);
  margin-bottom: 0.6rem;
  line-height: 1.45;
}

.hero-sub {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(253, 253, 253, 0.65);
  text-transform: uppercase;
  margin-bottom: 2.2rem;
}

.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(250, 250, 248, 0.88);
}

.bullet-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(201, 168, 76, 0.18);
  border: 1px solid rgba(201, 168, 76, 0.50);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Columna derecha ── */
.hero-right {
  background: var(--lavender-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
}

/* ── Tarjeta formulario ── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero);
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.6rem, 3.5vw, 2.4rem);
  width: 100%;
  max-width: 440px;
  border: 1px solid rgba(91, 33, 182, 0.09);
  position: relative;
}

/* Línea decorativa superior de la card */
.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-mid) 0%, var(--gold) 100%);
  border-radius: 0 0 4px 4px;
}

.form-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.form-subtitle {
  font-size: 0.8rem;
  color: var(--gray-1);
  margin-bottom: 1.6rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-dark);
  margin-bottom: 0.38rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid rgba(91, 33, 182, 0.18);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B21B6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.6rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.10);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-2);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Botón WhatsApp ── */
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--gold) 0%, #D4A843 100%);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 22px rgba(201, 168, 76, 0.38);
  margin-top: 0.5rem;
}

.btn-wa:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.48);
}

.btn-wa:active {
  transform: translateY(0);
}

.btn-wa:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-privacy {
  text-align: center;
  font-size: 0.74rem;
  color: var(--gray-1);
  margin-top: 0.75rem;
}

/* ================================================
   SECCIÓN SERVICIOS — LIGHT
   ================================================ */
.section-light {
  background: var(--white);
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.6rem;
}

.service-card {
  background: var(--ivory);
  border-radius: var(--radius-md);
  padding: 2rem 1.7rem;
  box-shadow: 0 2px 14px rgba(91, 33, 182, 0.06);
  border: 1px solid rgba(91, 33, 182, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--gold) 0%, var(--purple-light) 100%);
  border-radius: 2px;
  transition: height 0.4s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(91, 33, 182, 0.07);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--purple-mid);
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(91, 33, 182, 0.13);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-family: var(--ff-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 0.55rem;
}

.service-card p {
  font-size: 0.86rem;
  color: var(--gray-1);
  line-height: 1.6;
}

/* ================================================
   SECCIÓN POR QUÉ ELEGIRNOS — DARK PURPLE
   ================================================ */
.section-dark {
  background: var(--purple-deep);
  background-image:
    radial-gradient(ellipse at 10% 50%, rgba(139, 92, 246, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(91, 33, 182, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 100%, rgba(167, 139, 250, 0.12) 0%, transparent 55%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.018) 0px,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 14px);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: var(--radius-md);
  padding: 2.4rem 2rem;
  text-align: center;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-4px);
}

.why-icon {
  width: 60px;
  height: 60px;
  background: rgba(201, 168, 76, 0.13);
  border: 1.5px solid rgba(201, 168, 76, 0.38);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  color: var(--gold);
}

.why-icon svg {
  width: 28px;
  height: 28px;
}

.why-card h3 {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.87rem;
  color: rgba(250, 250, 248, 0.68);
  line-height: 1.65;
}

/* ================================================
   FOOTER
   ================================================ */
#footer {
  background: #0D0520;
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-name {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ivory);
}

.footer-location {
  font-size: 0.8rem;
  color: var(--gray-2);
}

.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity var(--transition);
}

.footer-ig:hover {
  opacity: 0.75;
}

.footer-copy {
  font-size: 0.74rem;
  color: rgba(156, 163, 175, 0.50);
}

/* ================================================
   RESPONSIVE — TABLET (< 900px)
   ================================================ */
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ================================================
   RESPONSIVE — MOBILE (< 680px)
   ================================================ */
@media (max-width: 680px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 3rem 1.5rem 2.5rem;
    align-items: flex-start;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .hero-right {
    padding: 2rem 1rem 3rem;
    background: var(--lavender-bg);
  }

  .form-card {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(91, 33, 182, 0.12);
  }

  .section-light {
    padding: 4rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .section-dark {
    padding: 4rem 0;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card:last-child {
    max-width: 100%;
  }
}

/* ================================================
   VALIDACIÓN — ESTADOS DE ERROR / OK
   ================================================ */
.field-error {
  display: block;
  font-size: 0.74rem;
  color: #DC2626;
  margin-top: 0.3rem;
  font-weight: 500;
  min-height: 1em;
  animation: shake 0.3s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

.form-group input.input-ok,
.form-group select.input-ok,
.form-group textarea.input-ok {
  border-color: var(--purple-mid) !important;
  box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.09);
}

/* ================================================
   MICRO INTERACTIONS
   ================================================ */
@media (hover: hover) {

  .form-group input:hover,
  .form-group select:hover,
  .form-group textarea:hover {
    border-color: rgba(91, 33, 182, 0.35);
  }
}