/* ============================================================
   IEE, S.A. — style-light.css  (tema claro)
   Fuente: Inter (Google Fonts)
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Azules IEE — tema CLARO ────────────────────────────── */
  --clr-bg:        #f4f7fb;   /* blanco azulado muy suave — fondo principal  */
  --clr-surface:   #ffffff;   /* blanco puro — tarjetas, secciones alternas  */
  --clr-surface2:  #e8f0fa;   /* azul muy pálido — hover, fondos secundarios */
  --clr-border:    #c8d9ee;   /* borde azul grisáceo suave                   */
  --clr-accent:    #1055b6;   /* azul IEE oscuro — máximo contraste s/blanco */
  --clr-accent2:   #1e78d4;   /* azul IEE medio — hovers, gradientes         */
  --clr-accent-glow: rgba(16,85,182,0.18);
  --clr-text:      #0f1e33;   /* azul casi negro — texto principal            */
  --clr-muted:     #4d6a8a;   /* azul grisáceo — texto secundario            */
  --clr-white:     #ffffff;
  --nav-h:         72px;
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.3s ease;
  --shadow:        0 2px 16px rgba(16,85,182,0.10);
  --shadow-lg:     0 8px 40px rgba(16,85,182,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--clr-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-accent2); }

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

h1,h2,h3,h4,h5,h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--clr-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h5 { font-size: 0.95rem; font-weight: 600; }
h6 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clr-muted); }

em { color: var(--clr-accent2); font-style: normal; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

.section { padding: 6rem 0; }

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent2);
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 700px;
  color: var(--clr-muted);
  font-size: 1.05rem;
  margin: 1rem auto 3rem;
  text-align: center;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--clr-accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--clr-accent2);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,85,182,0.28);
}
.btn-outline {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--clr-accent);
  color: #ffffff;
  transform: translateY(-2px);
}
.btn-full { width: 100%; text-align: center; }

/* ---------- COOKIE BANNER ---------- */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(640px, calc(100vw - 2rem));
  background: #ffffff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  animation: slideUp 0.4s ease;
}
#cookie-banner.visible { display: block; }
@keyframes slideUp {
  from { opacity:0; transform: translate(-50%,20px); }
  to   { opacity:1; transform: translate(-50%,0); }
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}
.cookie-inner p { font-size: 0.88rem; color: var(--clr-muted); flex: 1; min-width: 200px; }
.cookie-inner p strong { color: var(--clr-text); }
#cookie-accept {
  background: var(--clr-accent);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background var(--transition);
}
#cookie-accept:hover { background: var(--clr-accent2); }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--clr-border), 0 4px 20px rgba(16,85,182,0.07);
}
.nav-inner {
  /*max-width: 1200px;*/
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--clr-text);
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-brand img { height: 80px; width: auto; }
.nav-brand:hover { color: var(--clr-accent); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--clr-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--clr-accent); background: var(--clr-surface2); }
.nav-links .nav-cta {
  background: var(--clr-accent);
  color: #ffffff !important;
  padding: 0.5rem 1.1rem;
}
.nav-links .nav-cta:hover { background: var(--clr-accent2); color: #ffffff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 30% 50%, rgba(16,85,182,0.06) 0%, transparent 70%),
    linear-gradient(180deg, #eef4fc 0%, #ffffff 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,1) 40%, rgba(255,255,255,0.15) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem 4rem 5%;
  max-width: 660px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.badge {
  background: rgba(16,85,182,0.08);
  border: 1px solid rgba(16,85,182,0.22);
  color: var(--clr-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent2);
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: 1.25rem; color: var(--clr-text); }
.hero-sub {
  color: var(--clr-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2rem;
}
.stat { text-align: center; }
.stat .count {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-accent);
  line-height: 1;
}
.stat small { font-size: 0.72rem; color: var(--clr-muted); letter-spacing: 0.05em; }

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  z-index: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- TWO-COL LAYOUT ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* ---------- NOSOTROS ---------- */
.nosotros { background: var(--clr-surface2); }
.nosotros-image { position: relative; }
.nosotros-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}
.nosotros-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--clr-accent);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.nosotros-badge strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.nosotros-badge span { font-size: 0.75rem; font-weight: 600; }

