/* --- RESET CONSISTENTE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-primary);
  color: var(--grey);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
  font-family: var(--font-primary);
  font-weight: 700;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
  padding-left: 0;
}

/* — VARIABLES — */
:root {
  --petrol: #0d1b2a;
  --gold: #c49a6c;
  --grey: #2b2d42;
  --neutral: #f6f6f6;
  --light-bg: #f9f9f9;

  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 8rem;

  /* Fuentes */
  --font-primary: "Geist Sans", sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-5xl: 3rem;

  /* Bordes */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  /* Sombras */
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --- RE-IMPORT UTILIDADES ESENCIALES --- */
.section {
  padding-block: clamp(4rem, 8vw, 8rem);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.2rem;
  text-align: center;
}
.section-intro {
  max-width: 45ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  text-align: center;
  color: var(--grey);
}
.u-mb-xl {
  margin-bottom: 4rem;
}

/* — UTILIDADES GENÉRICAS — */
.u-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}
.u-center {
  margin-inline: auto;
  text-align: center;
}
.u-text-center {
  text-align: center;
}

/* Espaciado */
.u-mt-xs {
  margin-top: var(--space-xs);
}
.u-mt-sm {
  margin-top: var(--space-sm);
}
.u-mt-md {
  margin-top: var(--space-md);
}
.u-mt-lg {
  margin-top: var(--space-lg);
}
.u-mt-xl {
  margin-top: var(--space-xl);
}

.u-mb-xs {
  margin-bottom: var(--space-xs);
}
.u-mb-sm {
  margin-bottom: var(--space-sm);
}
.u-mb-md {
  margin-bottom: var(--space-md);
}
.u-mb-lg {
  margin-bottom: var(--space-lg);
}
.u-mb-xl {
  margin-bottom: var(--space-xl);
}

.u-pt-xs {
  padding-top: var(--space-xs);
}
.u-pt-sm {
  padding-top: var(--space-sm);
}
.u-pt-md {
  padding-top: var(--space-md);
}
.u-pt-lg {
  padding-top: var(--space-lg);
}
.u-pt-xl {
  padding-top: var(--space-xl);
}

.u-pb-xs {
  padding-bottom: var(--space-xs);
}
.u-pb-sm {
  padding-bottom: var(--space-sm);
}
.u-pb-md {
  padding-bottom: var(--space-md);
}
.u-pb-lg {
  padding-bottom: var(--space-lg);
}
.u-pb-xl {
  padding-bottom: var(--space-xl);
}

/* Tipografía */
.u-fs-xs {
  font-size: var(--fs-xs);
}
.u-fs-sm {
  font-size: var(--fs-sm);
}
.u-fs-base {
  font-size: var(--fs-base);
}
.u-fs-lg {
  font-size: var(--fs-lg);
}
.u-fs-xl {
  font-size: var(--fs-xl);
}
.u-fs-2xl {
  font-size: var(--fs-2xl);
}
.u-fs-3xl {
  font-size: var(--fs-3xl);
}
.u-fs-4xl {
  font-size: var(--fs-4xl);
}
.u-fs-5xl {
  font-size: var(--fs-5xl);
}

.u-fw-light {
  font-weight: 300;
}
.u-fw-normal {
  font-weight: 400;
}
.u-fw-medium {
  font-weight: 500;
}
.u-fw-semibold {
  font-weight: 600;
}
.u-fw-bold {
  font-weight: 700;
}

/* Colores */
.u-color-petrol {
  color: var(--petrol);
}
.u-color-gold {
  color: var(--gold);
}
.u-color-grey {
  color: var(--grey);
}
.u-color-white {
  color: #fff;
}

.u-bg-petrol {
  background-color: var(--petrol);
}
.u-bg-gold {
  background-color: var(--gold);
}
.u-bg-neutral {
  background-color: var(--neutral);
}
.u-bg-white {
  background-color: #fff;
}

/* Posicionamiento */
.u-relative {
  position: relative;
}
.u-absolute {
  position: absolute;
}
.u-sticky {
  position: sticky;
}
.u-fixed {
  position: fixed;
}

.u-top-0 {
  top: 0;
}
.u-right-0 {
  right: 0;
}
.u-bottom-0 {
  bottom: 0;
}
.u-left-0 {
  left: 0;
}

.u-z-0 {
  z-index: 0;
}
.u-z-10 {
  z-index: 10;
}
.u-z-20 {
  z-index: 20;
}
.u-z-50 {
  z-index: 50;
}
.u-z-100 {
  z-index: 100;
}

