/* =========================================================
   Glasscor Security — Main Stylesheet
   ========================================================= */

/* --- Variables ----------------------------------------- */
:root {
  --navy:        #0d1e3a;
  --navy-light:  #132a50;
  --blue:        #1354a3;
  --orange:      #e87500;
  --orange-h:    #cf6900;
  --orange-lt:   #ffa72e;
  --white:       #ffffff;
  --off-white:   #f4f6f9;
  --text:        #1a2332;
  --text-md:     #4a5568;
  --text-lt:     #718096;
  --border:      #e2e8f0;
  --shadow:      0 4px 24px rgba(13,30,58,.12);
  --shadow-lg:   0 8px 40px rgba(13,30,58,.18);
  --radius:      6px;
  --radius-lg:   12px;
  --transition:  .25s ease;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --max-w:       1200px;
}

/* --- Skip link (accesibilidad WCAG 2.4.1) ------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--orange);
  color: var(--white);
  padding: 12px 24px;
  font-size: .9rem;
  font-weight: 700;
  z-index: 10000;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; outline: 3px solid var(--white); outline-offset: 2px; }

/* --- Focus visible (WCAG 2.4.7 / 2.4.11) ------------- */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Suprimir outline por defecto solo cuando hay :focus-visible */
:focus:not(:focus-visible) { outline: none; }

/* --- Base ---------------------------------------------- */
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
}

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

.section { padding: 90px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--light { background: var(--off-white); }

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 20px;
}
.section-title--white { color: var(--white); }
.section-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  background: var(--orange);
  margin-top: 16px;
  border-radius: 2px;
}
.section-title.centered { text-align: center; }
.section-title.centered::after { margin-left: auto; margin-right: auto; }
.section-desc {
  font-size: 1.05rem;
  color: var(--text-md);
  max-width: 640px;
  line-height: 1.75;
}
.section-desc--center { margin: 0 auto; text-align: center; }
.section-desc--white { color: rgba(255,255,255,.8); }

/* --- Buttons ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(232,117,0,.35);
}
.btn-primary:hover { background: var(--orange-h); box-shadow: 0 4px 20px rgba(232,117,0,.45); }

.btn-secondary {
  background: var(--white);
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-secondary:hover { background: var(--orange); color: var(--white); }

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

.btn-lg { padding: 17px 36px; font-size: 1rem; }

/* --- Navigation ---------------------------------------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 20px 0;
}
#site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding: 12px 0;
}
#site-header.hero-transparent { background: transparent; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}
#site-header.scrolled .nav-logo img { filter: brightness(0) invert(1); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav-link.active { color: var(--orange-lt); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: .875rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown a:hover { background: var(--off-white); color: var(--orange); }
.nav-dropdown .dropdown-cat {
  padding: 8px 20px 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-lt);
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.nav-dropdown .dropdown-cat:first-child { border-top: none; margin-top: 0; }

.nav-cta { margin-left: 12px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ---------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-product-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  overflow: hidden;
}
.hero-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,30,58,1) 35%,
    rgba(13,30,58,.75) 58%,
    rgba(13,30,58,.1) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 100px;
  max-width: 620px;
}
.hero-sub {
  font-size: .98rem;
  color: rgba(255,255,255,.75);
  max-width: 540px;
  line-height: 1.7;
  margin-top: -28px;
  margin-bottom: 36px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,117,0,.2);
  border: 1px solid rgba(232,117,0,.4);
  color: var(--orange-lt);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 28px;
  max-width: 760px;
}
.hero-title em {
  font-style: normal;
  color: var(--orange-lt);
}
.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--orange-lt);
  line-height: 1;
}
.hero-stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

/* --- Features Strip ------------------------------------ */
.features-strip {
  background: var(--navy);
  padding: 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--orange);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  border-right: 1px solid rgba(255,255,255,.1);
  transition: background var(--transition);
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: rgba(255,255,255,.05); }
.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.feature-text strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
}
.feature-text span {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}

