/* =========================================================
   GRAFAST — Hoja de estilos externa
   Inspirado en la estructura de roofingperu.com
   ========================================================= */

:root {
  --navy-950: #140b2e;
  --navy-900: #1c1044;
  --navy-800: #281a5c;
  --navy-700: #362578;
  --blue-600: #2f6fed;
  --orange-500: #17d9a6;
  --orange-600: #0fb383;
  --orange-100: #d7fbf0;
  --amber-700: #2f5fdb;
  --gray-50: #f6f8f9;
  --gray-100: #eef1f3;
  --gray-300: #cdd6dc;
  --gray-500: #6b7c88;
  --gray-700: #3a4750;
  --white: #ffffff;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(20, 11, 46, 0.08);
  --shadow-md: 0 10px 30px rgba(20, 11, 46, 0.12);
  --shadow-lg: 0 20px 50px rgba(20, 11, 46, 0.18);
  --transition: all 0.3s ease;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-950);
  line-height: 1.2;
  font-weight: 700;
}

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

.eyebrow {
  display: inline-block;
  color: var(--amber-700);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero .eyebrow,
.section-head--light .eyebrow { color: var(--orange-500); }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange-500);
  color: var(--navy-950);
  box-shadow: 0 8px 20px rgba(23, 217, 166, 0.35);
}
.btn--primary:hover { background: var(--orange-600); transform: translateY(-2px); }

.btn--outline {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
}
.btn--whatsapp:hover { background: #1fb959; transform: translateY(-2px); }

.btn--block { width: 100%; justify-content: center; }

/* ===== ICONOS DE CONTACTO EN HEADER ===== */
.header__contact-icons { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.05rem;
  color: var(--white);
  transition: var(--transition);
}
.icon-btn--whatsapp { background: #25d366; }
.icon-btn--whatsapp:hover { background: #1fb959; transform: translateY(-2px); }
.icon-btn--phone,
.icon-btn--mail { background: rgba(255,255,255,0.08); }
.icon-btn--phone:hover,
.icon-btn--mail:hover { background: var(--orange-500); color: var(--navy-950); transform: translateY(-2px); }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--navy-950);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}

.logo { display: flex; align-items: center; }
.logo img { height: 54px; width: auto; }

.nav__list { display: flex; gap: 34px; }
.nav__link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-100);
  padding: 10px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link.active,
.nav__link:hover { color: var(--orange-500); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange-500);
  transition: var(--transition);
}
.nav__link.active::after,
.nav__link:hover::after { width: 100%; }

.has-dropdown { position: relative; }
/* Menú en cascada: primero solo las categorías, al pasar por una salen sus productos */
.dropdown {
  position: absolute;
  top: 100%; left: 0;
  width: 270px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 10px;
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown__col { position: relative; }
.dropdown__title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--navy-800);
  transition: var(--transition);
}
.dropdown__title i:first-child { color: var(--orange-500); font-size: 0.9rem; width: 18px; text-align: center; }
.dropdown__title .fa-chevron-right { margin-left: auto; font-size: 0.7rem; color: var(--gray-300); transition: var(--transition); }
.dropdown__col:hover > .dropdown__title { background: var(--gray-50); color: var(--amber-700); }
.dropdown__col:hover > .dropdown__title .fa-chevron-right { color: var(--amber-700); }
.dropdown__col ul {
  position: absolute;
  top: -10px; left: 100%;
  min-width: 230px;
  margin-left: 10px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden;
  transform: translateX(-8px);
  transition: var(--transition);
}
/* puente invisible para no perder el hover al cruzar el hueco */
.dropdown__col ul::before { content: ''; position: absolute; left: -12px; top: 0; width: 12px; height: 100%; }
.dropdown__col:hover > ul { opacity: 1; visibility: visible; transform: translateX(0); }
.dropdown__col ul a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.84rem;
  color: var(--gray-700);
  font-weight: 500;
}
.dropdown__col ul a:hover { background: var(--gray-50); color: var(--amber-700); }
.dropdown__all {
  display: block;
  margin-top: 6px;
  padding: 10px 12px 4px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber-700);
}

