/* ==========================================================================
   PYRESA DF — Pisos y Resinas Industriales BHAR
   Hoja de estilos principal
   ========================================================================== */

:root {
  --navy-900: #0b1624;
  --navy-800: #112236;
  --navy-700: #1a3250;
  --steel-500: #5b6b7f;
  --steel-300: #aab6c5;
  --steel-100: #eef2f6;
  --white: #ffffff;
  --amber-500: #f5b301;
  --amber-600: #d99a00;
  --cyan-400: #2bc4d8;
  --text: #1c2733;
  --text-muted: #5b6b7f;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 6px rgba(11, 22, 36, .06);
  --shadow: 0 12px 32px rgba(11, 22, 36, .10);
  --shadow-lg: 0 24px 60px rgba(11, 22, 36, .18);
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: "Manrope", "Inter", sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy-900);
  letter-spacing: -.02em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--steel-300);
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a:hover { color: var(--amber-500); }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; fill: var(--amber-500); }

/* ---------- Encabezado / navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(11, 22, 36, .06);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center;
  color: var(--amber-500);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: inset 0 -3px 0 var(--amber-500);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy-900);
  letter-spacing: .02em;
}
.brand-name span { color: var(--amber-600); }
.brand-sub { font-size: .72rem; color: var(--text-muted); letter-spacing: .04em; }

.nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--navy-800);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--steel-100); }
.nav a[aria-current="page"] { color: var(--amber-600); font-weight: 600; }
.nav .nav-cta a {
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 20px;
}
.nav .nav-cta a:hover { background: var(--amber-500); color: var(--navy-900); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  border-radius: 10px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy-900);
  margin: 0 auto;
  position: relative;
  transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber-500); color: var(--navy-900); box-shadow: 0 10px 24px rgba(245, 179, 1, .35); }
.btn-primary:hover { background: #ffc21a; }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy-900); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100vh - var(--header-h) - 40px), 820px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 22, 36, .94) 0%, rgba(11, 22, 36, .78) 45%, rgba(11, 22, 36, .35) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-content { max-width: 700px; padding: 80px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--amber-500); }
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, .82);
  max-width: 600px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  color: var(--white);
}
.hero-stats span { font-size: .85rem; color: rgba(255, 255, 255, .65); }

/* Hero compacto para páginas internas */
.page-hero {
  position: relative;
  padding: 110px 0 90px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero-bg { animation: none; transform: none; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11, 22, 36, .95), rgba(11, 22, 36, .65));
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 640px; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255, 255, 255, .6); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--amber-500); }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--steel-100); }
.section-dark { background: var(--navy-900); color: rgba(255, 255, 255, .8); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::after { content: ""; width: 32px; height: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }

/* ---------- Tarjetas Misión / Visión / Quiénes somos ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 22, 36, .05);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--amber-500), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover::after { transform: scaleX(1); }
.card-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  margin-bottom: 24px;
}
.card-icon svg { width: 28px; height: 28px; fill: var(--amber-500); }
.card h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.card p { color: var(--text-muted); margin-bottom: .8em; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Bloque split (imagen + texto) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.split-media .badge {
  position: absolute;
  bottom: -26px; right: -18px;
  background: var(--amber-500);
  color: var(--navy-900);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  max-width: 230px;
  line-height: 1.3;
}
.split-media .badge small { display: block; font-weight: 600; font-size: .78rem; opacity: .75; margin-top: 4px; }
.split-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.split-body p { color: var(--text-muted); font-size: 1.06rem; text-align: justify; }

.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-list li::before {
  content: "";
  flex: 0 0 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--amber-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b1624' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Clientes ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.client {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  padding: 26px 18px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.client:hover { background: rgba(245, 179, 1, .08); border-color: var(--amber-500); transform: translateY(-4px); }
.client strong {
  font-family: "Manrope", sans-serif;
  color: var(--white);
  font-size: 1.02rem;
  line-height: 1.25;
}
.client span { font-size: .78rem; color: rgba(255, 255, 255, .55); }
.clients-note { margin-top: 26px; font-size: .82rem; color: rgba(255, 255, 255, .45); text-align: center; }

/* ---------- Servicios / productos ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-img { overflow: hidden; aspect-ratio: 16 / 10; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feature:hover .feature-img img { transform: scale(1.06); }
.feature-body { padding: 28px 28px 32px; flex: 1; }
.feature-body h3 { font-size: 1.25rem; font-weight: 800; }
.feature-body p { color: var(--text-muted); margin: 0; }

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative;
  border-radius: 22px;
  padding: 64px 56px;
  background:
    radial-gradient(circle at 90% 10%, rgba(43, 196, 216, .25), transparent 40%),
    linear-gradient(120deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .72); margin: 0; max-width: 560px; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.contact-list { display: grid; gap: 18px; }
.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 22, 36, .06);
}
.contact-item .card-icon { width: 50px; height: 50px; margin: 0; flex: 0 0 50px; }
.contact-item .card-icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--text-muted); margin: 0; }
.contact-item a:hover { color: var(--amber-600); }
.map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Pie de página ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .65);
  padding: 80px 0 0;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 56px;
}
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-sub { color: rgba(255, 255, 255, .5); }
.site-footer h4 {
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 20px;
}
.footer-about { margin-top: 20px; max-width: 360px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a:hover { color: var(--amber-500); }
.footer-contact p { margin: 0 0 10px; display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--amber-500); flex: 0 0 16px; margin-top: 4px; }
.footer-contact .hl { color: #fbcf19; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 22px 0;
  font-size: .8rem;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--amber-500); }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .split { gap: 48px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(11, 22, 36, .08);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .nav-open .nav { max-height: 420px; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; }
  .nav a { border-radius: var(--radius-sm); padding: 14px 16px; }
  .nav .nav-cta a { text-align: center; margin-top: 8px; }

  .cards-3, .feature-grid { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split-media .badge { right: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 72px 0; }
  .cta-band { padding: 44px 28px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .topbar-info span.hide-sm { display: none; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 24px; }
  .brand-sub { display: none; }
}