/* --- About Section ------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform .5s ease;
}
.about-img-wrap:hover img { transform: scale(1.04); }
.about-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 22px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.about-badge strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.about-badge span { font-size: .8rem; font-weight: 600; }
.about-list { margin: 28px 0; display: grid; gap: 14px; }
.about-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: var(--text-md);
}
.about-list-item::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  margin-top: 1px;
}

/* --- Products Section ---------------------------------- */
.products-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 22px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-md);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 30px;
  transition: all var(--transition);
}
.tab-btn:hover { border-color: var(--orange); color: var(--orange); }
.tab-btn.active { background: var(--orange); color: var(--white); border-color: var(--orange); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img { transform: scale(1.06); }
.product-card-img-wrap { overflow: hidden; }
.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.product-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}
.product-card-desc {
  font-size: .88rem;
  color: var(--text-md);
  line-height: 1.65;
  flex: 1;
}
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--orange);
  transition: gap var(--transition);
}
.product-card-link:hover { gap: 10px; }

/* --- Values Section ------------------------------------ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.value-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  transition: background var(--transition), transform var(--transition);
}
.value-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}
.value-icon {
  font-size: 2.6rem;
  margin-bottom: 20px;
  display: block;
}
.value-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.value-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
}

/* --- Stats Section ------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 56px 32px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  color: var(--orange-lt);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* --- Projects / References ----------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover img { transform: scale(1.08); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,30,58,.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-title { color: var(--white); font-weight: 700; font-size: 1.05rem; }
.project-card-subtitle { color: rgba(255,255,255,.7); font-size: .85rem; margin-top: 4px; }

/* --- Certifications ------------------------------------ */
.cert-grid {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.cert-item img {
  height: 80px;
  width: auto;
  filter: grayscale(30%);
  transition: filter var(--transition), transform var(--transition);
}
.cert-item:hover img { filter: grayscale(0); transform: scale(1.05); }
.cert-item span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-md);
  max-width: 140px;
}

/* --- CTA Section --------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--orange) 0%, #c06000 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: var(--white); color: var(--orange); font-weight: 700; }
.btn-white:hover { background: var(--off-white); }

/* --- Contact Info Cards -------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info-list { display: grid; gap: 24px; margin-bottom: 40px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(232,117,0,.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.contact-info-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}
.contact-info-value {
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
}

/* --- Form ---------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-label .required { color: var(--orange); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(19,84,163,.12);
}
.form-control.error { border-color: #e53e3e; }
.form-error { font-size: .8rem; color: #e53e3e; margin-top: 5px; display: none; }
.form-error.visible { display: block; }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px;
  accent-color: var(--orange);
  margin-top: 2px;
}
.form-check-label { font-size: .87rem; color: var(--text-md); line-height: 1.5; }
.form-check-label a { color: var(--orange); font-weight: 600; }
.form-check-label a:hover { text-decoration: underline; }
.form-success {
  display: none;
  background: #f0fff4;
  border: 1px solid #68d391;
  color: #276749;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  margin-top: 16px;
}

/* --- Footer -------------------------------------------- */
#site-footer {
  background: #071427;
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}
.footer-about {
  font-size: .875rem;
  line-height: 1.75;
  color: rgba(255,255,255,.6);
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  transition: background var(--transition), color var(--transition);
}
.social-btn:hover { background: var(--orange); color: var(--white); }
.footer-col-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links { display: grid; gap: 10px; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange-lt); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
.footer-contact-item span:first-child { font-size: 1rem; margin-top: 1px; }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