.header__actions { display: flex; align-items: center; gap: 18px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px 8px;
  margin: -14px -8px;
}
.nav__toggle span {
  width: 30px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
}
/* relleno de respaldo (pantallas muy anchas o muy angostas), continuación borrosa de la misma foto */
.hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('../img/fondo2-wide.jpeg') center/cover no-repeat;
  filter: blur(40px) brightness(0.55) saturate(1.15);
  transform: scale(1.12);
  z-index: 0;
}
/* foto completa, sin recortar, con los costados extendidos como continuación de la misma imagen */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/fondo2-wide.jpeg') center/contain no-repeat;
  z-index: 1;
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(120deg, rgba(20,11,46,0.88) 0%, rgba(28,16,68,0.6) 55%, rgba(23,217,166,0.25) 100%),
    radial-gradient(circle at 80% 20%, rgba(47,111,237,0.28), transparent 55%);
}
.hero__content { position: relative; z-index: 3; max-width: 720px; padding: 100px 24px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 14px 0 20px;
}
.hero h1 span { color: var(--orange-500); }
.hero p { font-size: 1.05rem; color: var(--gray-100); max-width: 580px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__scroll {
  position: absolute;
  z-index: 3;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
  opacity: 0.8;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ===== STATS ===== */
.stats {
  background: var(--navy-900);
  padding: 46px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat__number, .stat__suffix {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
}
.stat__suffix { color: var(--orange-500); }
.stat p { color: var(--gray-300); font-size: 0.9rem; margin-top: 6px; }

/* ===== SECTION HEAD ===== */
.section-head { max-width: 620px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--gray-500); }
.section-head--light h2 { color: var(--white); }
.section-head--light p { color: var(--gray-300); }

/* ===== ABOUT ===== */
.about { padding: 100px 0; background: var(--white); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.about__badge {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}
.about__badge i { font-size: 1.6rem; color: var(--orange-500); }
.about__badge strong { display: block; font-size: 0.9rem; color: var(--navy-950); }
.about__badge span { font-size: 0.78rem; color: var(--gray-500); }

.about__text .lead { font-size: 1.1rem; color: var(--navy-800); font-weight: 600; margin-bottom: 14px; }
.about__text > p { margin-bottom: 20px; }
.about__text h2 { margin-bottom: 14px; }

.check-list { margin: 20px 0 28px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--navy-800);
}
.check-list i { color: var(--amber-700); }

/* ===== PRODUCTS ===== */
.products { padding: 100px 0; background: var(--gray-50); }

.link-arrow { color: var(--amber-700); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow i { transition: var(--transition); }
.link-arrow:hover i { transform: translateX(4px); }

/* ===== WHY ===== */
.why { background: var(--navy-950); padding: 100px 0; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  transition: var(--transition);
}
.why-card:hover { background: rgba(23,217,166,0.12); border-color: var(--orange-500); transform: translateY(-6px); }
.why-card i { font-size: 1.8rem; color: var(--orange-500); margin-bottom: 16px; }
.why-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.why-card p { color: var(--gray-300); font-size: 0.9rem; }

/* ===== PROJECTS ===== */
.projects { padding: 100px 0; background: var(--white); }
.projects__filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--amber-700); color: var(--amber-700); }
.filter-btn.active { background: var(--orange-500); border-color: var(--orange-500); color: var(--navy-950); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.project-card:hover img { transform: scale(1.1); }
.project-card .ver-album {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(20, 11, 46, 0.65);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  z-index: 1;
}
.project-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,11,46,0.92) 0%, rgba(20,11,46,0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
}
.project-card .tag {
  align-self: flex-start;
  background: var(--orange-500);
  color: var(--navy-950);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.project-card h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 6px; }
.project-card span { font-size: 0.82rem; color: var(--gray-300); }
.project-card.hide { display: none; }

/* ===== ÁLBUM DE FOTOS DE PROYECTOS ===== */
.album-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 11, 46, 0.92);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.album-contenido {
  position: relative;
  width: 700px;
  max-width: 90%;
  text-align: center;
}