/* Flexbox */
.u-flex {
  display: flex;
}
.u-flex-col {
  flex-direction: column;
}
.u-items-center {
  align-items: center;
}
.u-justify-center {
  justify-content: center;
}
.u-justify-between {
  justify-content: space-between;
}

/* Grid */
.u-grid {
  display: grid;
}

/* Tamaños */
.u-w-full {
  width: 100%;
}
.u-h-full {
  height: 100%;
}

/* Sombras */
.u-shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.u-shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
.u-shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.u-shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Accesibilidad */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.u-focus-visible:focus {
  position: static;
  width: auto;
  height: auto;
  padding: var(--space-sm);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* — COMPONENTES BEM — */

/* Header y Navegación */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: var(--petrol);
  transition: all 0.3s ease;
}

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

.site-header__logo {
  display: inline-block;
  z-index: 101;
  position: relative;
}

.site-header__logo img {
  height: 40px;
  width: auto;
}

.site-nav__list {
  display: flex;
  gap: 2rem;
  font-weight: 600;
}

.site-nav__list a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.site-nav__list a:hover {
  color: var(--gold);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.site-nav__list a:hover::after {
  width: 100%;
}

.site-header__ctas {
  display: flex;
  gap: var(--space-md);
}

.site-header__ctas .btn--secondary {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  transition: all 0.3s ease;
}

.site-header__ctas .btn--secondary:hover {
  background: var(--gold);
  color: var(--petrol);
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  position: relative;
}

.site-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animación del menú hamburguesa */
body.nav-open .site-header__toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .site-header__toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .site-header__toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1100px) {
  .site-header__toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background: var(--petrol);
    padding: 6rem var(--space-lg) var(--space-xl);
    overflow-y: auto;
    z-index: 100;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .site-nav__list {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .site-nav__list a {
    font-size: 1.125rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-header__ctas {
    display: none;
  }

  .site-header__ctas .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    animation: fadeIn 0.3s ease;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: var(--space-sm) 0;
  }

  .site-header__logo img {
    height: 35px;
  }

  .site-nav {
    width: 90%;
    max-width: 280px;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, var(--petrol), #000);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: 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='%23ffffff' fill-opacity='0.05'%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 {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  max-width: none; /* sin límites de ancho  */
  white-space: normal; /* permite saltos de línea */
  word-break: break-word; /* rompe palabras largas   */
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.9);
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.hero__bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to top, #fff, transparent);
}

/* Benefits Section */
.benefits__header {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.benefits__title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}



.benefits__text {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
  color: var(--grey);
}

.benefits__tagline {
  font-size: var(--fs-lg);
  font-weight: 500;
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.benefit-card {
  background-color: var(--neutral);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  height: 100%;
  transition: transform var(--transition-normal);
}

.benefit-card:hover {
  transform: translateY(-8px);
}

.benefit-card__icon {
  margin-bottom: var(--space-md);
}

.benefit-card__svg {
  width: 48px;
  height: 48px;
}

.benefit-card__title {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.benefit-card__text {
  color: var(--grey);
}

/* — Cómo funciona — */
.how-it-works {
  padding-block: 6rem;
  background: var(--neutral);
}

.how-it-works__title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  color: var(--petrol);
  position: relative;
}

.how-it-works__title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2x2 para PC */
  gap: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.how-it-works__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.how-it-works__item.is-active {
  opacity: 1;
  transform: translateY(0);
}

.how-it-works__item:nth-child(1).is-active {
  transition-delay: 0.1s;
}
.how-it-works__item:nth-child(2).is-active {
  transition-delay: 0.2s;
}
.how-it-works__item:nth-child(3).is-active {
  transition-delay: 0.3s;
}
.how-it-works__item:nth-child(4).is-active {
  transition-delay: 0.4s;
}

.how-it-works__number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(196, 154, 108, 0.3);
  z-index: 2;
}

.how-it-works__img {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 0.5rem;
}

.how-it-works__img img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.how-it-works__item:hover .how-it-works__img img {
  transform: scale(1.05);
}

.how-it-works__desc {
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .how-it-works__grid {
    grid-template-columns: repeat(2, 1fr); /* Mantener 2 columnas en tablets */
    gap: 2.5rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .how-it-works {
    padding-block: 5rem;
  }

  .how-it-works__grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
    max-width: 500px;
    margin: 0 auto;
  }

  .how-it-works__title {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 600px) {
  .how-it-works {
    padding-block: 4rem;
  }

  .how-it-works__desc {
    font-size: 0.95rem;
  }

  .how-it-works__title {
    font-size: 1.75rem;
  }
}

/* — Professionals Section — */
.professionals {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.professionals::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle at 20% 90%,
    rgba(196, 154, 108, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.professionals__title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--petrol);
  position: relative;
}

.professionals__title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.professionals__intro {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 2rem auto 3rem;
  text-align: center;
  color: var(--grey);
  line-height: 1.6;
}

.professionals__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.professionals__card {
  padding: 2rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease,
    transform 0.4s ease;
}

.professionals__card.is-active {
  opacity: 1;
  transform: translateY(0);
}

.professionals__card:nth-child(1).is-active {
  transition-delay: 0.1s;
}
.professionals__card:nth-child(2).is-active {
  transition-delay: 0.15s;
}
.professionals__card:nth-child(3).is-active {
  transition-delay: 0.2s;
}
.professionals__card:nth-child(4).is-active {
  transition-delay: 0.25s;
}
.professionals__card:nth-child(5).is-active {
  transition-delay: 0.3s;
}
.professionals__card:nth-child(6).is-active {
  transition-delay: 0.35s;
}
.professionals__card:nth-child(7).is-active {
  transition-delay: 0.4s;
}
.professionals__card:nth-child(8).is-active {
  transition-delay: 0.45s;
}

.professionals__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, #e2b583 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.professionals__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.professionals__card:hover::before {
  opacity: 1;
}

.professionals__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background-color: rgba(196, 154, 108, 0.1);
  color: var(--gold);
  transition: all 0.3s ease;
}

