/* ═══════════════════════════════════════════════════════
   OCTENT AUTOMATION — EUROPA
   styles.css
   Brand: Red #DA2B1F · Blue-Gray #5A6675
   Font: Barlow Condensed + Barlow
════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --red:           #DA2B1F;
  --red-dark:      #b5221a;
  --bluegray:      #5A6675;
  --bluegray-dark: #3d4650;
  --bluegray-light:#8898a8;
  --off-white:     #F4F3F0;
  --white:         #ffffff;
  --dark:          #0e1014;
  --dark-2:        #161a20;
  --dark-3:        #1e2530;
  --border:        rgba(90,102,117,0.3);
  --border-light:  rgba(90,102,117,0.12);

  /* Placeholder colors — quita cuando pongas fotos reales */
  --ph-bg:     #1a2030;
  --ph-border: rgba(90,102,117,0.4);
  --ph-text:   rgba(90,102,117,0.6);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--dark);
  color: var(--off-white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   IMAGE PLACEHOLDERS
   Elimina estas reglas cuando pongas fotos reales.
   Reemplaza el div con un <img class="...">
   y añade .hero-img, .dashboard-img, etc.
   en tu CSS con: width:100%; height:100%; object-fit:cover;
════════════════════════════════════════════ */
.hero-img-placeholder,
.dashboard-img-placeholder,
.sennos-img-placeholder,
.industry-img-placeholder,
.project-img-placeholder,
.team-img-placeholder,
.device-img-placeholder {
  background: var(--ph-bg);
  border: 2px dashed var(--ph-border);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.placeholder-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ph-text);
  text-align: center;
  line-height: 1.6;
  padding: 1rem;
}

.placeholder-label-sm {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ph-text);
  text-align: center;
  padding: 0.5rem;
}

/* Tamaños específicos de cada placeholder */
.hero-img-placeholder       { height: 100%; min-height: 400px; }
.dashboard-img-placeholder  { height: 400px; border-radius: 0; }
.sennos-img-placeholder     { height: 360px; }
.industry-img-placeholder   { height: 200px; }
.project-img-placeholder    { height: 220px; }
.team-img-placeholder       { height: 280px; margin-top: 2rem; }
.device-img-placeholder     { height: 300px; margin-top: 2rem; }

/* Clases para las fotos REALES */
.hero-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  display: block;
}

.dashboard-img {
  width: 100%; height: 400px;
  object-fit: cover; display: block;
}

.sennos-img {
  width: 100%; height: 360px;
  object-fit: cover; object-position: center top;
  display: block;
}

.industry-img {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
}

.project-img {
  width: 100%; height: 220px;
  object-fit: cover; display: block;
}

.team-img {
  width: 100%; height: 280px;
  object-fit: cover; display: block;
  margin-top: 2rem;
}

.device-img,
.dashboard-device-img {
  width: 100%; height: 300px;
  object-fit: cover; display: block;
  margin-top: 2rem;
}


/* ═══════════════════════════════════════════
   NAV
════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 68px;
  background: rgba(14,16,20,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.logo-mark { width: 36px; height: 36px; }
.logo-mark svg { width: 100%; height: 100%; }

.nav-wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--off-white);
}
.nav-wordmark span { color: var(--red); }

.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bluegray-light);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: none;
  padding: 0.55rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--red-dark); }


/* ═══════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
#home {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 10rem 5vw 6rem;
  position: relative; z-index: 2;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 2px;
  background: var(--red);
}

.hero-h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-h1 em {
  font-style: normal;
  color: var(--red);
  display: block;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--bluegray-light);
  max-width: 440px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; align-items: center; }

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(90,102,117,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,102,117,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent, rgba(0,0,0,0.5), rgba(0,0,0,0.8));
}

/* Cuando pongas la foto real, añade esto al <img>:
   position:absolute; inset:0; z-index:0; */

.hero-stats {
  position: absolute; bottom: 8vh; right: 3vw;
  display: flex; flex-direction: column; gap: 1.2rem;
  z-index: 2;
}

.stat-card {
  background: rgba(14,16,20,0.82);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 1.1rem 1.6rem;
  backdrop-filter: blur(10px);
}
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bluegray-light);
  margin-top: 0.3rem;
}