#imagenAlbum {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--navy-950);
}

.album-titulo {
  color: var(--white);
  font-family: var(--font-head);
  margin-top: 14px;
  font-size: 0.95rem;
}

.album-overlay .cerrar {
  position: absolute;
  right: -10px;
  top: -45px;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

.album-overlay .anterior,
.album-overlay .siguiente {
  position: absolute;
  top: 45%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  border: none;
  font-size: 26px;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
}
.album-overlay .anterior:hover,
.album-overlay .siguiente:hover { background: var(--orange-500); color: var(--navy-950); }
.album-overlay .anterior { left: -25px; }
.album-overlay .siguiente { right: -25px; }

.miniaturas {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.miniaturas img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: var(--transition);
}
.miniaturas img:hover { opacity: 1; }
.miniaturas img.activa { opacity: 1; border-color: var(--orange-500); }

@media (max-width: 600px) {
  .album-overlay .cerrar { top: -38px; right: 0; font-size: 32px; }
  .album-overlay .anterior { left: 4px; }
  .album-overlay .siguiente { right: 4px; }
}

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--navy-900); padding: 100px 0; }
.testimonial-slider { max-width: 720px; margin: 0 auto; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial { min-width: 100%; text-align: center; padding: 0 20px; }
.testimonial p {
  font-size: 1.2rem;
  color: var(--white);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.7;
}
.testimonial__author strong { display: block; color: var(--orange-500); font-size: 1rem; }
.testimonial__author span { color: var(--gray-300); font-size: 0.85rem; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testimonial-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
}
.testimonial-dots span.active { background: var(--orange-500); width: 24px; border-radius: 5px; }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; background: var(--gray-50); }
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact__info h2 { margin-bottom: 16px; }
.contact__info > p { color: var(--gray-500); margin-bottom: 30px; }
.contact__list { margin-bottom: 30px; }
.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-weight: 500;
  color: var(--navy-800);
}
.contact__list i { color: var(--amber-700); width: 20px; text-align: center; }

.contact__form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--navy-950);
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber-700);
  box-shadow: 0 0 0 3px rgba(47,95,219,0.2);
}
.form-group textarea { resize: vertical; }
.form-group.error input,
.form-group.error select,
.form-group.error textarea { border-color: #d64545; }
.form-error {
  display: block;
  color: #d64545;
  font-size: 0.78rem;
  margin-top: 6px;
  min-height: 14px;
}
.form-success {
  display: none;
  margin-top: 16px;
  background: #e6f7ec;
  color: #1c7c3f;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  text-align: center;
}
.form-success.show { display: block; }

/* ===== CATÁLOGO DE PRODUCTOS ===== */
.catalog-hero { padding: 80px 0 40px; background: var(--gray-50); text-align: center; }
.catalog-hero .section-head { margin-bottom: 0; }

.catalog-category { padding: 70px 0; background: var(--white); }
.catalog-category--alt { background: var(--gray-50); }

.catalog-category__header { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.catalog-category__header i { font-size: 1.8rem; color: var(--amber-700); }
.catalog-category__header h2 { font-size: 1.5rem; margin: 0; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ===== HERO SERVICIOS ===== */
.hero-servicios {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(20,11,46,0.90) 0%, rgba(28,16,68,0.82) 55%, rgba(23,217,166,0.30) 100%),
    url('../img/Fondo.jpeg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
}
.hero-servicios__inner { max-width: 720px; margin: 0 auto; padding: 90px 24px 70px; }
.hero-servicios .eyebrow { color: var(--orange-500); }
.hero-servicios h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 14px 0 6px;
}
.hero-servicios h1 span {
  display: block;
  color: var(--orange-500);
  font-size: 0.55em;
  font-weight: 600;
  margin-top: 8px;
}
.hero-servicios p { font-size: 1.05rem; color: var(--gray-100); max-width: 560px; margin: 20px auto 30px; }

/* ===== CATEGORIAS OVERVIEW ===== */
.category-section { padding: 80px 0; background: var(--white); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 900px;
  margin: 0 auto;
}
.category-card.product-card { height: 300px; }
@media (max-width: 640px) {
  .category-grid { grid-template-columns: 1fr; }
}

/* ===== CTA BANNER (intermedio y final) ===== */
.cta-banner { background: var(--navy-950); padding: 64px 0; text-align: center; }
.cta-banner h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta-banner p { color: var(--gray-300); max-width: 560px; margin: 0 auto 26px; }

/* ===== NUESTRO PROCESO ===== */
.process { padding: 90px 0; background: var(--gray-50); }
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 32px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.process-step i { font-size: 1.5rem; color: var(--orange-500); margin-bottom: 10px; }
.process-step__num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy-950);
  margin-bottom: 6px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--gray-500); }