.professionals__card:hover .professionals__icon {
  background-color: var(--gold);
  color: #fff;
  transform: scale(1.1);
}

.professionals__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.professionals__category {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--petrol);
  margin: 0;
  transition: color 0.3s ease;
}

.professionals__card:hover .professionals__category {
  color: var(--gold);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .professionals__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .professionals__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .professionals {
    padding: 4rem 0;
  }

  .professionals__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .professionals__intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .professionals__card {
    padding: 1.75rem;
  }

  .professionals__icon {
    width: 50px;
    height: 50px;
  }

  .professionals__category {
    font-size: 1rem;
  }
}

/* Contact Form Section */
.contact {
  padding: var(--space-xl) 0;
  background-color: var(--petrol);
  color: #fff;
}

/* --- PREMIUM FORM STYLES --- */
.premium-form-container {
  background-color: rgba(15, 23, 42, 0.8);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.premium-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #c49a6c 0%, #e2b583 50%, #c49a6c 100%);
}

.premium-form__title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.premium-form__subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.premium-form__fields {
  display: grid;
  gap: 1.75rem;
}

.premium-form__group {
  position: relative;
}

.premium-form__label {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.premium-form__input-wrapper {
  position: relative;
  z-index: 1;
}

.premium-form__input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #c49a6c 0%, #e2b583 100%);
  transition: width 0.3s ease;
  z-index: 2;
}

/* Inputs & textarea */
.premium-input,
.premium-textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.premium-input:focus,
.premium-textarea:focus {
  outline: none;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.premium-input:focus + .premium-form__input-border,
.premium-textarea:focus + .premium-form__input-border {
  width: 100%;
}

.premium-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Toggle Buttons - Versión mejorada */
.premium-toggle-buttons {
  width: 100%;
}

.premium-toggle-buttons .wpcf7-form-control {
  display: flex;
  width: 100%;
  gap: 10px;
}

.premium-toggle-buttons .wpcf7-list-item {
  margin: 0;
  flex: 1;
}

.premium-toggle-buttons .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  background-color: transparent;
  border: 2px solid #c49a6c;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.premium-toggle-buttons .wpcf7-list-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.premium-toggle-buttons .wpcf7-list-item-label {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

/* Estilo cuando está seleccionado - FONDO DORADO COMPLETO */
.premium-toggle-buttons
  .wpcf7-list-item
  input:checked
  + .wpcf7-list-item-label {
  color: #fff;
  font-weight: 600;
}

.premium-toggle-buttons
  .wpcf7-list-item
  input:checked
  ~ .wpcf7-list-item-label {
  background-color: #c49a6c;
}

.premium-toggle-buttons .wpcf7-list-item input:checked + span {
  background-color: #c49a6c;
}

/* Aseguramos que todo el botón tenga fondo dorado */
.premium-toggle-buttons .wpcf7-list-item label.selected {
  background-color: #c49a6c;
  border-color: #c49a6c;
}

/* Submit Button */
.premium-submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  background: linear-gradient(135deg, #c49a6c 0%, #e2b583 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(196, 154, 108, 0.3);
}

.premium-submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(196, 154, 108, 0.4);
}