/* ═══════════════════════════════════════════
   STRIP
════════════════════════════════════════════ */
.strip {
  background: var(--dark-3);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 2rem 5vw;
  display: flex; align-items: center; gap: 2.5rem;
  overflow: hidden;
}
.strip-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bluegray);
  white-space: nowrap;
  flex-shrink: 0;
}
.strip-divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
.strip-items { display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; }
.strip-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off-white);
  display: flex; align-items: center; gap: 0.5rem;
}
.strip-item::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  display: block;
}


/* ═══════════════════════════════════════════
   SECTION COMMON
════════════════════════════════════════════ */
section { padding: 7rem 5vw; }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.section-label::before {
  content: ''; display: block;
  width: 24px; height: 2px;
  background: var(--red);
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.01em;
}
.section-title span { color: var(--red); }
.section-body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--bluegray-light);
  line-height: 1.75;
  max-width: 600px;
  margin-top: 1rem;
}

.btn-primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: none;
  padding: 0.9rem 2rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }


/* ═══════════════════════════════════════════
   PRODUCE MÁS
════════════════════════════════════════════ */
#produce {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  background: var(--dark-2);
}

.feature-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.feature-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--border-light);
  background: rgba(14,16,20,0.5);
  transition: border-color 0.2s, background 0.2s;
}
.feature-item:hover {
  border-color: var(--border);
  background: rgba(14,16,20,0.8);
}
.feature-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--red); }
.feature-text { font-size: 0.92rem; font-weight: 400; color: var(--off-white); line-height: 1.5; }

/* Dashboard wrapper */
.dashboard-wrapper { position: relative; }
.dashboard-badge {
  position: absolute; top: -1px; left: 0; z-index: 2;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 0.3rem 0.8rem;
}
.dashboard-overlay-stats {
  display: flex; gap: 1px;
  background: var(--border-light);
}
.overlay-stat {
  flex: 1;
  background: var(--dark-3);
  padding: 0.8rem 1rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.overlay-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--white);
}
.overlay-label {
  font-size: 0.7rem; color: var(--bluegray-light);
  letter-spacing: 0.08em; text-transform: uppercase;
}


/* ═══════════════════════════════════════════
   SENSOR SENNOS
════════════════════════════════════════════ */
#sensor { background: var(--dark); }

.sensor-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.sennos-img-wrapper { position: relative; }
.sennos-img-caption {
  margin-top: 0.8rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bluegray);
  text-align: center;
}

.sensor-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}
.sensor-col {
  background: var(--dark-2);
  padding: 2rem 1.5rem;
  position: relative;
  transition: background 0.2s;
}
.sensor-col:hover { background: var(--dark-3); }
.sensor-col::after {
  content: attr(data-num);
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
}
.sensor-col-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.7rem;
  margin-top: 1.5rem;
}
.sensor-col-desc {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--bluegray-light);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════
   QUOTE
════════════════════════════════════════════ */
.quote-section {
  background: var(--dark-2);
  padding: 5rem 5vw;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.quote-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--red);
  font-weight: 800;
  display: block;
  margin-bottom: 1.5rem;
}
blockquote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--off-white);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.quote-author {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bluegray-light);
}
.quote-author span { color: var(--red); }


/* ═══════════════════════════════════════════
   INDUSTRIAS
════════════════════════════════════════════ */
#industrias { background: var(--dark-3); }

.industries-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}
.industries-header .section-label { justify-content: center; }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.industry-card {
  background: var(--dark-2);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s, transform 0.2s;
}
.industry-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.industry-card:hover { border-color: var(--border); transform: translateY(-3px); }
.industry-card:hover::before { transform: scaleX(1); }

/* La foto ocupa el ancho del card */
.industry-card .industry-img-placeholder,
.industry-card .industry-img { width: 100%; flex-shrink: 0; }

.industry-content { padding: 1.5rem; }
.industry-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.industry-desc {
  font-size: 0.82rem;
  color: var(--bluegray-light);
  line-height: 1.6;
  font-weight: 300;
}