@media (max-width: 860px) { .process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process__grid { grid-template-columns: 1fr; } }

/* ===== PRODUCT CARD (reveal on hover) ===== */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,20,22,.9) 0%, rgba(20,20,22,.55) 38%, rgba(20,20,22,.05) 68%, rgba(20,20,22,0) 100%);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-card:hover::before { background: rgba(20,20,22,.82); }

.product-card__cta {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.5);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  transition: var(--transition);
}
.product-card:hover .product-card__cta { background: #25d366; border-color: #25d366; }

.product-card__info { position: relative; z-index: 1; padding: 18px; }
.product-card__title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}
.product-card__title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 40px;
  background: var(--amber-700);
}
.product-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .85rem;
  line-height: 1.4;
  color: rgba(255,255,255,.9);
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
}
.product-card:hover .product-card__desc { max-height: 4.6em; opacity: 1; margin-top: 10px; }

@media (max-width: 860px) {
  .product-card__desc { max-height: 4.6em; opacity: 1; margin-top: 10px; }
  .product-card::before { background: rgba(20,20,22,.75); }
}

.products__more { text-align: center; margin-top: 44px; }

/* ===== PRODUCT ITEM (catálogo: imagen + cuadro con opciones y cotizar) ===== */
.product-item {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.product-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* Tarjetas enlazadas desde el menú (#emulsiones, etc.): que no queden bajo la cabecera fija */
.product-item[id] { scroll-margin-top: 96px; }
.product-item__img {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
}
.product-item__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 18px; }
.product-item__title {
  position: relative;
  padding-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}
.product-item__title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 40px;
  background: var(--amber-700);
}
.product-item__desc { font-size: .87rem; line-height: 1.5; color: var(--gray-500); }
.product-item__cta { margin-top: auto; padding: 11px 20px; font-size: .9rem; }

.product-options { border-top: 1px solid var(--gray-100); padding-top: 12px; }
.product-options__label {
  display: block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.product-options__label strong { color: var(--navy-950); text-transform: none; letter-spacing: 0; font-size: .88rem; }
.product-options__list { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-700);
  font: 500 .82rem var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}
.option-btn:hover { border-color: var(--orange-500); }
.option-btn.is-active {
  border-color: var(--orange-500);
  background: var(--orange-100);
  color: var(--navy-950);
  font-weight: 600;
}
.option-btn__swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.option-btn i { font-size: .8rem; color: var(--gray-500); }

/* ===== FLIP CARDS: LO QUE OFRECEMOS ===== */
.offer-flip-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 640px;
  margin: 0 auto;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 320px;
  perspective: 1200px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  box-shadow: var(--shadow-lg);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.flip-card-front {
  background-size: cover;
  background-position: center;
}
.flip-card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,11,46,0.05) 30%, rgba(20,11,46,0.92) 100%);
}
.flip-card-front__content {
  position: relative;
  z-index: 1;
  padding: 26px 24px;
  text-align: left;
  color: var(--white);
}
.flip-card-front__content h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--white);
}