/* --- Page Hero (inner pages) --------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/2020/11/CAROUSEL-QATAR-2.jpg');
  background-size: cover;
  background-position: center;
  opacity: .1;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--orange-lt); }

/* --- Cookie Banner ------------------------------------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: var(--white);
  z-index: 9999;
  padding: 20px 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  border-top: 3px solid var(--orange);
  transform: translateY(100%);
  transition: transform .4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: .875rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}
.cookie-text a { color: var(--orange-lt); font-weight: 600; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.btn-accept { background: var(--orange); color: var(--white); padding: 10px 22px; font-size: .88rem; font-weight: 600; border-radius: var(--radius); transition: background var(--transition); }
.btn-accept:hover { background: var(--orange-h); }
.btn-reject { background: transparent; color: rgba(255,255,255,.7); padding: 10px 18px; font-size: .88rem; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); transition: all var(--transition); }
.btn-reject:hover { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-cookie-settings { background: transparent; color: rgba(255,255,255,.5); font-size: .8rem; text-decoration: underline; padding: 8px; transition: color var(--transition); }
.btn-cookie-settings:hover { color: var(--white); }

/* --- Legal pages --------------------------------------- */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--off-white);
}
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}
.legal-content p {
  font-size: .95rem;
  color: var(--text-md);
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal-content ul li {
  font-size: .95rem;
  color: var(--text-md);
  line-height: 1.75;
  margin-bottom: 6px;
}
.legal-content a { color: var(--orange); font-weight: 600; }
.legal-content a:hover { text-decoration: underline; }
.legal-box {
  background: var(--off-white);
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.legal-box strong { display: block; font-size: .88rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.legal-box p { margin: 0; font-size: .9rem; }

/* --- Products detail page ------------------------------ */
.products-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}
.product-detail-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 60px; align-items: start; }
.product-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.product-detail-img img { width: 100%; object-fit: cover; }
.spec-table { width: 100%; margin: 24px 0; }
.spec-table tr:nth-child(even) td { background: var(--off-white); }
.spec-table td {
  padding: 10px 16px;
  font-size: .88rem;
  border: 1px solid var(--border);
}
.spec-table td:first-child { font-weight: 600; color: var(--navy); width: 40%; }

/* --- World map section --------------------------------- */
.world-section {
  padding: 80px 0;
  background: var(--navy);
  overflow: hidden;
}
.world-map-img {
  width: 100%;
  max-width: 800px;
  margin: 48px auto 0;
  opacity: .7;
  filter: brightness(0) invert(1);
}

/* --- Quality page -------------------------------------- */
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.quality-pillars { display: grid; gap: 20px; }
.pillar-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.pillar-card:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.pillar-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(232,117,0,.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.pillar-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.pillar-desc { font-size: .87rem; color: var(--text-md); line-height: 1.65; }

/* --- Smooth scroll reveal ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* --- Utility ------------------------------------------- */
.text-orange { color: var(--orange); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-16 { gap: 16px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* =========================================================
   CALIDAD CERTIFICADA / DISTRIBUCIÓN — 3-col dark grid
   ========================================================= */
.calidad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .calidad-grid { grid-template-columns: 1fr; }
}
.calidad-card {
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
}
.calidad-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
}
.calidad-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.calidad-desc {
  font-size: .93rem;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
}

/* =========================================================
   VIDRIO LAMINADO BANNER
   ========================================================= */
.laminated-banner {
  background: var(--navy);
  padding: 40px 0;
}
.laminated-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.laminated-logo { flex-shrink: 0; }
.laminated-logo img { display: block; filter: brightness(0) invert(1); }
.laminated-text { flex: 1; min-width: 200px; }
.laminated-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.laminated-text p {
  color: rgba(255,255,255,.75);
  font-size: .93rem;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 700px) {
  .laminated-inner { flex-direction: column; text-align: center; }
}

/* =========================================================
   QUÉ HACEMOS — trio section
   ========================================================= */
.features-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .features-trio { grid-template-columns: 1fr; }
}
.trio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.trio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.trio-icon {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.trio-icon img { max-height: 96px; width: auto; }
.trio-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.trio-desc {
  font-size: .93rem;
  color: var(--text-md);
  line-height: 1.7;
  margin-bottom: 20px;
}
.trio-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
}
.trio-link:hover { text-decoration: underline; }

/* =========================================================
   IMPROVEMENTS PACK — layout + functional
   ========================================================= */

/* L1: Nav underline deslizante */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 1px; left: 14px; right: 14px;
  height: 2px;
  background: var(--orange-lt);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
  border-radius: 1px;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active::after { transform: scaleX(1); background: var(--orange-lt); }

/* L2: Ripple en botones */
.btn { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.32);
  transform: scale(0);
  animation: btn-ripple .55s linear forwards;
  pointer-events: none;
}
@keyframes btn-ripple { to { transform: scale(4); opacity: 0; } }

/* L3: Stats hero — separador vertical entre cifras */
.hero-stats > div {
  position: relative;
  padding-right: 48px;
}
.hero-stats > div:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 1px; height: 100%;
  background: rgba(255,255,255,.14);
}