/* ═══════════════════════════════════════════
   PROYECTOS
════════════════════════════════════════════ */
#proyectos { background: var(--dark); }

.projects-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}
.project-card { background: var(--dark-2); overflow: hidden; }
.project-body { padding: 2.5rem; }

.project-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.8rem;
}
.project-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--bluegray-light);
  line-height: 1.7;
  margin-bottom: 1.8rem;
  font-weight: 300;
}
.project-results { display: flex; flex-direction: column; gap: 0.8rem; }
.result-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(218,43,31,0.06);
  border: 1px solid rgba(218,43,31,0.15);
}
.result-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
  min-width: 64px;
}
.result-text {
  font-size: 0.82rem;
  color: var(--off-white);
  line-height: 1.4;
}


/* ═══════════════════════════════════════════
   NOSOTROS
════════════════════════════════════════════ */
#nosotros {
  background: var(--dark-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.about-stat {
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  background: rgba(14,16,20,0.4);
}
.about-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--white);
  line-height: 1;
}
.about-stat-label {
  font-size: 0.8rem;
  color: var(--bluegray-light);
  font-weight: 300;
  margin-top: 0.4rem;
  line-height: 1.4;
}
.about-commitment {
  margin-top: 2.5rem;
  padding: 2rem;
  border-left: 3px solid var(--red);
  background: rgba(14,16,20,0.4);
}
.about-commitment p {
  font-size: 0.95rem;
  color: var(--off-white);
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════
   CONTACTO
════════════════════════════════════════════ */
#contacto {
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact-detail {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  background: var(--dark-2);
}
.contact-detail-icon { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.contact-detail-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bluegray);
  margin-bottom: 0.2rem;
}
.contact-detail-value { font-size: 0.92rem; color: var(--off-white); }
.contact-detail-value a { color: var(--off-white); text-decoration: none; }
.contact-detail-value a:hover { color: var(--red); }

.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bluegray-light);
  margin-bottom: 0.5rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--off-white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--red); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-submit {
  width: 100%;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: none;
  padding: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--red-dark); }


/* ═══════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
footer {
  background: var(--dark-3);
  border-top: 1px solid var(--border-light);
  padding: 2rem 5vw;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.footer-copy { font-size: 0.78rem; color: var(--bluegray); }
.footer-links { display: flex; gap: 2rem; }
.footer-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bluegray-light);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--red); }


/* ═══════════════════════════════════════════
   FORM CHECKBOXES LEGALES
════════════════════════════════════════════ */
.form-check-group {
  display: flex; flex-direction: column; gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.form-check-label {
  display: flex; align-items: flex-start; gap: 0.7rem;
  font-size: 0.82rem; color: var(--bluegray-light);
  line-height: 1.5; cursor: pointer;
}
.form-check-label input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0;
  margin-top: 2px; accent-color: var(--red); cursor: pointer;
}
.link-modal {
  background: none; border: none; padding: 0;
  color: var(--red); text-decoration: underline;
  cursor: pointer; font-size: inherit; font-family: inherit;
}
.link-modal:hover { color: var(--red-dark); }


/* ═══════════════════════════════════════════
   FOOTER LEGAL LINKS
════════════════════════════════════════════ */
footer {
  flex-wrap: wrap;
}
.footer-legal {
  width: 100%; display: flex; justify-content: center;
  gap: 2rem; padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.footer-legal-link {
  background: none; border: none; padding: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bluegray);
  cursor: pointer; transition: color 0.2s;
}
.footer-legal-link:hover { color: var(--red); }


