/* ============================================================
   WS COVER · home.css
   Estilos específicos de la home page
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px; /* header height */
}

/* Fondo */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient-1 {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,119,182,.25) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,180,216,.12) 0%, transparent 60%);
}

.hero-gradient-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--navy-deep), transparent);
}

.hero-pool-visual {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  max-width: 760px;
  opacity: .22;
}

.hero-pool-svg {
  width: 100%;
  height: auto;
  filter: blur(.5px);
}

/* Animación cubierta en hero */
@keyframes cover-slide {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(12px); }
}

.cover-anim { animation: cover-slide 4s ease-in-out infinite; }

/* Contenido */
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-3xl);
}

.hero-inner {
  max-width: 640px;
}

.hero-eyebrow {
  margin-bottom: var(--space-lg);
}

.hero-headline {
  color: var(--text-1);
  max-width: 580px;
}

.hero-headline em {
  font-style: normal;
}

.hero-sub {
  color: var(--text-2);
  margin-top: var(--space-lg);
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: var(--space-xl);
  color: var(--text-3);
}

.hero-avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pool-dark), var(--pool));
  border: 2px solid var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
}

.avatar:first-child { margin-left: 0; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--pool), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: .3; transform: scaleY(.8); }
  50%       { opacity: 1;  transform: scaleY(1); }
}


/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--pool);
  line-height: 1;
}

.stat-label {
  font-size: .85rem;
  color: var(--text-3);
  font-weight: 400;
}


/* ── Productos ──────────────────────────────────────────────── */
.section-header {
  max-width: 680px;
  margin-inline: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* Card producto */
.product-card {
  background: #fff;
  border: 1.5px solid #e2eaf2;
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e2eaf2, transparent);
  transition: background var(--t-med);
}

.product-card:hover {
  border-color: #b8d4e8;
  box-shadow: 0 8px 32px rgba(0,77,122,.1);
  transform: translateY(-3px);
}

.product-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--pool), transparent);
}

/* Featured card */
.product-card--featured {
  background: linear-gradient(160deg, var(--navy-mid) 0%, var(--navy-card) 100%);
  border-color: var(--navy-border);
  color: var(--text-1);
}

.product-card--featured .product-card-desc {
  color: var(--text-2);
}

.product-card--featured .product-card-features li {
  color: var(--text-2);
  border-bottom-color: var(--navy-border);
}

.product-card--featured::before {
  background: linear-gradient(90deg, transparent, var(--pool), transparent);
  opacity: .6;
}

.product-card-badge-top {
  position: absolute;
  top: 20px;
  right: 20px;
}

.product-card-badge {
  margin-bottom: -.5rem;
}

.product-card-icon {
  font-size: 2.25rem;
  line-height: 1;
}

.product-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-md);
}

.product-card-title {
  color: var(--text-dark-1);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
}

.product-card--featured .product-card-title {
  color: var(--text-1);
}

.product-card-desc {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--text-dark-2);
  flex: 1;
}

.product-card-features {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  padding-block: var(--space-md);
}

.product-card-features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text-dark-2);
  line-height: 1.5;
}

.feature-icon {
  width: 16px;
  height: 16px;
  color: var(--pool-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.product-card--featured .feature-icon { color: var(--pool); }

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--pool-dark);
  margin-top: auto;
  transition: gap var(--t-fast), color var(--t-fast);
}

.product-card-link:hover {
  gap: .8rem;
  color: var(--pool);
}

.product-card-link--featured {
  color: var(--pool);
}

.products-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid #e2eaf2;
}


/* ── Por qué WS Cover ───────────────────────────────────────── */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2xl);
  align-items: center;
}

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

.pillar {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  transition: border-color var(--t-med), transform var(--t-med);
}

.pillar:hover {
  border-color: rgba(0,180,216,.3);
  transform: translateY(-2px);
}

.pillar-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

.pillar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--space-xs);
  font-family: var(--font-body);
}

.pillar-desc {
  font-size: .875rem;
  color: var(--text-3);
  line-height: 1.6;
}


/* ── Zona ───────────────────────────────────────────────────── */
.zona-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  justify-content: center;
}

.zona-tag {
  display: inline-block;
  padding: .5rem 1rem;
  background: #fff;
  border: 1.5px solid #d5e4ef;
  border-radius: 999px;
  font-size: .875rem;
  color: var(--text-dark-2);
  font-weight: 500;
  transition: all var(--t-fast);
}

.zona-tag:hover {
  border-color: var(--pool-dark);
  color: var(--pool-dark);
}

.zona-tag--main {
  background: var(--pool-dark);
  border-color: var(--pool-dark);
  color: #fff;
  font-weight: 600;
}

