/* ============================================================
   styles.css — Estilos principales de DataxIA
   Para cambiar colores y tipografías, editá las variables en :root.
   Para cambiar textos y contenidos, editá js/config.js.
   ============================================================ */


/* ============================================================
   VARIABLES GLOBALES — Editá aquí para cambiar el tema
   ============================================================ */
:root {
  /* --- Colores principales --- */
  --color-bg:           #0A1628;
  --color-bg-alt:       #0D1E38;
  --color-bg-card:      #0F2240;
  --color-bg-card-alt:  #112547;

  /* Acento dorado — un solo color base + variantes del mismo tono */
  --color-gold-rgb:     212, 175, 55;          /* valor RGB para usar en rgba() */
  --color-gold:         #D4AF37;               /* dorado principal */
  --color-gold-light:   #DEC042;               /* +10% luminosidad, mismo tono */
  --color-gold-dark:    #BA9620;               /* -10% luminosidad, mismo tono */
  --color-gold-subtle:  rgba(var(--color-gold-rgb), 0.12);
  --color-border:       rgba(var(--color-gold-rgb), 0.15);
  --color-border-light: rgba(255, 255, 255, 0.07);
  --color-text:         #E2E8F5;
  --color-text-muted:   #7A8EAA;
  --color-text-faint:   rgba(255, 255, 255, 0.45);
  --color-white:        #FFFFFF;

  /* --- Tipografía --- */
  --font-family:    'Inter', sans-serif;
  --fs-xs:   0.75rem;    /*  12px */
  --fs-sm:   0.875rem;   /*  14px */
  --fs-base: 1rem;       /*  16px */
  --fs-lg:   1.125rem;   /*  18px */
  --fs-xl:   1.25rem;    /*  20px */
  --fs-2xl:  1.5rem;     /*  24px */
  --fs-3xl:  1.875rem;   /*  30px */
  --fs-4xl:  2.25rem;    /*  36px */
  --fs-5xl:  3rem;       /*  48px */
  --fs-6xl:  3.75rem;    /*  60px */

  /* --- Espaciado --- */
  --sp-xs:   0.5rem;
  --sp-sm:   1rem;
  --sp-md:   1.5rem;
  --sp-lg:   2rem;
  --sp-xl:   3rem;
  --sp-2xl:  5rem;
  --sp-3xl:  8rem;

  /* --- Bordes y sombras --- */
  --radius-sm:   0.375rem;
  --radius-md:   0.75rem;
  --radius-lg:   1.25rem;
  --radius-xl:   2rem;
  --radius-full: 9999px;
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 0 40px rgba(var(--color-gold-rgb), 0.25);

  /* --- Transiciones --- */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Layout --- */
  --container-max: 1200px;
  --header-height: 70px;
}


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

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* Ancla con offset para el header fijo */
section[id] {
  scroll-margin-top: var(--header-height);
}


/* ============================================================
   UTILIDADES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: #0A1628;
  border-color: transparent;
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

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

.btn--outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn--outline:hover {
  background: var(--color-gold);
  color: #0A1628;
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.btn--full {
  width: 100%;
}


/* ============================================================
   ANIMACIONES DE ENTRADA (Intersection Observer en main.js)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in--delay-1 { transition-delay: 0.1s; }
.fade-in--delay-2 { transition-delay: 0.2s; }
.fade-in--delay-3 { transition-delay: 0.3s; }

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulsación sutil para decoraciones */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}


/* ============================================================
   SECCIONES COMUNES
   ============================================================ */
.section {
  padding: var(--sp-3xl) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.section__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-xs);
  position: relative;
  padding: 0 1.25rem;
}

.section__label::before,
.section__label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.5;
}
.section__label::before { right: 100%; margin-right: -1.1rem; }
.section__label::after  { left:  100%; margin-left:  -1.1rem; }

.section__title {
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--sp-sm);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section__subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo — texto (fallback cuando no hay imagen) */
.header__logo {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.header__logo .logo-x {
  color: var(--color-gold);
}

/* Logo — imagen (cuando config.marca.logo está definido) */
.header__logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.nav__item a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 4px;
}

.nav__item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav__item a:hover,
.nav__item a.active {
  color: var(--color-white);
}

.nav__item a:hover::after,
.nav__item a.active::after {
  width: 100%;
}

