/* Xarque Digital Identity - Design System V2 (Triangular & Impactful) */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Inter:wght@300;400;500&display=swap');

:root {
  /* Colors */
  --oxford-navy: #161F2C;
  /* Exact brand logo navy */
  --oxford-navy-dark: #0F1620;
  /* Darker navy for contrast */
  --oxford-navy-darker: #080C12;
  /* Almost black for forms/footer */
  --bronze-gold: #CF7C27;
  /* Exact brand logo orange/bronze */
  --gold-hover: #B56A1E;
  --text-light: #F8F9FA;
  --text-muted: #B0BEC5;

  /* Fonts */
  --font-headings: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--oxford-navy);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.1;
}

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

ul {
  list-style: none;
}

/* Typographic Utils */
.massive-text {
  font-size: clamp(4rem, 5vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  color: var(--text-light);
  line-height: 1;
}

.subtitle-text {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -2px;
}

/* Nav */
header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 30px 5%;

}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-light);
  transition: width 0.3s;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 18px 45px;
  background-color: var(--bronze-gold);
  color: white;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 2px;
  margin-bottom: 70px;
}

.btn:hover {
  background-color: var(--gold-hover);
}

/* Sections with Triangle Overlays */
/* We use clip-path to create the triangle cuts */

.section-top-gold {
  background-color: var(--bronze-gold);
  height: 15vw;
  min-height: 150px;
  position: relative;
  /* Triangle pointing down into the next section */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vw), 50% 100%, 0 calc(100% - 6vw));
  z-index: 2;
  margin-bottom: -6vw;
}

.section-hero-navy {
  background-color: var(--oxford-navy);
  padding: 12vw 5% 15vw;
  position: relative;
  z-index: 1;
}

.section-stats {
  background: linear-gradient(rgba(224, 122, 0, 0.85), rgba(224, 122, 0, 0.9)), url('hero_bellows.jpg') center/cover;
  padding: 6vw 5%;
  position: relative;
  /* Triangle cut pointing up from bottom, and down at top */
  clip-path: polygon(0 3vw, 50% 0, 100% 3vw, 100% calc(100% - 3vw), 50% 100%, 0 calc(100% - 3vw));
  margin-top: -6vw;
  margin-bottom: -6vw;
  z-index: 2;
}

.section-products {
  background-color: var(--oxford-navy-darker);
  padding: 15vw 5% 12vw;
  position: relative;
  z-index: 1;
}

.section-contact {
  background-color: var(--oxford-navy-darker);
  padding: 5vw 5% 15vw;
  position: relative;
  /* Cutout at the bottom */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vw), 50% 100%, 0 calc(100% - 6vw));
  margin-bottom: -6vw;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  /* subtle separation from products if needed */
}

.section-footer-gold {
  background-color: var(--bronze-gold);
  padding: 15vw 5% 6vw;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Grids */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item h3 {
  font-size: clamp(4rem, 8vw, 7rem);
  margin-bottom: 5px;
  font-weight: 900;
  line-height: 1;
}

.stat-item p {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto 0;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: 0.5s;
  filter: brightness(0.8) contrast(1.1);
}

.product-card:hover img {
  filter: brightness(1) contrast(1.1);
  transform: scale(1.03);
}

.product-card h3 {
  color: var(--bronze-gold);
  font-size: 2.5rem;
  margin: 25px 0 5px;
  font-weight: 700;
  letter-spacing: -1px;
}

.product-card>span {
  color: var(--bronze-gold);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 20px;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Forms */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-info {
  text-align: center;
  margin-bottom: 40px;
  font-family: var(--font-body);
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--bronze-gold);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: 0.3s;
}

.contact-info a:hover {
  text-decoration-color: var(--bronze-gold);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.social-icons svg {
  width: 24px;
  height: 24px;
  fill: white;
  transition: fill 0.3s;
}

.social-icons a:hover svg {
  fill: var(--bronze-gold);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 400;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--bronze-gold);
  background: rgba(255, 255, 255, 0.25);
}

.form-group textarea {
  height: 180px;
  resize: none;
}

.checkbox-group {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.checkbox-group input {
  margin-top: 5px;
  width: 20px;
  height: 20px;
  accent-color: var(--bronze-gold);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.mandatory-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

@media(max-width: 900px) {

  .stats-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  header {
    padding: 20px 5%;
  }

  .nav-links {
    display: none;
  }

  .section-heading {
    font-size: 3rem;
  }
}

/* Global Shared Grids & Splits */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-split img {
  width: 100% !important;

  height: 500px !important;

  object-fit: contain !important;

  display: block !important;
  margin: 0 auto !important;

  border-radius: 4px;
  filter: brightness(0.9);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.icon-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px 30px;
  border-top: 2px solid transparent;
  transition: 0.3s;
}

.icon-item:hover {
  border-top-color: var(--bronze-gold);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.icon-item svg {
  width: 50px;
  height: 50px;
  fill: var(--bronze-gold);
  margin-bottom: 20px;
}

.icon-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

@media(max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

/* --- Ajuste específico Franja 6 --- */

.seccion-material-industrial {
  background-color: var(--oxford-navy-darker) !important;
  padding-top: 10vw !important;
  padding-bottom: 10vw !important;
  display: block !important;
  width: 100% !important;
}

.contenedor-lectura-optima {
  /* Al poner 700px, los márgenes laterales se hacen más grandes */
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  padding-left: 50px !important;
  /* Margen lateral extra */
  padding-right: 50px !important;
  /* Margen lateral extra */
}

.contenedor-lectura-optima h2 {
  margin-bottom: 40px !important;
}

.contenedor-lectura-optima p {
  color: var(--text-muted) !important;
  font-size: 1.15rem !important;
  line-height: 1.9 !important;
  margin-bottom: 25px !important;
}

.contenedor-lectura-optima strong {
  color: var(--bronze-gold) !important;
}

/* --- AJUSTES DE ESTRUCTURA PARA CONTACTO --- */

/* Franja Naranja Superior (Triángulo) */
.section-top-gold.contacto-top {
  height: 10vw !important;
  min-height: 100px !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 50% 100%, 0 calc(100% - 4vw)) !important;
  margin-bottom: -4vw !important;
}

/* Franja Azul Hero (Ahora con altura media) */
.section-hero-navy.contacto-hero {
  padding: 10vw 5% 10vw !important;
}

/* Franja Inferior Naranja (Más estrecha) */
.section-footer-gold.contacto-footer {
  padding: 8vw 5% 5vw !important;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Grid Principal de Contacto */
.franja-contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Columna de Información (Datos + Mapa) */
.info-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.info-block h3 {
  color: var(--bronze-gold);
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.info-block p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Contenedor del Mapa */
.map-container {
  margin-top: 20px;
  height: 280px;
  width: 100%;
  border: 1px solid rgba(207, 124, 39, 0.2);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  /* El filtro es opcional, si lo quieres en color natural, borra la línea de abajo */
  filter: grayscale(1) invert(0.9) contrast(1.2);
}

/* Adaptabilidad para Móviles */
@media (max-width: 900px) {
  .franja-contacto-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .section-heading {
    text-align: left;
  }
}