.zona-tag--more {
  border-style: dashed;
  color: var(--text-dark-3);
}


/* ── Proceso ─────────────────────────────────────────────────── */
.proceso-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.proceso-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: var(--space-lg);
}

.proceso-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0,180,216,.15);
  line-height: 1;
  margin-bottom: var(--space-md);
  transition: color var(--t-med);
}

.proceso-step:hover .proceso-num {
  color: var(--pool);
}

.proceso-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
}

.proceso-desc {
  font-size: .875rem;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 200px;
}

.proceso-connector {
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--navy-border), rgba(0,180,216,.2));
  margin-top: calc(3rem + var(--space-md));
  flex-shrink: 0;
}


/* ── Configurador CTA ───────────────────────────────────────── */
.configurador-cta-section {
  background: linear-gradient(135deg, var(--navy-mid) 0%, #0a1628 50%, rgba(0,77,122,.4) 100%);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

.configurador-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* Config preview widget */
.config-preview {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.config-preview-bar {
  display: flex;
  gap: 6px;
  padding: .75rem 1rem;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--navy-border);
}

.cpb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy-border);
}

.cpb-dot:first-child  { background: #f87171; }
.cpb-dot:nth-child(2) { background: #fbbf24; }
.cpb-dot:last-child   { background: #4ade80; }

.config-preview-steps {
  display: flex;
  gap: .375rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--navy-border);
}

.cps {
  padding: .25rem .625rem;
  border-radius: var(--r-sm);
  font-size: .7rem;
  font-weight: 500;
  color: var(--text-3);
  background: transparent;
}

.cps--done {
  background: rgba(0,180,216,.1);
  color: var(--pool);
}

.cps--active {
  background: var(--pool);
  color: #fff;
}

.config-preview-pool {
  padding: var(--space-md);
}

.config-preview-pool svg {
  width: 100%;
  height: auto;
}

.config-preview-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  background: rgba(0,180,216,.06);
  border-top: 1px solid var(--navy-border);
}

.cpp-label {
  font-size: .75rem;
  color: var(--text-3);
}

.cpp-amount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pool);
}


/* ── Testimonios ─────────────────────────────────────────────── */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonio {
  background: #fff;
  border: 1.5px solid #e2eaf2;
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
}

.testimonio:hover {
  border-color: #b8d4e8;
  box-shadow: 0 8px 24px rgba(0,77,122,.1);
  transform: translateY(-2px);
}

.testimonio--featured {
  background: linear-gradient(145deg, var(--navy-mid), var(--navy-card));
  border-color: rgba(0,180,216,.25);
  color: var(--text-1);
}

.testimonio--featured .testimonio-text {
  color: var(--text-2);
}

.testimonio--featured .testimonio-name {
  color: var(--text-1);
}

.testimonio--featured .testimonio-place {
  color: var(--text-3);
}

.testimonio-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: .1em;
}

.testimonio-text {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--text-dark-2);
  font-style: italic;
  flex: 1;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-top: 1px solid #edf2f7;
  padding-top: var(--space-md);
}

.testimonio--featured .testimonio-author {
  border-top-color: var(--navy-border);
}

.testimonio-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pool-dark), var(--pool));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonio-name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-dark-1);
}

.testimonio-place {
  font-size: .8rem;
  color: var(--text-dark-3);
}


/* ── Formulario contacto rápido ─────────────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--space-lg);
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--r);
  transition: border-color var(--t-fast), transform var(--t-fast);
}

.contact-method:hover {
  border-color: rgba(0,180,216,.3);
  transform: translateX(3px);
}

.contact-method-icon {
  font-size: 1.375rem;
  flex-shrink: 0;
}

.contact-split-form {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.quick-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-feedback {
  font-size: .875rem;
  padding: .625rem var(--space-md);
  border-radius: var(--r-sm);
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(34,197,94,.12);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.2);
}

.form-feedback.error {
  display: block;
  background: rgba(239,68,68,.12);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.2);
}


/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid      { grid-template-columns: 1fr; gap: var(--space-lg); }
  .why-layout         { grid-template-columns: 1fr; }
  .configurador-cta-inner { grid-template-columns: 1fr; }
  .configurador-cta-visual { display: none; }
  .testimonios-grid   { grid-template-columns: 1fr; }
  .contact-split      { grid-template-columns: 1fr; }
  .proceso-steps      { flex-direction: column; }
  .proceso-connector  { width: 100%; height: 2px; margin-top: 0; background: linear-gradient(to right, var(--navy-border), rgba(0,180,216,.2)); }
}

@media (max-width: 768px) {
  .hero-pool-visual { display: none; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .why-pillars { grid-template-columns: 1fr; }

  .producto-card { padding: var(--space-lg); }

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

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