/* Hamburguesa (solo mobile) */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.header__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--sp-2xl)) 0 var(--sp-2xl);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

/* Decoración de fondo del Hero */
.hero__bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__bg-orb--1 {
  width: 700px;
  height: 700px;
  top: -10%;
  right: -15%;
  background: radial-gradient(circle, rgba(var(--color-gold-rgb), 0.07) 0%, transparent 65%);
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero__bg-orb--2 {
  width: 400px;
  height: 400px;
  bottom: 0;
  left: -10%;
  background: radial-gradient(circle, rgba(13, 30, 56, 0.8) 0%, transparent 70%);
}

/* Líneas de grid decorativas */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--color-gold-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-gold-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}


/* ===== HERO — nuevos elementos (Tarea 1) ===== */
.eyebrow {
  display: inline-block;
  background: rgba(var(--color-gold-rgb), 0.12);
  color: var(--color-gold);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  color: var(--color-gold);
  margin: 0 0 16px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: var(--fs-sm);
  color: var(--color-text-faint);
}

.hero-trust .stars {
  color: var(--color-gold);
  letter-spacing: 2px;
}

.form-note {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--color-text-faint);
}

@media (max-width: 768px) {
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; text-align: center; }
}


/* ============================================================
   FORMULARIOS
   ============================================================ */
.form-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}

.form-card--dark {
  background: var(--color-bg-card-alt);
}

.form-card__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--sp-md);
  letter-spacing: -0.01em;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form__input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-family: var(--font-family);
  font-size: var(--fs-base);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  width: 100%;
  appearance: none;
}

.form__input::placeholder {
  color: rgba(122, 142, 170, 0.5);
}

.form__input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(var(--color-gold-rgb), 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.form__input.error {
  border-color: #E74C3C;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.form__textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.form__success {
  text-align: center;
  padding: var(--sp-xl) var(--sp-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
}

.form__success-icon {
  font-size: 3rem;
  line-height: 1;
}

.form__success-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-white);
}

.form__success-sub {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}


/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios {
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.servicios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.4;
}

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.servicio-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.servicio-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.servicio-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-gold);
}

.servicio-card:hover::after {
  transform: scaleX(1);
}

.servicio-card__icono {
  font-size: 2.5rem;
  margin-bottom: var(--sp-sm);
  display: block;
}

.servicio-card__titulo {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--sp-xs);
  letter-spacing: -0.01em;
}

.servicio-card__descripcion {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}


/* ============================================================
   SOBRE MÍ
   ============================================================ */
.sobre-mi__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.sobre-mi__foto-wrap {
  display: flex;
  justify-content: center;
}

.sobre-mi__foto {
  width: 300px;
  height: 380px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 50px rgba(var(--color-gold-rgb), 0.12);
}

.sobre-mi__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sobre-mi__foto-placeholder {
  font-size: 5rem;
  opacity: 0.3;
}

/* Borde dorado animado en la foto */
.sobre-mi__foto::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, var(--color-gold), transparent 50%, var(--color-gold-dark));
  z-index: -1;
  opacity: 0.6;
}

.sobre-mi__titulo {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--sp-xs);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sobre-mi__subtitulo {
  font-size: var(--fs-lg);
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--sp-md);
}

.sobre-mi__descripcion {
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: var(--sp-md);
  max-width: 560px;
}

.sobre-mi__highlights {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: var(--sp-lg);
}

.sobre-mi__highlights li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-sm);
  color: var(--color-text);
  font-weight: 500;
}

.sobre-mi__highlights li::before {
  content: '✦';
  color: var(--color-gold);
  font-size: 0.6rem;
  flex-shrink: 0;
}


/* ============================================================
   CASOS DE ÉXITO
   ============================================================ */
.casos {
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.casos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.4;
}

.casos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.caso-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  transition: transform var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Línea dorada superior */
.caso-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-dark));
}

.caso-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--color-gold-rgb), 0.3);
  box-shadow: var(--shadow-gold);
}

.caso-card__header {
  margin-bottom: var(--sp-md);
}

.caso-card__cliente {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.caso-card__industria {
  font-size: var(--fs-xs);
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.caso-card__metricas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xs);
  margin-bottom: var(--sp-md);
}

.metrica {
  text-align: center;
  background: var(--color-gold-subtle);
  border-radius: var(--radius-sm);
  padding: 0.875rem var(--sp-xs);
  border: 1px solid var(--color-border);
}