/* ═══════════════════════════════════════════
   BANNER COOKIES
════════════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--dark-3);
  border-top: 1px solid var(--border);
  padding: 1.2rem 5vw;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.cookie-banner-text {
  font-size: 0.85rem; color: var(--bluegray-light);
  line-height: 1.6; flex: 1; min-width: 200px;
}
.cookie-banner-text strong { color: var(--off-white); }
.cookie-banner-actions { display: flex; gap: 0.8rem; flex-shrink: 0; }
.cookie-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; padding: 0.55rem 1.2rem; cursor: pointer;
  transition: background 0.2s;
}
.cookie-btn-accept { background: var(--red); color: var(--white); }
.cookie-btn-accept:hover { background: var(--red-dark); }
.cookie-btn-reject {
  background: transparent; color: var(--bluegray-light);
  border: 1px solid var(--border);
}
.cookie-btn-reject:hover { color: var(--white); border-color: var(--bluegray); }


/* ═══════════════════════════════════════════
   MODALES LEGALES
════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.75);
  align-items: center; justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--dark-2);
  border: 1px solid var(--border);
  max-width: 680px; width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  margin: auto;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none;
  color: var(--bluegray-light); font-size: 1.1rem;
  cursor: pointer; padding: 0.3rem 0.6rem;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--white); }

.modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.8rem;
  text-transform: uppercase; color: var(--white);
  letter-spacing: 0.03em; margin-bottom: 1.5rem;
  padding-right: 2rem;
}
.modal-body { font-size: 0.88rem; color: var(--bluegray-light); line-height: 1.75; }
.modal-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--off-white); margin: 1.5rem 0 0.5rem;
}
.modal-body p { margin-bottom: 0.8rem; }
.modal-body a { color: var(--red); text-decoration: none; }
.modal-body a:hover { text-decoration: underline; }
.modal-body strong { color: var(--off-white); }

.cookie-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.8rem; margin: 1rem 0;
}
.cookie-table th {
  background: var(--dark-3); color: var(--off-white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.6rem 0.8rem;
  text-align: left; border: 1px solid var(--border-light);
}
.cookie-table td {
  padding: 0.6rem 0.8rem; border: 1px solid var(--border-light);
  color: var(--bluegray-light); vertical-align: top;
}


/* ═══════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s, transform 0.7s;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .sensor-row    { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  #home, #produce, #nosotros, #contacto { grid-template-columns: 1fr; }
  .hero-right   { display: none; }
  .sensor-intro { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .sensor-row   { grid-template-columns: repeat(2, 1fr); }

  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }

  section { padding: 4rem 5vw; }

  /* Hero: reducir padding top en móvil */
  .hero-left { padding: 7rem 5vw 3rem; }

  /* Nosotros: gap excesivo al apilar */
  #nosotros { gap: 3rem; }

  /* Produce: gap más compacto */
  #produce { gap: 3rem; }

  /* Quote más compacto */
  .quote-section { padding: 3rem 5vw; }

  /* Projects: body con menos padding */
  .project-body { padding: 1.8rem; }

  /* Footer: apilar en columna */
  footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 2rem 5vw;
  }
  .footer-links { justify-content: center; }

  /* Strip: permitir wrap */
  .strip { flex-wrap: wrap; gap: 1rem; }
  .strip-items { gap: 1.2rem; }
  .strip-divider { display: none; }
}

@media (max-width: 560px) {
  section { padding: 3rem 5vw; }

  /* Hero más compacto en pantallas pequeñas */
  .hero-left { padding: 6rem 5vw 2.5rem; }
  .hero-h1   { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .hero-sub  { font-size: 0.95rem; }

  /* Grids a 1 columna */
  .industry-grid { grid-template-columns: 1fr; }
  .sensor-row    { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .about-stats   { grid-template-columns: 1fr; }

  /* Proyectos: resultado en columna si es muy estrecho */
  .project-body { padding: 1.4rem; }
  .result-item  { gap: 0.6rem; }
  .result-num   { font-size: 1.3rem; min-width: auto; }

  /* Nav CTA más pequeño */
  .nav-cta { font-size: 0.75rem; padding: 0.5rem 1rem; }

  /* Stat cards más pequeñas */
  .stat-num { font-size: 2rem; }

  /* Section titles */
  .section-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }

  /* Sensor col más legible */
  .sensor-col { padding: 1.5rem 1rem; }

  /* About stat */
  .about-stat { padding: 1.5rem 1rem; }
  .about-stat-num { font-size: 2.4rem; }

  /* Contact */
  .contact-detail { padding: 1rem; }

  /* Strip compacto */
  .strip { padding: 1.5rem 5vw; }
  .strip-items { gap: 0.8rem; }
  .strip-item { font-size: 0.75rem; }
}