.flip-card-back {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: var(--white);
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
  padding: 32px 28px;
  gap: 14px;
  border: 1px solid rgba(23,217,166,0.35);
}
.flip-card-back h3 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--orange-500);
}
.flip-card-back p {
  font-size: 0.92rem;
  color: var(--gray-300);
  margin: 0;
}
.flip-card-back .btn {
  margin-top: 6px;
}

/* ===== FOOTER ===== */
.footer { background: var(--navy-950); padding: 80px 0 0; }
.footer__logo img { height: 96px; width: auto; margin-bottom: 6px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__col p { color: var(--gray-300); font-size: 0.9rem; margin-top: 14px; }
.footer__col h4 { color: var(--white); font-size: 1rem; margin-bottom: 20px; }
.footer__col ul li { margin-bottom: 12px; }
.footer__col ul li a { color: var(--gray-300); font-size: 0.9rem; transition: var(--transition); }
.footer__col ul li a:hover { color: var(--orange-500); padding-left: 4px; }

.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}
.footer__social a:hover { background: var(--orange-500); color: var(--navy-950); }

.footer__newsletter { display: flex; margin-top: 16px; }
.footer__newsletter input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.85rem;
}
.footer__newsletter input::placeholder { color: var(--gray-500); }
.footer__newsletter button {
  background: var(--orange-500);
  color: var(--navy-950);
  padding: 0 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: var(--transition);
}
.footer__newsletter button:hover { background: var(--orange-600); }

.footer__bottom { padding: 22px 0; }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__bottom p { color: var(--gray-500); font-size: 0.8rem; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 140px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 998;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--orange-600); }

/* ===== REDES SOCIALES FLOTANTES (menú circular) ===== */
.social-float-wrap {
  position: fixed;
  bottom: 16px; right: 16px;
  z-index: 1000;
  pointer-events: none;
}
.social-circle{
  --wa:#25D366;
  --fb:#1877F2;
  --ig:linear-gradient(135deg,#F9CE34,#EE2A7B,#6228D7);
  --tt:linear-gradient(135deg,#25F4EE,#010101 45%,#FE2C55);

  position:relative;
  width:108px;
  height:108px;
  pointer-events:auto;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;
  background:#ffffff;
  border:1px solid rgba(15,15,20,.08);
  box-shadow:
    0 16px 36px -18px rgba(15,15,25,.28),
    inset 0 0 0 1px rgba(255,255,255,.7);
  transition:border-color .3s ease, box-shadow .3s ease;
}
.social-circle:hover{
  border-color:rgba(15,15,20,.14);
  box-shadow:0 20px 42px -18px rgba(15,15,25,.32), inset 0 0 0 1px rgba(255,255,255,.7);
}

.social-circle a{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  text-decoration:none;
  isolation:isolate;
}

.social-circle a::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:#ffffff;
}

.social-circle a::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  opacity:0;
  transition:opacity .35s ease;
}
.social-circle a:hover::after{ opacity:1; }

.social-circle .whatsapp::after{ background:var(--wa); }
.social-circle .facebook::after{ background:var(--fb); }
.social-circle .instagram::after{ background:var(--ig); }
.social-circle .tiktok::after{ background:var(--tt); }