.premium-submit-button:active {
  transform: translateY(-1px);
}

.premium-submit-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2b583 0%, #c49a6c 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-submit-button:hover::after {
  opacity: 1;
}

.premium-submit-icon {
  margin-right: 10px;
  position: relative;
  z-index: 2;
}

.premium-submit-text {
  position: relative;
  z-index: 2;
}

/* Error Messages */
.wpcf7-not-valid-tip {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background-color: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  transform: translateY(0);
  opacity: 0;
  animation: fadeInUp 0.3s forwards;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

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

.wpcf7-response-output {
  margin: 1.5rem 0 0 !important;
  padding: 0.75rem !important;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(4px);
}

/* — Aviso legal reCAPTCHA — */
.grecaptcha-badge {
  display: none !important;
}


.recaptcha-notice {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.4;
}

.recaptcha-notice a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  transition: color 0.3s;
}

.recaptcha-notice a:hover {
  color: var(--gold);
}


/* Animation classes */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-animate].is-active {
  opacity: 1;
  transform: translateY(0);
}

.premium-form__title.is-active {
  transition-delay: 0.1s;
}

.premium-form__subtitle.is-active {
  transition-delay: 0.2s;
}

.premium-form__fields.is-active {
  transition-delay: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .premium-form-container {
    padding: 2rem 1.5rem;
  }

  .premium-form__title {
    font-size: 1.75rem;
  }

  .premium-form__subtitle {
    font-size: 1rem;
  }

  .premium-toggle-buttons .wpcf7-form-control {
    flex-direction: column;
  }

  .premium-toggle-buttons .wpcf7-list-item {
    margin-bottom: 10px;
  }
}
/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--petrol) 0%, #020b16 100%);
  color: #fff;
  padding-block: 4rem 2rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-menu a:hover {
  transition: var(--transition-fast);
  color: var(--gold);
}

.social-list {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.social-list a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.social-list a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.site-footer__legal {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-normal);
}

.btn--primary {
  background-color: var(--gold);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-md);
}

.btn--primary-light {
  background-color: var(--gold);
  color: #fff;
}

.btn--primary-light:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn--secondary {
  background-color: var(--petrol);
  color: #fff;
}

.btn--secondary:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  border: 2px solid var(--petrol);
  color: var(--petrol);
}

.btn--outline:hover {
  background-color: var(--petrol);
  color: #fff;
}

.btn--outline-light {
  border: 2px solid #fff;
  color: #fff;
}

.btn--outline-light:hover {
  background-color: #fff;
  color: var(--petrol);
}

/* — ANIMACIONES (IntersectionObserver) — */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
}
[data-animate].is-active {
  opacity: 1;
  transform: none;
  transition: 0.6s ease-out;
}

/* — MEDIA QUERIES — */
@media (min-width: 640px) {
  .hero__buttons {
    flex-direction: row;
    justify-content: center;
  }

  .testimonial {
    flex: 0 0 calc(100% - var(--space-md));
  }
}

@media (min-width: 768px) {
  .how-it-works__line {
    display: block;
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--neutral);
    transform: translateX(-50%);
    z-index: 0;
  }

  .step__content--right {
    margin-right: 50%;
    margin-left: var(--space-lg);
    text-align: right;
  }

  .step__content--left {
    margin-left: 50%;
    margin-right: var(--space-lg);
  }

  .step__title {
    justify-content: flex-start;
  }

  .step__content--right .step__title {
    justify-content: flex-end;
  }

  .step__content--right .step__title .step__number {
    order: 2;
    margin-right: 0;
    margin-left: var(--space-sm);
  }

  .testimonial {
    flex: 0 0 384px;
  }
}

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

/* --- TESTIMONIALS FIX --- */
.testimonials__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-block: 2rem;
  margin-bottom: 1.5rem;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.testimonials__track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.testimonial {
  flex: 0 0 320px;
  scroll-snap-align: center;
  transition: 0.3s transform;
}

.testimonial:hover {
  transform: translateY(-6px);
}

.testimonial__inner {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  height: 100%;
}

.testimonial__icon {
  margin-bottom: 1rem;
}

.testimonial__svg {
  width: 32px;
  height: 32px;
}

.testimonial__content {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
}

.testimonial__avatar {
  margin-right: 1rem;
}

.testimonial__img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__name {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.testimonial__position {
  font-size: 0.875rem;
  opacity: 0.8;
}

.testimonials__controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.testimonial-prev,
.testimonial-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.testimonial-nav__icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 600px) {
  .testimonial {
    flex: 0 0 260px;
  }
}