.metrica__valor {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.metrica__label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.caso-card__descripcion {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}


/* ============================================================
   CONTACTO
   ============================================================ */
.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}

.contacto__titulo {
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--sp-sm);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contacto__subtitulo {
  color: var(--color-text-muted);
  font-size: var(--fs-lg);
  line-height: 1.75;
  margin-bottom: var(--sp-xl);
}

.contacto__datos {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.contacto-dato {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.contacto-dato__icono {
  width: 50px;
  height: 50px;
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.contacto-dato:hover .contacto-dato__icono {
  background: rgba(var(--color-gold-rgb), 0.2);
}

.contacto-dato__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contacto-dato__label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contacto-dato__valor {
  font-size: var(--fs-base);
  color: var(--color-text);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contacto-dato__valor:hover {
  color: var(--color-gold);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--color-border);
  padding: var(--sp-xl) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  text-align: center;
}

.footer__logo {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: -0.03em;
}

.footer__logo .logo-x {
  color: var(--color-gold);
}

.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.footer__redes {
  display: flex;
  gap: var(--sp-xs);
}

.footer__red {
  width: 44px;
  height: 44px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--color-text-muted);
}

.footer__red svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__red:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #0A1628;
  transform: translateY(-3px);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}


/* ============================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --sp-3xl: 6rem;
  }

  /* Con 3 cards de servicios, caben bien en 3 columnas hasta 768px */

  .hero__title {
    font-size: var(--fs-4xl);
  }

  .sobre-mi__inner {
    gap: var(--sp-2xl);
  }
}


/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --sp-3xl: 4.5rem;
    --sp-2xl: 3rem;
  }

  /* Header mobile */
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(14px);
    padding: var(--sp-lg) var(--sp-md);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
    border-bottom: 1px solid var(--color-border);
  }

  .header__nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-md);
  }

  .nav__item a {
    font-size: var(--fs-lg);
  }

  /* Hero mobile */
  .hero {
    padding-top: calc(var(--header-height) + var(--sp-lg));
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .hero__title {
    font-size: var(--fs-3xl);
  }

  .hero__subtitle {
    font-size: var(--fs-base);
    max-width: 100%;
  }

  /* Sobre mí mobile */
  .sobre-mi__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .sobre-mi__foto {
    width: 220px;
    height: 280px;
  }

  /* Casos mobile */
  .casos__grid {
    grid-template-columns: 1fr;
  }

  /* Contacto mobile */
  .contacto__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .contacto__titulo {
    font-size: var(--fs-3xl);
  }

  .section__title {
    font-size: var(--fs-3xl);
  }
}


/* ============================================================
   RESPONSIVE — Móvil pequeño (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .servicios__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: var(--fs-2xl);
  }

  .sobre-mi__foto {
    width: 180px;
    height: 230px;
  }

  .metrica__valor {
    font-size: var(--fs-xl);
  }

  .btn {
    padding: 0.75rem 1.5rem;
  }
}


/* ============================================================
   CTA PRIMARIO HERO — Jerarquía visual reforzada (Tarea 4)
   ============================================================ */
.btn--hero {
  font-size: var(--fs-lg);
  padding: 1rem 2.25rem;
  animation: subtle-pulse 3s ease-in-out infinite;
}


/* ============================================================
   ICONOS SVG EN SERVICIOS (Tarea 2)
   ============================================================ */
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-sm);
  color: var(--color-gold);
  transition: background var(--transition-base), transform var(--transition-base);
}

.servicio-card:hover .service-icon {
  background: rgba(var(--color-gold-rgb), 0.22);
  transform: scale(1.08);
}

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


/* ============================================================
   PRUEBA SOCIAL — Strip de clientes (Tarea 3)
   ============================================================ */
.social-proof {
  padding: var(--sp-lg) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  background: rgba(255, 255, 255, 0.02);
}

.social-proof__titulo {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-md);
}

.social-proof__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.social-proof__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.social-proof__logo:hover {
  border-color: var(--color-border);
  color: var(--color-text);
}


/* ============================================================
   CÓMO TRABAJAMOS — 4 pasos (Tarea 5)
   ============================================================ */
.como {
  background: var(--color-bg);
  position: relative;
}