.social-circle svg{
  position:relative;
  z-index:2;
  width:14px;
  height:14px;
  fill:#9aa1ab;
  transition:fill .3s ease, transform .3s ease;
}
.social-circle a:hover svg{ fill:#ffffff; }

.social-circle .whatsapp{ border-radius:0 0 19px 0; }
.social-circle .facebook{ border-radius:0 0 0 19px; }
.social-circle .instagram{ border-radius:0 19px 0 0; }
.social-circle .tiktok{ border-radius:19px 0 0 0; }

.social-circle .whatsapp svg{ transform:translate(4px,4px); }
.social-circle .facebook svg{ transform:translate(-4px,4px); }
.social-circle .instagram svg{ transform:translate(4px,-4px); }
.social-circle .tiktok svg{ transform:translate(-4px,-4px); }
.social-circle .whatsapp:hover svg{ transform:translate(4px,4px) scale(1.12); }
.social-circle .facebook:hover svg{ transform:translate(-4px,4px) scale(1.12); }
.social-circle .instagram:hover svg{ transform:translate(4px,-4px) scale(1.12); }
.social-circle .tiktok:hover svg{ transform:translate(-4px,-4px) scale(1.12); }

.social-circle .divider{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(15,15,20,.08) calc(50% - 1px), rgba(15,15,20,.08) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(15,15,20,.08) calc(50% - 1px), rgba(15,15,20,.08) calc(50% + 1px), transparent calc(50% + 1px));
  -webkit-mask-image:radial-gradient(circle at 50% 50%, transparent 20px, #000 22px);
  mask-image:radial-gradient(circle at 50% 50%, transparent 20px, #000 22px);
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HEADER SCROLLED STATE ===== */
.header.scrolled { box-shadow: var(--shadow-md); }

/* ===== MENÚ MÓVIL ABIERTO: bloquea el scroll y oculta widgets flotantes ===== */
body.nav-open { overflow: hidden; }
body.nav-open .social-float-wrap,
body.nav-open .back-to-top { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 80%);
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 100px 30px 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: right 0.35s ease;
  }
  .nav.open { right: 0; }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__link { color: var(--navy-800); padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
  .has-dropdown .nav__link i { transition: transform 0.3s ease; }
  .has-dropdown.open .nav__link i { transform: rotate(180deg); }
  .dropdown,
  .has-dropdown:hover .dropdown {
    position: static; width: auto; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding: 0 0 0 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }
  .has-dropdown.open .dropdown,
  .has-dropdown.open:hover .dropdown { max-height: 900px; padding: 8px 0 10px 4px; }
  /* en móvil cada categoría se despliega al tocarla */
  .dropdown__title { padding: 10px 8px; }
  .dropdown__col:hover > .dropdown__title { background: none; color: var(--navy-800); }
  .dropdown__col.open > .dropdown__title { color: var(--amber-700); }
  .dropdown__title .fa-chevron-right { transform: rotate(90deg); }
  .dropdown__col.open > .dropdown__title .fa-chevron-right { transform: rotate(-90deg); color: var(--amber-700); }
  .dropdown__col ul,
  .dropdown__col:hover > ul {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-radius: 0;
    margin: 0 0 0 16px;
    padding: 0 0 0 12px;
    border-left: 2px solid var(--gray-100);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .dropdown__col ul::before { display: none; }
  .dropdown__col.open > ul { max-height: 300px; margin-bottom: 6px; }
  .nav__toggle { display: flex; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .why__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__content { padding: 140px 24px 80px; }
  .catalog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .social-float-wrap { bottom: 10px; right: 10px; }
  .social-circle { width: 79px; height: 79px; }
  .social-circle svg { width: 11px; height: 11px; }
  .social-circle .whatsapp{ border-radius:0 0 13px 0; }
  .social-circle .facebook{ border-radius:0 0 0 13px; }
  .social-circle .instagram{ border-radius:0 13px 0 0; }
  .social-circle .tiktok{ border-radius:13px 0 0 0; }
  .social-circle .whatsapp svg{ transform:translate(3px,3px); }
  .social-circle .facebook svg{ transform:translate(-3px,3px); }
  .social-circle .instagram svg{ transform:translate(3px,-3px); }
  .social-circle .tiktok svg{ transform:translate(-3px,-3px); }
  .social-circle .divider{
    -webkit-mask-image:radial-gradient(circle at 50% 50%, transparent 14px, #000 16px);
    mask-image:radial-gradient(circle at 50% 50%, transparent 14px, #000 16px);
  }
}
