:root {
  --brand-yellow: #ffdd00;
  --brand-grey: #a7a9ac;
  --brand-black: #231f20;
}

/* Base */

body {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--brand-black);
  background-color: #ffffff;
}

.bg-brand-grey {
  background-color: var(--brand-grey);
}

.bg-brand-light-alt {
  background-color: #f5f5f5;
}

.bg-dark-section {
  background-color: #1f1f1f;
}

.bg-brand-light {
  background-color: #a7a9ac;
}

/* Navbar */

.navbar {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  z-index: 1030;
}

.navbar.bg-brand-light {
  background-color: #a7a9ac !important;
  border-bottom: none !important; 
}

.brand-logo {
  height: 72px;
  width: auto;
  margin-top: 0px;
  margin-bottom: -4px;
}

.brand-wordmark {
  font-family: "Avenir Next", "Avenir", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #1f1f1f
}

.nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 300;
}

.nav-link.active {
  color: var(--brand-yellow) !important;
}

/* Hero video */

.hero-video-section {
  margin-top: 4rem; /* space for fixed navbar */
}

.hero-video-wrapper {
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
  background-color: #a7a9ac;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Headline + quote */

.headline-section {
  padding: 3rem 0 3.5rem;
}

.headline-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--brand-yellow); /* ALL TEXT YELLOW */
}

.headline-highlight {
  text-decoration: underline;
  text-decoration-color: var(--brand-yellow);
}

.quote-box {
  background-color: #ffffff;
  padding: 2.2rem 2.6rem;
  border-radius: 0.5rem;
  max-width: 720px;
}

.quote-text {
  font-size: 0.9rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

/* Home links section (FABRICACIÓN / COMERCIALIZACIÓN / OBRA PÚBLICA) */

.home-links {
  background-color: var(--brand-grey);
  padding: 2.8rem 0 3.8rem;
}

.home-link-title {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-black);
  margin-bottom: 1.2rem;
}

.home-link-btn {
  display: inline-block;
  padding: 0.4rem 1.6rem;
  border-radius: 999px;
  background-color: #231f20;
  color: #ffffff;
  font-size: 0.8rem;
  text-decoration: none;
}

.home-link-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Info cards (Calidad / Materiales) */

.info-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
}

.info-card-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* XETERON info section */

.section-xeteron {
  background-color: #1f1f1f;
  color: #ffffff;
  padding: 4rem 0;
}

.section-xeteron-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* desktop: side by side */
@media (min-width: 992px) {
  .section-xeteron-inner {
    flex-direction: row;
  }
}

.section-xeteron-left {
  flex: 0 0 52%;
  padding-left: 11vw;   /* pushes content toward center */
  padding-right: 4vw;
}

.section-xeteron-right {
  flex: 0 0 48%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.section-xeteron-img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* title + subtitle */

.section-xeteron-title {
  font-size: 1.5rem;
  letter-spacing: 0.12em;   /* tighter than before */
  text-transform: uppercase;
  font-weight: 400;
  color: var(--brand-grey); /* gray */
  margin-bottom: 0.4rem;
}

.section-xeteron-subtitle {
  font-size: 0.95rem;
  color: #ffffff;           /* white */
  margin-bottom: 2.3rem;
}

/* feature list */

.section-xeteron-features {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.xf-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.xf-icon {
  margin-top: 0.1rem;
}

.xf-icon i {
  font-size: 26px;          /* bigger icons */
}

.xf-title {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand-grey);
  font-weight: 400;
}

.xf-sub {
  font-size: 0.9rem;
  color: #ffffff;           /* white line */
}

/* Page section header (subpages) */

.page-section-header {
  background-color: #1f1f1f;
  color: #ffffff;
  padding: 3rem 0 2rem;
}

.page-section-title {
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--brand-grey);
  text-align: left;
  margin-left: 11vw; /* indent */
}

.page-section-intro {
  font-size: 0.95rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: justify;
  margin-left: 11vw; /* align with title */
}

/* 3×4 services grid (Obra Pública / Fabricación / Comercialización) */

.services-grid {
  background-color: #1f1f1f;
}

.services-grid .row {
  margin: 0;
}

/* make each cell same height per row on desktop */
.sg-item {
  display: flex;
}

.sg-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.sg-text {
  align-items: stretch;
}