/* L4: Footer — franja naranja en el tope */
#site-footer { border-top: 4px solid var(--orange); }

/* L5: Product card image con aspect-ratio fijo — sin saltos de layout */
.product-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--off-white);
}
.product-card-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* L6: Page-hero — patrón diagonal sutil */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 24px,
    rgba(255,255,255,.025) 24px,
    rgba(255,255,255,.025) 48px
  );
  z-index: 1;
  pointer-events: none;
}
.page-hero-content { z-index: 3; }

/* L7: Stat-num más grande en desktop */
.stat-num {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--orange-lt);
  line-height: 1;
}

/* L8: Section-title::after más ancho */
.section-title::after { width: 64px; height: 5px; }

/* L9: Spec-table thead sticky + primer col resaltada */
.spec-table { border-collapse: separate; border-spacing: 0; }
.spec-table thead tr td {
  position: sticky; top: 0; z-index: 1;
  background: var(--navy) !important;
  color: var(--white);
}
.spec-table td:first-child { background: rgba(13,30,58,.04); }

/* L10: product-detail-img — cursor zoom-in para lightbox */
.product-detail-img img,
.product-card-img[data-lightbox] { cursor: zoom-in; }

/* --- F1: Barra de progreso de lectura ------------------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-lt));
  z-index: 10002;
  transition: width .08s linear;
  pointer-events: none;
}

/* --- F2: Botón volver arriba ---------------------------- */
#back-to-top {
  position: fixed;
  bottom: 90px; right: 24px;
  width: 48px; height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, background .22s;
  z-index: 900;
  pointer-events: none;
  border: none;
  cursor: pointer;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--orange); }

/* --- F3: WhatsApp FAB tooltip --------------------------- */
#whatsapp-fab { position: relative; }
#whatsapp-fab::before {
  content: '¡Escríbenos!';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%; transform: translateY(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  box-shadow: var(--shadow);
}
#whatsapp-fab::after {
  content: '';
  position: absolute;
  right: calc(100% + 4px);
  top: 50%; transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--navy);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
#whatsapp-fab:hover::before,
#whatsapp-fab:hover::after { opacity: 1; }

/* --- F4: Lightbox --------------------------------------- */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
#lightbox.open { opacity: 1; pointer-events: auto; }
#lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 16px 64px rgba(0,0,0,.6);
  transform: scale(.94);
  transition: transform .3s ease;
  display: block;
}
#lightbox.open #lightbox-img { transform: scale(1); }
#lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition), transform var(--transition);
  background: none; border: none;
}
#lightbox-close:hover { color: var(--orange-lt); transform: scale(1.15); }
#lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  text-align: center;
  max-width: 80vw;
  pointer-events: none;
}

/* --- F5: Copy-to-clipboard tooltip ---------------------- */
.copy-btn {
  cursor: pointer;
  position: relative;
  display: inline-block;
}
.copy-btn::after {
  content: 'Copiado ✓';
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%; transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: .73rem;
  padding: 4px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  font-weight: 600;
}
.copy-btn.copied::after { opacity: 1; }

/* --- F6: Form real-time validation --------------------- */
.form-control.valid {
  border-color: #48bb78;
  box-shadow: 0 0 0 3px rgba(72,187,120,.12);
}
.form-hint {
  font-size: .78rem;
  color: #276749;
  margin-top: 4px;
  display: none;
}
.form-hint.visible { display: block; }