.nosotros-text h2 { margin-bottom: 1rem; }
.nosotros-text > p { color: var(--clr-muted); margin-bottom: 2rem; }

.nosotros-features { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.feature h5 { margin-bottom: 0.25rem; color: var(--clr-text); }
.feature p { font-size: 0.85rem; color: var(--clr-muted); margin: 0; }

/* ---- HERO ENTRADA AL CARGAR ---- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badges   { animation: heroFadeUp 0.6s ease both; animation-delay: 0.1s; }
.hero-eyebrow  { animation: heroFadeUp 0.6s ease both; animation-delay: 0.2s; }
.hero-content h1 { animation: heroFadeUp 0.6s ease both; animation-delay: 0.35s; }
.hero-sub      { animation: heroFadeUp 0.6s ease both; animation-delay: 0.5s; }
.hero-actions  { animation: heroFadeUp 0.6s ease both; animation-delay: 0.65s; }
.hero-stats    { animation: heroFadeUp 0.6s ease both; animation-delay: 0.8s; }
.hero-image    { animation: heroFadeUp 0.7s ease both; animation-delay: 0.4s; }
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Retrasos escalonados para elementos dentro de una sección */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- SERVICIOS ---------- */
.servicios { background: var(--clr-surface); }
.servicios h2, .servicios .section-eyebrow { text-align: center; }

/* ---------- NUESTROS SERVICIOS ---------- */
.nuestros-servicios {
  background: var(--clr-bg);
  padding: 8rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.nuestros-servicios > .container {
  width: 100%;
}

.nuestros-servicios-inner {
  align-items: center;
  gap: 5rem;
}

.nuestros-servicios-image {
  position: relative;
}

.nuestros-servicios-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.nuestros-servicios-text h2 {
  margin-bottom: 2rem;
}

.nuestros-servicios-text .section-eyebrow {
  text-align: left;
}

.servicios-lista {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.servicio-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 1.75rem 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.servicio-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.servicio-icono {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.servicio-icono svg {
  width: 100%;
  height: 100%;
  display: block;
}

.servicio-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--clr-text);
}

.servicio-item p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  margin: 0;
  text-align: justify;
}



.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-img { overflow: hidden; height: 480px; }
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.carousel-slide:hover .service-img img { transform: scale(1.04); }
.service-info {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  height: 480px;
  overflow: hidden;
  box-sizing: border-box;
}
.service-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(16,85,182,0.08);
  border: 1px solid rgba(16,85,182,0.20);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  display: inline-block;
  width: fit-content;
}
.service-info h3 { font-size: 1.5rem; color: var(--clr-text); }
.service-info p { color: var(--clr-muted); font-size: 0.95rem; text-align: justify; }

/* ---------- PRODUCTOS GRID ---------- */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.producto-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.producto-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--clr-surface2);
}
.producto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.producto-card:hover .producto-img img {
  transform: scale(1.05);
}

.producto-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.producto-body h3 {
  font-size: 1.3rem;
  color: var(--clr-text);
}
.producto-body > p {
  color: var(--clr-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: justify;
}

.producto-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
}
.producto-list li {
  font-size: 0.84rem;
  color: var(--clr-muted);
  padding-left: 1.1rem;
  position: relative;
}
.producto-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clr-accent);
}

