/* Wagner MT — Premium homepage (2026) */

.page-home {
  --surface: #f4f4f5;
  --surface-elevated: #ffffff;
  --ink: #0c0c0c;
  --ink-muted: #5c5c5c;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.page-home #nav.nav-premium .nav-main {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.page-home #nav.nav-premium.scrolled .nav-main {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* ── Hero premium ── */
.page-home #hero.hero-full {
  margin-top: 0;
  min-height: 100svh;
  min-height: 100vh;
  align-items: flex-end;
  padding-bottom: 0;
}

.page-home #hero.hero-full > .container {
  padding-bottom: 100px;
  padding-top: 160px;
}

.page-home .hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.page-home .hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 14ch;
  font-weight: 700;
}

.page-home .hero-title .ht-row2 {
  font-size: 0.92em;
  margin-top: 0.15em;
  font-weight: 700;
  opacity: 0.95;
}

.page-home .hero-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 560px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.page-home #hero.hero-full .hero-shade {
  background: linear-gradient(
    115deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.65) 42%,
    rgba(0, 0, 0, 0.35) 68%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.page-home .hero-slide-label {
  position: absolute;
  bottom: 88px;
  right: 32px;
  left: auto;
  z-index: 3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.page-home .hero-slide.active .hero-slide-label {
  opacity: 1;
}

.page-home .btn {
  border-radius: 100px;
  padding: 16px 32px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* ── Premium stats ── */
.premium-stats {
  padding: 0;
  margin-top: -64px;
  position: relative;
  z-index: 10;
}

.premium-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.premium-stat {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.premium-stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.premium-stat-num {
  font-family: var(--font-h);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}

.premium-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 10px;
  line-height: 1.35;
}

.premium-stat--brand .premium-stat-num {
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}

/* ── Section headers ── */
.section-premium {
  padding: 100px 0;
}

.section-premium-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-premium-head .desc {
  margin-left: auto;
  margin-right: auto;
}

/* ── Digital ecosystem (dark) ── */
.eco-dark {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.eco-dark::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(213, 0, 28, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.eco-dark .section-premium-head .desc {
  color: var(--ink-muted);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.eco-card {
  background: var(--surface-elevated);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
  transition: transform 0.45s var(--ease-out), border-color 0.45s, background 0.45s, box-shadow 0.45s;
}
.eco-card:hover {
  transform: translateY(-8px);
  border-color: rgba(213, 0, 28, 0.25);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.eco-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(213, 0, 28, 0.15);
  color: var(--red-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
}

.eco-card h3 {
  font-family: var(--font-h);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.eco-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.eco-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ── AI Quality section ── */
.ai-section {
  background: var(--surface);
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ai-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ai-visual img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.ai-visual-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-visual-badge strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  margin-bottom: 4px;
}

.ai-visual-badge span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.ai-list {
  margin: 24px 0 32px;
}

.ai-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--ink-muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ai-list li i {
  color: var(--red);
  margin-top: 4px;
}

.ai-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ai-metric {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s var(--ease-out);
}
.ai-metric:hover {
  transform: scale(1.03);
}

.ai-metric-val {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.ai-metric-lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* ── Certificates premium ── */
.certs-premium-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cert-premium {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.cert-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

.cert-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.cert-premium:hover::before {
  transform: scaleX(1);
}

.cert-premium i {
  font-size: 36px;
  color: var(--red);
  margin-bottom: 20px;
}

.cert-premium h3 {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cert-premium p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ── Gallery preview ── */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.gf-btn {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-muted);
  cursor: pointer;
  transition: var(--trans);
}

.gf-btn:hover,
.gf-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-preview .gal-prev-item {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: block;
  background: var(--dark2);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}

.gallery-preview .gal-prev-item.is-hidden {
  display: none;
}

.gallery-preview .gal-prev-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease-out);
}

.gallery-preview .gal-prev-item:hover img {
  transform: scale(1.05);
}

.gal-prev-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s;
}

.gallery-preview .gal-prev-item:hover .gal-prev-cap {
  opacity: 1;
}

/* ── References TEMSA featured ── */
.ref-featured {
  background: var(--white);
}

.ref-hero-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
}

.ref-hero-card img {
  max-height: 80px;
  width: auto;
  margin: 0 auto;
}

.ref-hero-card h3 {
  font-family: var(--font-h);
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.ref-logos-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ref-logo-mini {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.35s var(--ease-out);
}

.ref-logo-mini:hover {
  transform: translateY(-4px);
}

.ref-logo-mini img {
  max-height: 48px;
  margin: 0 auto 12px;
}

/* ── Contact home ── */
.contact-home {
  background: var(--dark);
  color: var(--white);
}

.contact-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-home-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-home-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}

.contact-info-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.contact-info-card i {
  color: var(--red-lt);
  font-size: 18px;
  margin-top: 2px;
}

.contact-home-form-wrap {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.contact-home-form-wrap .cf-row input,
.contact-home-form-wrap .cf-row textarea,
.contact-home-form-wrap .cf-row select {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.contact-home-form-wrap label {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .premium-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-premium-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-preview { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .page-home #hero.hero-full > .container {
    padding-top: 130px;
    padding-bottom: 80px;
  }
  .premium-stats { margin-top: -40px; }
  .premium-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid,
  .contact-home-grid,
  .ref-hero-card {
    grid-template-columns: 1fr;
  }
  .ref-hero-card { padding: 32px 24px; text-align: center; }
  .ref-logos-row { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: 1fr; }
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
  .section-premium { padding: 72px 0; }
}

@media (max-width: 480px) {
  .premium-stats-grid { grid-template-columns: 1fr; }
  .certs-premium-grid { grid-template-columns: 1fr; }
  .gallery-preview { grid-template-columns: 1fr; }
  .ai-metrics { grid-template-columns: 1fr; }
}