.como__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  position: relative;
}

.como__grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), rgba(var(--color-gold-rgb), 0.2));
  z-index: 0;
}

.como-paso {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--sp-lg) var(--sp-sm);
}

.como-paso__numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #0A1628;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 900;
  margin-bottom: var(--sp-md);
  box-shadow: 0 0 20px rgba(var(--color-gold-rgb), 0.35);
}

.como-paso__titulo {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--sp-xs);
  letter-spacing: -0.01em;
}

.como-paso__descripcion {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}


/* ============================================================
   CASOS — Timeframe badge (Tarea 6)
   ============================================================ */
.caso-card__timeframe {
  margin-top: var(--sp-sm);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--color-border-light);
}

.caso-card__timeframe strong {
  color: var(--color-gold);
  font-weight: 600;
}


/* ============================================================
   FAQ — Acordeón (Tarea 9)
   ============================================================ */
.faq {
  background: var(--color-bg-alt);
  position: relative;
}

.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.4;
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item.open,
.faq-item:hover {
  border-color: var(--color-border);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-white);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--color-gold);
}

.faq-item__icon {
  flex-shrink: 0;
  color: var(--color-gold);
  transition: transform var(--transition-base);
  display: flex;
}

.faq-item.open .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-item__answer {
  max-height: 400px;
}

.faq-item__answer p {
  padding: 0 var(--sp-lg) var(--sp-md);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.85;
}


/* ============================================================
   FOOTER — Multi-columna (Tarea 7)
   ============================================================ */
.footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--color-border);
  padding: var(--sp-2xl) 0 var(--sp-lg);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-2xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--sp-lg);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer__logo {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: -0.03em;
}

.footer__logo .logo-x {
  color: var(--color-gold);
}

.footer__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer__redes {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}

.footer__red {
  width: 40px;
  height: 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--color-text-muted);
}

.footer__red svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer__red:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #0A1628;
  transform: translateY(-3px);
}

.footer__col-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
}

.footer__col-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col-list li a {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__col-list li a:hover {
  color: var(--color-gold);
}

.footer__col-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col-contact p {
  font-size: var(--fs-sm);
}

.footer__col-contact a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__col-contact a:hover {
  color: var(--color-gold);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.footer__legal {
  display: flex;
  gap: var(--sp-md);
}

.footer__legal-link {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--color-gold);
}


/* ============================================================
   WHATSAPP FLOTANTE (Tarea 10)
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}


/* ============================================================
   MICROINTERACCIONES (Tarea 11)
   ============================================================ */

/* Pulsación sutil en el CTA principal del hero */
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--color-gold-rgb), 0); }
  50%       { box-shadow: 0 0 0 8px rgba(var(--color-gold-rgb), 0.18); }
}

/* Focus visible accesible (WCAG 2.4.11) */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Hover lift suave en service cards */
.servicio-card {
  will-change: transform;
}

/* Transición de color en links */
a {
  transition: color var(--transition-fast);
}

/* Reducir movimiento para usuarios sensibles */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .btn--hero {
    animation: none;
  }
}


/* ============================================================
   RESPONSIVE — Nuevas secciones (Tablet ≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .como__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .como__grid::before {
    display: none;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}


/* ============================================================
   RESPONSIVE — Nuevas secciones (Mobile ≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .como__grid {
    grid-template-columns: 1fr;
  }

  .faq__list {
    max-width: 100%;
  }

  .faq-item__question {
    padding: var(--sp-sm) var(--sp-md);
    font-size: var(--fs-sm);
  }

  .faq-item__answer p {
    padding: 0 var(--sp-md) var(--sp-sm);
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-sm);
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

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


/* ============================================================
   FORMULARIO: Mensaje de éxito con botón retry (Formspree)
   ============================================================ */
.form__success {
  text-align: center;
  padding: var(--sp-xl) var(--sp-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form__success-icon {
  font-size: 3rem;
  line-height: 1;
}

.form__success-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
}

.form__success-sub {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.form__success-retry {
  margin-top: var(--sp-xs);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.form__success-retry:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}


/* ============================================================
   FORMULARIO: Mensaje de error inline (Formspree)
   ============================================================ */
.form__error-msg {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: var(--fs-sm);
  color: #ff7b72;
  line-height: 1.5;
  animation: fadeInUp 0.25s ease forwards;
}