.sg-text-inner {
  padding: 2.4rem 2.8rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sg-bg-yellow {
  background-color: var(--brand-yellow);
  color: var(--brand-black);
}

.sg-bg-grey {
  background-color: var(--brand-grey);
  color: #231f20;
}

.sg-bg-dark {
  background-color: #2a2a2a;
  color: #ffffff;
}

.sg-title {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.sg-subtitle {
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.sg-list {
  margin: 0;
  padding-left: 1.3rem;
  font-size: 0.6rem;
}

.sg-list li {
  margin-bottom: 0.25rem;
}

/* equal heights for each cell on desktop */
@media (min-width: 992px) {
  .sg-item {
    height: 260px;
  }

  .sg-img img {
    height: 100%;
  }
}

/* stack nicely on mobile */
@media (max-width: 991.98px) {
  .sg-item {
    height: auto;
  }

  .sg-text-inner {
    padding: 1.8rem 2rem;
  }
}

/* services contact button at bottom */
.services-contact-cta {
  padding: 2.5rem 0 3.5rem;
}

.services-contact-btn {
  display: inline-block;
  padding: 0.4rem 1.8rem;
  border-radius: 999px;
  background-color: #333333; /* dark gray */
  color: #ffffff;
  font-size: 0.8rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-contact-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

/* CTA */

.bg-brand-yellow {
  background-color: var(--brand-yellow);
}

.cta-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cta-link {
  color: inherit;
  text-decoration: none;
}

.cta-link:hover {
  text-decoration: underline;
}

/* Contact */

.section-heading {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.contact-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 0.4rem 1.3rem rgba(0, 0, 0, 0.16);
}

.form-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Contact extra */

.domicilio-block {
  padding: 3rem 1rem 1rem;
}

.domicilio-title {
  font-size: 1.1rem;
  font-weight: 400;
}

.domicilio-text {
  font-size: 0.9rem;
}

/* Footer */

.footer-main {
  background-color: #231f20;
  color: #ffffff;
  padding: 1.8rem 0 1.4rem;
}

.footer-company {
  font-style: italic;
  margin-bottom: 0.4rem;
}

.footer-email {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-bar {
  background-color: var(--brand-yellow);
  padding: 0.6rem 0;
}

.footer-bar-text {
  font-size: 0.8rem;
}

/* Remove unwanted space under footer on subpages */
body {
  margin: 0;
  padding: 0;
}

.services-grid {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Secondary images (row 3) for Fabricación: hide on mobile */
.sg-img-secondary img {
  opacity: 0.95;
}

@media (max-width: 767.98px) {
  .sg-img-secondary {
    display: none;
  }
}

/* "Conocer más" buttons in Fabricación */

.sg-btn-wrapper {
  text-align: center;
  margin-top: auto;
  padding-top: 1.2rem;
}

.sg-btn {
  display: inline-block;
  padding: 0.35rem 1.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* 1) Pinturas – dark gray border & hover bg, white text on hover */
.sg-btn-pinturas {
  color: var(--brand-black);
  border-color: var(--brand-black);
}

.sg-btn-pinturas:hover {
  background-color: var(--brand-black);
  color: #ffffff;
  border-color: var(--brand-black);
}

/* 2) Asfaltos – yellow border & hover bg, white text on hover */
.sg-btn-asfaltos {
  color: var(--brand-yellow);
  border-color: var(--brand-yellow);
}

.sg-btn-asfaltos:hover {
  background-color: var(--brand-yellow);
  color: var(--brand-black);
  border-color: var(--brand-yellow);
}

/* 3) Impermeabilizantes – white border & hover bg, dark gray text on hover */
.sg-btn-imper {
  color: #ffffff;
  border-color: #ffffff;
}

.sg-btn-imper:hover {
  background-color: #ffffff;
  color: var(--brand-black);
  border-color: #ffffff;
}

/* Fabricación only: row-2 text equal height */
@media (min-width: 992px) {
  .fabricacion-page .sg-text {
    min-height: 280px;
  }
}

/* Fabricación – normalize image height on tablet (iPad widths) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .fabricacion-page .sg-img img {
    height: 220px;
    object-fit: cover;
  }
}

/* Fabricación – keep footer at bottom on short pages */
.fabricacion-page main.services-grid {
  min-height: calc(100vh - 140px); /* 140px ≈ navbar + footer total height */
}

/* Increase top padding on small screens so page titles don't hide under the navbar */
@media (max-width: 767.98px) {
  .page-main,
  .page-section-header {
    padding-top: 6rem !important; /* adjust to 5rem or 7rem if needed */
  }
}

/* Improve left/right padding for page titles + intro on phones */
@media (max-width: 767.98px) {
  .page-section-header .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .page-section-title {
    margin-left: 0 !important; 
    text-align: center;       
  }

  .page-section-intro {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: justify;
  }
}

.comercializacion-page .productos-mas {
  background-color: #1f1f1f !important;
}
/* ───────── Auxiliares Visuales Viales subpage ───────── */

.aux-main {
  background-color: var(--brand-grey);
  padding: 3rem 0 4rem;
}

.aux-container {
  max-width: 1100px;
}

/* Top header */
.aux-header {
  margin-bottom: 3rem;
}

.aux-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 1.8rem;
}

.aux-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.aux-btn {
  padding: 0.35rem 1.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  transition: 0.2s ease;
}

/* Outline button (grey like Wix) */
.aux-btn-outline {
  border: 1px solid var(--brand-black);
  color: var(--brand-black);
  background-color: transparent;
}

.aux-btn-outline:hover {
  background-color: var(--brand-black);
  color: #ffffff;
}

/* Solid black button */
.aux-btn-solid {
  border: 1px solid var(--brand-black);
  background-color: var(--brand-black);
  color: #ffffff;
}

.aux-btn-solid:hover {
  background-color: #000000;
}

/* Sections */
.aux-section {
  margin-bottom: 3.5rem;
}

.aux-subtitle {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

.aux-list {
  font-size: 0.8rem;
  margin: 0;
  padding-left: 1.1rem;
}

.aux-list li {
  margin-bottom: 0.3rem;
}

.aux-img {
  max-width: 100%;
  height: auto;
}

/* Bottom note */
.aux-footer-note {
  margin-top: 1rem;
}

.aux-note {
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
  .aux-main {
    padding-top: 5rem;
  }

  .aux-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .aux-title {
    font-size: 1.4rem;
  }
}

/* Fix AUX page alignment */
.aux-main {
  background-color: var(--brand-grey) !important;
}

.aux-container {
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  max-width: 1100px !important;
  width: 100% !important;
}

/* ===================================================== */
/* PRODUCT CARD SYSTEM — Pinturas / Asfaltos / Impermeabilizantes */
/* ===================================================== */

.pinturas-page .product-main,
.asfaltos-page .product-main,
.impermeabilizantes-page .product-main {
  padding: 3rem 0 4rem;
}

.product-container {
  max-width: 1200px;
}

/* Header */
.product-header {
  margin-bottom: 2.5rem;
}

.product-title {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-black);
}

.product-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  text-align: justify;
}

/* Buttons */
.product-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.product-btn {
  padding: 0.35rem 1.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.2s ease;
}

.product-btn-outline {
  border: 1px solid var(--brand-black);
  color: var(--brand-black);
}
.product-btn-outline:hover {
  background: var(--brand-black);
  color: #fff;
}

.product-btn-solid {
  border: 1px solid var(--brand-black);
  background: var(--brand-black);
  color: #fff;
}
.product-btn-solid:hover {
  background: #000;
}

/* Product card */
.product-card {
  background: #ffffff;
  border-radius: 0.6rem;
  box-shadow: 0 0.4rem 1rem rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image */
.product-img {
  width: 100%;
  height: 360px; 
  object-fit: cover;
  border-radius: 0.6rem 0.6rem 0 0;
}

/* Text block */
.product-box {
  padding: 1.6rem;
  border-radius: 0 0 0.6rem 0.6rem;
  background: #fff;
  flex-grow: 1;
}

.product-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
}

.product-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.78rem;
}

.product-list li {
  margin-bottom: 0.25rem;
}

/* Footer note */
.product-footer-note {
  margin-top: 2.5rem;
}

.product-note {
  font-size: 0.8rem;
  margin-bottom: 1.3rem;
}

/* Mobile */
@media (max-width: 767.98px) {
  .product-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .product-main {
    padding-top: 5rem;
  }
}