@media (max-width: 860px) {
  .productos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .producto-img {
    aspect-ratio: 16 / 7;
  }
}
@media (min-width: 480px) and (max-width: 860px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- NUESTROS PROYECTOS ---------- */
.nuestros-proyectos {
  background: var(--clr-surface2);
  padding: 8rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.nuestros-proyectos > .container {
  width: 100%;
}

.nuestros-proyectos-inner {
  align-items: start;
  gap: 5rem;
}

.nuestros-proyectos-image {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nuestros-proyectos-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.nuestros-proyectos-text h2 {
  margin-bottom: 2rem;
}



/* ---------- CLIENTES ---------- */
.clientes { background: var(--clr-surface); }
.clientes h2, .clientes .section-eyebrow { text-align: center; }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.client-logo-card {
  background: #ffffff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.client-logo-card:hover {
  border-color: var(--clr-accent2);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(16,85,182,0.15);
}
.client-logo-card .client-logo {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter var(--transition), opacity var(--transition);
}
.client-logo-card:hover .client-logo {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------- CONTACTO ---------- */
.contacto { background: var(--clr-bg); }
.contacto > .container > h2 { text-align: center; }

.contacto-layout { align-items: start; gap: 4rem; }
.contacto-info > p { color: var(--clr-muted); margin-bottom: 2rem; }

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.info-icon { width: 48px; height: 48px; flex-shrink: 0; }
.info-icon svg { width: 100%; height: 100%; display: block; }
.info-item strong { display: block; font-size: 0.85rem; color: var(--clr-muted); margin-bottom: 0.2rem; }
.info-item p { font-size: 0.9rem; color: var(--clr-text); margin: 0; }
.info-item a { color: var(--clr-text); }
.info-item a:hover { color: var(--clr-accent); }

/* Form */
.contacto-form {
  background: #ffffff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--clr-muted); }
.form-group input,
.form-group textarea {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #96aec6; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-accent2);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30,120,212,0.10);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--clr-muted);
}
.form-check input[type="checkbox"] { margin-top: 3px; accent-color: var(--clr-accent); }
#form-msg {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.5rem;
}
#form-msg.success { color: #166534; }
#form-msg.error   { color: #991b1b; }

/* ---------- FOOTER ---------- */
#footer {
  background: #0a1e38;
  border-top: none;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-brand img { height: 32px; width: auto; }
.footer-brand > p { font-size: 0.85rem; color: #7a9ab8; margin-bottom: 1rem; max-width: 340px; }
.footer-addr { font-size: 0.82rem; color: #7a9ab8; }
.footer-addr a { color: #7a9ab8; }
.footer-addr a:hover { color: #4ba3f0; }
.footer-col h6 { margin-bottom: 1rem; color: #4d6a8a; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.87rem; color: #7a9ab8; }
.footer-col a:hover { color: #4ba3f0; }
.footer-bottom {
  border-top: 1px solid #172f52;
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: #4d6a8a; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem 0 1.5rem;
    gap: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: 0 8px 24px rgba(16,85,182,0.10);
  }
  .nav-links.open { transform: scaleY(1); }
  .nav-links a { padding: 0.75rem 1.5rem; border-radius: 0; width: 100%; }
  .nav-links .nav-cta { margin: 0.5rem 1.5rem 0; width: calc(100% - 3rem); text-align: center; border-radius: var(--radius-sm); }

  .section { padding: 4rem 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contacto-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}


/* ============================================================
   PÁGINAS LEGALES (política de privacidad, cookies, calidad)
   ============================================================ */

/* Hero de cabecera */
.legal-hero {
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  padding: 7rem 0 3.5rem;
  text-align: center;
}
.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.legal-hero-sub {
  color: var(--clr-muted);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Layout principal */
.legal-main {
  padding: 4rem 0 6rem;
  background: var(--clr-bg);
}
.legal-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Índice lateral */
.legal-toc {
  position: sticky;
  top: 90px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.legal-toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-muted);
  margin-bottom: 1rem;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-toc ol li a {
  font-size: 0.85rem;
  color: var(--clr-muted);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.4;
  display: block;
}
.legal-toc ol li a:hover {
  color: var(--clr-accent);
}

/* Secciones de contenido */
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.legal-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.legal-section:last-child {
  border-bottom: none;
}
.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 1.25rem;
}
.legal-section p {
  color: var(--clr-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.9rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a {
  color: var(--clr-accent);
  text-decoration: none;
}
.legal-section a:hover {
  text-decoration: underline;
}

/* Lista con viñetas estilo IEE */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.legal-list li {
  color: var(--clr-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  padding-left: 1.25rem;
  position: relative;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
}

/* Caja de datos identificativos */
.legal-data-box {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 1rem;
}
.legal-data-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.9rem;
}
.legal-data-row:last-child { border-bottom: none; }
.legal-data-row span {
  color: var(--clr-muted);
  font-size: 0.82rem;
}
.legal-data-row strong {
  color: var(--clr-text);
  font-weight: 600;
}
.legal-data-row a {
  color: var(--clr-accent);
  text-decoration: none;
}
.legal-data-row a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 4rem; }
  .hero-content { padding: 5rem 1.5rem 2rem; max-width: 100%; }
  .hero-image {
    position: relative;
    width: 100%;
    height: 300px;
  }
  .hero-overlay { background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,1) 100%); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .nosotros-badge { bottom: 1rem; right: 1rem; }
  .service-card { grid-template-columns: 1fr; }
  .service-img { height: 200px; }
  .service-info { height: 280px; padding: 1.25rem 1.5rem; }
  .proyecto-card { grid-template-columns: 1fr; }
  .proyecto-img { height: 200px; }
  .proyecto-info { height: 280px; padding: 1.25rem 1.5rem; }
  .nuestros-proyectos {
    min-height: auto;
    padding: 5rem 0;
    display: block;
  }
  .nuestros-proyectos-image { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .legal-container {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
  .legal-data-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .nuestros-servicios {
    min-height: auto;
    padding: 5rem 0;
    display: block;
  }
  .nuestros-servicios-image { order: -1; }
}

/* --- Pilares de calidad --- */
.legal-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}
.legal-pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}
.legal-pillar-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.legal-pillar-icon svg { width: 100%; height: 100%; display: block; }
.legal-pillar h5 { margin-bottom: 0.25rem; color: var(--clr-text); font-size: 1rem; }
.legal-pillar p  { color: var(--clr-muted); font-size: 0.88rem; margin: 0; line-height: 1.6; }

/* --- Firma --- */
.legal-signature {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-accent);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  display: inline-block;
  margin-top: 0.5rem;
}
.legal-signature p { margin: 0; color: var(--clr-text); font-size: 1rem; }
.legal-signature-role { color: var(--clr-muted) !important; font-size: 0.85rem !important; margin-top: 0.25rem !important; }

/* --- Bloque descarga PDF --- */
.legal-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-accent);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
}
.legal-download-label {
  font-weight: 700;
  color: var(--clr-text) !important;
  margin-bottom: 0.2rem !important;
}
.legal-download-text p {
  margin: 0 !important;
}
.legal-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.legal-section a.btn { color: #ffffff; }
.legal-section a.btn:hover { color: #ffffff; text-decoration: none; }
.legal-download-btn svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 600px) {
  .legal-download {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- TEXTO JUSTIFICADO GLOBAL ---- */
.section-intro,
.nosotros-text > p,
.feature p,
.contacto-info > p,
.info-item p,
.legal-section p,
.legal-pillar p {
  text-align: justify;
}

/* ---------- NOSOTROS: altura mínima de pantalla completa ---------- */
.nosotros-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.nosotros-fullscreen .container {
  width: 100%;
}

/* ---------- PRODUCTO CARD: label sobre la imagen ---------- */
.producto-img {
  position: relative; /* necesario para el label absoluto */
}

.producto-img-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.55rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ---------- BOTÓN GALERÍA ---------- */
.btn-galeria {
  display: inline-block;
  margin-top: 1.1rem;
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 0.45rem 1.2rem;
}