/* --- F7-F8: Tab card fade-in animation ----------------- */
.product-card { animation: none; }
.product-card.tab-show {
  animation: tab-fade-in .35s ease forwards;
}
@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Print styles (F10) --------------------------------- */
@media print {
  #site-header, #cookie-banner, #whatsapp-fab,
  #back-to-top, #scroll-progress, .nav-toggle,
  .hero-actions, .cta-section { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .section { padding: 20pt 0; }
  .hero { min-height: auto; padding: 36pt 0 16pt; }
  .hero-product-img, .hero-overlay { display: none !important; }
  .hero-content, .hero-title, .hero-desc,
  .hero-stat-num, .hero-stat-label { color: #000 !important; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 10pt; color: #666; }
  a[href^="#"]::after,
  a[href^="javascript"]::after { content: ''; }
  .container { max-width: 100%; padding: 0; }
  img { max-width: 100%; page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; }
  .product-detail-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   IMPROVEMENTS PACK — L11–L20 (layout)
   ========================================================= */

/* L11: WhatsApp FAB */
#whatsapp-fab {
  position: fixed;
  bottom: 32px; right: 24px;
  width: 56px; height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.5);
  cursor: pointer;
  z-index: 888;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .35s ease, transform .35s ease, background .22s;
  border: none;
  text-decoration: none;
  font-size: 1.45rem;
  line-height: 1;
}
#whatsapp-fab.visible { opacity: 1; transform: scale(1); }
#whatsapp-fab:hover { background: #1ebe5d; transform: scale(1.1) !important; box-shadow: 0 6px 32px rgba(37,211,102,.6); }
#whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

/* L12: Spec-table — scrollable on mobile, with shadow hint */
.spec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: var(--radius);
  box-shadow: inset -6px 0 12px -6px rgba(0,0,0,.06);
}
.spec-table-wrap .spec-table { margin: 0; }

/* L13: Norm/certification badge pills */
.norm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(19,84,163,.07);
  color: var(--blue);
  border: 1px solid rgba(19,84,163,.2);
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  margin: 2px;
}
.norm-badge--orange {
  background: rgba(232,117,0,.08);
  color: var(--orange);
  border-color: rgba(232,117,0,.25);
}

/* L14: Callout / highlight block */
.callout {
  background: rgba(232,117,0,.06);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 18px 24px;
  margin: 24px 0;
}
.callout--blue {
  background: rgba(19,84,163,.05);
  border-color: var(--blue);
}
.callout p { margin: 0; font-size: .93rem; color: var(--text); line-height: 1.7; }
.callout strong { color: var(--navy); }

/* L15: Accordion component */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background var(--transition);
}
.accordion-trigger:hover { background: var(--off-white); }
.accordion-trigger[aria-expanded="true"] { background: var(--off-white); color: var(--orange); }
.accordion-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  transition: transform var(--transition), border-color var(--transition);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  border-color: var(--orange);
}
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.accordion-body.open { grid-template-rows: 1fr; }
.accordion-inner {
  overflow: hidden;
  padding: 0 24px;
  font-size: .9rem;
  color: var(--text-md);
  line-height: 1.75;
}
.accordion-body.open .accordion-inner { padding: 0 24px 20px; }

/* L16: Toast notification */
.toast-container {
  position: fixed;
  bottom: 96px; right: 20px;
  z-index: 9997;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  max-width: 320px;
  width: calc(100vw - 40px);
}
.toast {
  background: var(--navy);
  color: var(--white);
  padding: 13px 18px;
  border-radius: var(--radius-lg);
  font-size: .87rem;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--orange);
  pointer-events: auto;
  transform: translateX(calc(100% + 20px));
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast--success { border-color: #48bb78; }
.toast--error   { border-color: #fc8181; }

/* L17: CTA section — animated gradient */
.cta-section {
  background: linear-gradient(135deg, #e87500 0%, #c06000 50%, #e87500 100%);
  background-size: 200% 200%;
  animation: cta-gradient 6s ease infinite;
}
@keyframes cta-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* L18: Custom ::selection */
::selection { background: rgba(232,117,0,.2); color: var(--navy); }
::-moz-selection { background: rgba(232,117,0,.2); color: var(--navy); }

/* L19: Custom scrollbar (WebKit) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: #c8d0dc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-lt); }

/* L20: Prefers-reduced-motion — disable all animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cta-section { animation: none; }
}

/* --- Responsive extras for new components -------------- */
@media (max-width: 768px) {
  #whatsapp-fab { bottom: 20px; right: 16px; width: 50px; height: 50px; font-size: 1.3rem; }
  #back-to-top  { bottom: 84px; right: 16px; }
  .toast-container { right: 12px; bottom: 80px; }
  .accordion-trigger { padding: 14px 18px; font-size: .9rem; }
  .accordion-inner  { padding: 0 18px; }
  .accordion-body.open .accordion-inner { padding: 0 18px 16px; }
}
