/* ================================
   VARIABLES GLOBALES
================================ */
:root{
  --bg:#f4f8fb;
  --surface:#ffffff;
  --surface-2:#eef5f8;
  --text:#173042;
  --muted:#5d7686;
  --line:#d8e6ee;
  --brand:#2faac0;
  --brand-dark:#177d92;
  --brand-soft:#e7f7fb;
  --nav:#ffffffee;
  --shadow:0 24px 70px rgba(19,48,66,.10);
  --radius:24px;
  --radius-sm:16px;
  --max:1200px;
}

/* ================================
   RESET BÁSICO
================================ */
*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#f6fbfd 0%,#edf5f8 100%);
  overflow-x:hidden;
}

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

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

/* ================================
   CONTENEDOR GENERAL
================================ */
.container{
  width:min(calc(100% - 32px), var(--max));
  margin:0 auto;
}

/* ================================
   HEADER / TOPBAR
================================ */
.topbar{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(216,230,238,.9);
}

.topbar-inner{
  min-height:84px;
  display:flex;
  align-items:center;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:700;
  flex-shrink:0;
}

.brand img{
  height:56px;
  width:auto;
  display:block;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:16px;
  flex-wrap:nowrap;
}

.nav a{
  font-size:15px;
  color:var(--muted);
  font-weight:600;
  white-space:nowrap;
}

.nav a:hover,
.nav a.active{
  color:var(--brand-dark);
}

.header-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
  margin-left:auto;
}

.menu-toggle{
  width:46px;
  height:46px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  display:none;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  flex-shrink:0;
}

/* ================================
   BOTONES GENERALES
================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:999px;
  padding:14px 22px;
  font-weight:700;
  font-size:15px;
  transition:.22s ease;
  border:1px solid transparent;
  cursor:pointer;
}

.btn-primary{
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;
  box-shadow:0 16px 34px rgba(47,170,192,.24);
}

.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 20px 36px rgba(47,170,192,.30);
}

.btn-secondary{
  background:#fff;
  color:var(--text);
  border-color:var(--line);
}

.btn-secondary:hover{
  background:var(--surface-2);
}

.header-contact-btn{
  white-space:nowrap;
}

/* ================================
   SELECTOR DE IDIOMA
================================ */
.lang-switcher{
  display:flex;
  align-items:center;
  gap:8px;
}

.lang-flag{
  width:34px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 6px 18px rgba(19,48,66,.08);
  overflow:hidden;
  transition:.2s ease;
  flex-shrink:0;
}

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

.lang-flag:hover{
  transform:translateY(-1px);
  border-color:#b8d7e1;
}

.lang-flag.active{
  outline:2px solid rgba(47,170,192,.24);
  border-color:var(--brand);
}

/* ================================
   TIPOGRAFÍA
================================ */
.eyebrow{
  display:inline-flex;
  gap:6px;
  align-items:center;
  border-radius:999px;
  padding:6px 12px;
  font-weight:700;
  font-size:11px;
  letter-spacing:.07em;
  text-transform:uppercase;
  background:var(--brand-soft);
  color:var(--brand-dark);
}

.eyebrow-light{
  background:rgba(255,255,255,.12);
  color:#fff;
  backdrop-filter:blur(10px);
}

h1{
  font-size:clamp(40px,6vw,68px);
  line-height:1.02;
  margin:18px 0;
}

h2{
  font-size:clamp(28px,4vw,46px);
  line-height:1.08;
  margin:0 0 18px;
}

h3{
  font-size:clamp(22px,2.6vw,30px);
  margin:0 0 12px;
}

.lead{
  font-size:19px;
  line-height:1.8;
  color:var(--muted);
  max-width:760px;
}

/* ================================
   BANNER HOME CON CARRUSEL
================================ */
.home-banner{
  padding:24px 0 8px;
}

.home-banner-carousel{
  position:relative;
  width:100%;
  min-height:540px;
  overflow:hidden;
  background:#143847;
}

.home-banner-track{
  position:relative;
  width:100%;
  height:100%;
}

.home-banner-slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:
    opacity 1.2s ease-in-out,
    visibility 1.2s ease-in-out;
}

.home-banner-slide.active{
  opacity:1;
  visibility:visible;
}

.home-banner-slide img{
  width:100%;
  height:100%;
  min-height:540px;
  object-fit:cover;
  transform:scale(1.06);
  transition:transform 6s ease-out;
  will-change:transform, opacity;
}

.home-banner-slide.active img{
  transform:scale(1);
}

.home-banner-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(10,28,38,.74) 0%, rgba(10,28,38,.58) 38%, rgba(10,28,38,.20) 100%);
  z-index:1;
}

.home-banner-content{
  position:relative;
  z-index:2;
  min-height:540px;
  display:flex;
  align-items:center;
}

.home-banner-copy{
  max-width:760px;
  color:#fff;
  padding:48px 0;
}

.home-banner-copy h1{
  font-size:clamp(38px,5vw,64px);
  line-height:1.02;
  margin:14px 0 16px;
  color:#fff;
}

.home-banner-copy p{
  font-size:18px;
  line-height:1.8;
  color:rgba(255,255,255,.9);
  max-width:760px;
}

.hero-buttons{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:24px;
}

/* ================================
   CONTROLES CARRUSEL HOME
================================ */
.hero-carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border:none;
  border-radius:50%;
  background:transparent;
  color:#fff;
  cursor:pointer;
  z-index:3;
  font-size:24px;
  line-height:1;
  text-shadow:0 2px 8px rgba(0,0,0,.5);
  transition:transform .25s ease, text-shadow .25s ease;
}

.hero-carousel-btn:hover{
  transform:translateY(-50%) scale(1.15);
  text-shadow:0 2px 14px rgba(0,0,0,.7);
}

.hero-carousel-btn.prev{
  left:14px;
}

.hero-carousel-btn.next{
  right:14px;
}

.hero-carousel-dots{
  position:absolute;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:10px;
  z-index:3;
}

.hero-carousel-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,0.45);
  border:none;
  cursor:pointer;
  transition:
    transform .28s ease,
    background-color .28s ease,
    width .28s ease;
}

.hero-carousel-dot.active{
  background:#fff;
  width:26px;
}

/* ================================
   MÉTRICAS HOME
================================ */
.home-metrics-section{
  padding-top:0;
}

.home-metrics{
  margin-top:-24px;
  position:relative;
  z-index:3;
}

.panel-meta{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  padding:0 18px 18px;
}

.metric{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:16px;
  box-shadow:var(--shadow);
}

.metric strong{
  display:block;
  font-size:22px;
}

.metric span{
  display:block;
  color:var(--muted);
  font-size:14px;
  margin-top:4px;
  line-height:1.45;
}

.metric-logo{
  max-height:44px;
  width:auto;
  object-fit:contain;
}

.metric-lorawan .metric-text{
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* ================================
   SECCIONES GENERALES
================================ */
.section{
  padding:72px 0;
}

/* Utilidad para margen superior de grids */
.mt-grid{
  margin-top:28px;
}

/* Utilidad para margen inferior de títulos */
.mb-title{
  margin-bottom:14px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.grid-4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  /* FIX: transition en el estado base para que funcione en enter y leave */
  transition:transform .3s ease, box-shadow .3s ease;
}

.card-body{
  padding:24px;
}

.icon-badge{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:var(--brand-soft);
  color:var(--brand-dark);
  font-size:24px;
  font-weight:700;
}

/* ================================
   CARDS DE SERVICIO
================================ */
.service-card{
  display:flex;
  flex-direction:column;
}

.service-card .thumb{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f5f7fa;
  border-radius:20px;
  padding:15px;
  min-height:220px;
}

.service-card .thumb img{
  max-width:100%;
  max-height:200px;
  width:auto;
  height:auto;
  object-fit:contain;
  transition:transform .35s ease;
}

.service-card:hover .thumb img{
  transform:scale(1.035);
}

.service-card p{
  color:var(--muted);
  line-height:1.8;
}

/* ================================
   CARD LINK
================================ */
.card-link{
  text-decoration:none;
  color:inherit;
  display:block;
}

.card-link .card{
  height:100%;
}

/* FIX: hover solo modifica los valores, la transición está en .card */
.card-link:hover .card{
  transform:translateY(-5px);
  box-shadow:0 20px 40px rgba(0,0,0,0.1);
}

/* ================================
   CHIPS
================================ */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.chip{
  padding:8px 12px;
  border-radius:999px;
  background:var(--surface-2);
  color:var(--brand-dark);
  font-weight:700;
  font-size:13px;
}

/* ================================
   CTA BAND
================================ */
.cta-band{
  background:linear-gradient(135deg,#dbf5fa 0%, #f9feff 100%);
  border:1px solid var(--line);
  border-radius:32px;
  padding:28px;
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
}

/* ================================
   HERO PÁGINAS INTERIORES
================================ */
.page-hero{
  position:relative;
  isolation:isolate;
  color:#fff;
  min-height:460px;
  display:flex;
  align-items:center;
}

.page-hero .hero-bg{
  position:absolute;
  inset:0;
  z-index:-2;
  background:#143847;
}

.page-hero .hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.page-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg, rgba(10,28,38,.74) 0%, rgba(10,28,38,.58) 38%, rgba(10,28,38,.24) 100%);
}

.page-hero .hero-inner{
  padding:52px 0 52px;
  align-self:flex-start;
  margin-top:80px;
}

.page-hero h1{
  font-size:clamp(34px,5vw,62px);
  margin-bottom:12px;
}

.page-hero p{
  font-size:19px;
  max-width:760px;
  line-height:1.75;
  color:rgba(255,255,255,.88);
}

/* ================================
   BREADCRUMBS
================================ */
.breadcrumbs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:14px;
  color:rgba(255,255,255,.78);
  margin-bottom:18px;
}

.breadcrumbs a:hover{
  color:#fff;
}

/* ================================
   DOS COLUMNAS
================================ */
.two-col{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:30px;
  align-items:start;
}

/* ================================
   FEATURE LIST
================================ */
.feature-list{
  display:grid;
  gap:14px;
  margin-top:18px;
}

.feature-item{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px 20px;
  display:flex;
  gap:14px;
  align-items:flex-start;
  box-shadow:var(--shadow);
}

.feature-item .tick{
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--brand-soft);
  color:var(--brand-dark);
  display:grid;
  place-items:center;
  font-weight:800;
  flex:0 0 auto;
}

/* ================================
   BLOQUE IMAGEN / CARRUSEL INTERIOR
================================ */
.aside-image{
  height:100%;
  display:flex;
  overflow:hidden;
  border-radius:28px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  background:#fff;
}

.aside-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ================================
   KPIS
================================ */
.kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.kpi{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  box-shadow:var(--shadow);
}

.kpi strong{
  font-size:22px;
  display:block;
}

.kpi span{
  color:var(--muted);
  display:block;
  margin-top:6px;
  line-height:1.55;
}

/* ================================
   STEPS
================================ */
.steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.step{
  position:relative;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  padding:24px;
  box-shadow:var(--shadow);
}

.step-number{
  width:44px;
  height:44px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:800;
  margin-bottom:14px;
}

/* ================================
   IMAGE STRIP
================================ */
.image-strip{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
}

.mini-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  padding:20px;
  box-shadow:var(--shadow);
}

/* ================================
   FOOTER
================================ */
.footer{
  border-top:1px solid var(--line);
  background:#ffffffa8;
  backdrop-filter:blur(10px);
}

.footer-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:28px;
  padding:34px 0;
}

.footer p,
.footer a{
  color:var(--muted);
  line-height:1.7;
}

.footer p strong:first-child{
  white-space:nowrap;
}

.footer-nav{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px 18px;
}

.copy{
  padding:8px 0 24px;
  color:var(--muted);
  font-size:14px;
  border-top:1px solid var(--line);
}

/* ================================
   NAV SECUNDARIA
================================ */
.back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--brand-dark);
  font-weight:700;
}

.page-nav{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-top:28px;
  flex-wrap:wrap;
}

.page-nav a{
  padding:14px 18px;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  font-weight:700;
}

.page-nav a:hover{
  border-color:#b4d9e4;
}

/* ================================
   CARRUSEL INTERIOR GRANDE
================================ */
.hero-image-carousel{
  position:relative;
  width:100%;
  min-height:520px;
  border-radius:28px;
  overflow:hidden;
  background:#eef3f7;
}

.carousel-track{
  display:flex;
  height:100%;
  transition:transform 0.5s ease;
}

.carousel-slide{
  min-width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px;
}

.carousel-slide img{
  width:100%;
  height:100%;
  max-height:440px;
  object-fit:contain;
}

.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border-radius:50%;
  border:none;
  background:transparent;
  color:#fff;
  cursor:pointer;
  z-index:2;
  font-size:22px;
  line-height:1;
  text-shadow:0 2px 8px rgba(0,0,0,.55);
  transition:transform .25s ease, text-shadow .25s ease;
}

.carousel-btn:hover{
  transform:translateY(-50%) scale(1.15);
  text-shadow:0 2px 14px rgba(0,0,0,.75);
}

.carousel-btn.prev{
  left:8px;
}

.carousel-btn.next{
  right:8px;
}

/* ================================
   CONTACTO
================================ */
.contact-hero{
  text-align:center;
}

.contact-hero .lead{
  margin:0 auto;
  max-width:900px;
}

.contact-section{
  padding-top:20px;
}

.contact-wrap{
  display:flex;
  justify-content:center;
}

.contact-card{
  max-width:650px;
  width:100%;
}

.contact-card .card-body{
  padding:22px 22px 20px;
  text-align:left;
}

.contact-card h2{
  margin:0 0 14px;
  text-align:left;
}

.contact-card .lead{
  max-width:none;
  margin:0 0 24px;
  text-align:left;
  font-size:16px;
}

.contact-card .feature-list{
  gap:14px;
  margin-top:18px;
}

.contact-card .feature-item{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:14px 18px;
  display:grid;
  grid-template-columns:40px 1fr;
  gap:14px;
  align-items:center;
  box-shadow:none;
  text-align:left;
}

.contact-card .tick{
  width:40px;
  height:40px;
  border-radius:12px;
  background:var(--brand-soft);
  color:var(--brand-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:18px;
  flex:0 0 auto;
}

.feature-content{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  min-width:0;
}

.feature-content strong{
  display:block;
  margin-bottom:2px;
  font-size:15px;
  line-height:1.3;
  color:var(--text);
}

.feature-content a,
.feature-content span{
  color:var(--text);
  line-height:1.5;
  font-size:15px;
  word-break:break-word;
}

.feature-content a:hover{
  color:var(--brand-dark);
}

/* ================================
   TABLET Y PANTALLAS MEDIAS
================================ */
@media (max-width: 1080px){
  .two-col,
  .footer-grid,
  .image-strip{
    grid-template-columns:1fr;
  }

  .grid-4{
    grid-template-columns:repeat(2,1fr);
  }

  .steps{
    grid-template-columns:repeat(2,1fr);
  }

  .kpi-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* ================================
   TABLET / MÓVIL
================================ */
@media (max-width: 980px){
  .topbar-inner{
    min-height:auto;
    padding:14px 0;
    flex-wrap:wrap;
    row-gap:12px;
    align-items:center;
  }

  .brand img{
    height:46px;
  }

  .menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-left:auto;
  }

  .header-actions{
    gap:10px;
    margin-left:0;
  }

  .topbar .btn{
    display:none;
  }

  .nav{
    display:none;
    width:100%;
    order:10;
    position:static;
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    padding:16px;
    box-shadow:var(--shadow);
    gap:10px;
    flex-direction:column;
    align-items:flex-start;
    margin-left:0;
  }

  .nav.open{
    display:flex;
  }

  .nav a{
    width:100%;
    padding:10px 2px;
  }

  .home-banner{
    padding-top:12px;
  }

  .home-banner-carousel,
  .home-banner-slide img,
  .home-banner-content{
    min-height:420px;
  }

  .home-banner-copy{
    padding:34px 0;
  }

  .home-banner-copy h1{
    font-size:clamp(32px,7vw,48px);
  }

  .hero-image-carousel{
    min-height:360px;
  }

  .carousel-slide img{
    max-height:320px;
  }
}

/* ================================
   MÓVIL PEQUEÑO
================================ */
@media (max-width: 700px){
  .container{
    width:min(calc(100% - 40px), var(--max));
  }

  .grid-3,
  .grid-4,
  .two-col,
  .image-strip,
  .panel-meta,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .kpi-grid{
    grid-template-columns:1fr;
  }

  .kpi{
    min-width:0;
  }

  .steps{
    grid-template-columns:repeat(2,1fr);
  }

  .step{
    min-width:0;
    padding:14px;
  }

  .step h3{
    font-size:clamp(13px,3.8vw,18px);
  }

  .page-hero{
    aspect-ratio:17/10;
    min-height:200px;
  }

  .page-hero .hero-inner{
    margin-top:0;
    padding:28px 0 32px;
  }

  .section{
    padding:34px 0;
  }

  .home-banner-carousel,
  .home-banner-slide img,
  .home-banner-content{
    min-height:360px;
  }

  h1{
    font-size:clamp(30px,8vw,42px);
    line-height:1.08;
  }

  h2{
    font-size:clamp(24px,6vw,32px);
  }

  .lead,
  .page-hero p,
  .home-banner-copy p{
    font-size:16px;
    line-height:1.7;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .page-nav a{
    width:100%;
    justify-content:center;
  }

  .page-nav,
  .hero-buttons{
    flex-direction:column;
  }

  .card,
  .cta-band,
  .aside-image,
  .mini-card{
    border-radius:20px;
  }

  .card-body{
    padding:18px;
  }

  input,
  textarea,
  select{
    font-size:16px;
  }

  .contact-card{
    max-width:100%;
  }

  .contact-card .card-body{
    padding:20px;
  }

  .contact-card .feature-item{
    grid-template-columns:38px 1fr;
    padding:14px 16px;
    gap:12px;
  }

  .contact-card .tick{
    width:38px;
    height:38px;
    font-size:17px;
  }

  .feature-content strong{
    font-size:14px;
  }

  .feature-content a,
  .feature-content span{
    font-size:14px;
    line-height:1.45;
  }
}

@media (max-width: 640px){
  .section{
    padding:52px 0;
  }

  .brand img{
    height:48px;
  }

  .lang-flag{
    width:30px;
    height:22px;
    border-radius:7px;
  }

  .menu-toggle{
    width:42px;
    height:42px;
    border-radius:12px;
    font-size:22px;
  }

  .home-banner{
    padding-top:8px;
  }

  .home-banner-copy{
    padding:24px 0;
  }

  .hero-carousel-btn{
    width:38px;
    height:38px;
    font-size:20px;
  }

  .cta-band{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* ================================
   FOOTER SIMPLIFICADO (sin mapa de web)
================================ */
.footer-simple{
  padding:28px 0 12px;
}

/* Links en el área copyright */
.copy a{
  color:var(--muted);
  text-decoration:none;
  transition:color .2s ease;
}

.copy a:hover{
  color:var(--brand-dark);
}

/* ================================
   PÁGINAS LEGALES
================================ */
.legal-content{
  margin-top:36px;
}

.legal-content h2{
  font-size:clamp(18px,2.2vw,24px);
  margin:36px 0 10px;
  color:var(--text);
}

.legal-content h2:first-child{
  margin-top:0;
}

.legal-content p{
  color:var(--muted);
  line-height:1.85;
  margin:0 0 14px;
}

.legal-content ul{
  margin:0 0 14px;
  padding-left:20px;
}

.legal-content ul li{
  color:var(--muted);
  line-height:1.85;
  margin-bottom:6px;
}

.legal-content a{
  color:var(--brand-dark);
  text-decoration:underline;
  text-underline-offset:3px;
}

.legal-content a:hover{
  color:var(--brand);
}

.legal-content em{
  color:var(--muted);
  font-size:14px;
}

/* ================================
   CONTACTO EN MENÚ MÓVIL
   Visible solo cuando el nav se abre en pantallas pequeñas
================================ */
.nav-contact-link{
  display:none;
}

@media (max-width: 980px){
  .nav-contact-link{
    display:block;
    width:100%;
    padding:10px 2px;
    font-size:15px;
    color:var(--brand-dark);
    font-weight:700;
    border-top:1px solid var(--line);
    margin-top:4px;
    padding-top:14px;
  }
}

/* ================================
   LAYOUT PÁGINA IDEA (hero two-col)
================================ */
.idea-hero{
  padding-top:52px;
  padding-bottom:0;
}

.idea-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.idea-card-img{
  width:100%;
  height:260px;
  object-fit:cover;
  display:block;
}

@media (max-width:700px){
  .idea-hero{
    padding-top:34px;
  }
  .idea-card-img{
    height:200px;
  }
}


/* ================================
   BOTÓN PRODUCTOS — estilo outline
================================ */
.nav-dropdown-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:transparent;
  border:1.5px solid var(--line);
  border-radius:999px;
  padding:11px 20px;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  color:var(--text);
  cursor:pointer;
  white-space:nowrap;
  transition:border-color .2s ease, color .2s ease, background .2s ease;
}

.nav-dropdown-toggle:hover{
  border-color:var(--brand);
  color:var(--brand-dark);
  background:var(--brand-soft);
}

.nav-dropdown-toggle.active{
  border-color:var(--brand);
  color:var(--brand-dark);
}

.nav-dropdown-arrow{
  font-size:11px;
  transition:transform .22s ease;
  display:inline-block;
}

.nav-dropdown.open .nav-dropdown-arrow{
  transform:rotate(180deg);
}

/* ================================
   DROPDOWN PANEL
================================ */
.nav-dropdown{
  position:relative;
}

.nav-dropdown-menu{
  position:absolute;
  top:calc(100% + 14px);
  left:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 20px 60px rgba(19,48,66,.13);
  padding:16px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  min-width:340px;
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index:200;
}

.nav-dropdown.open .nav-dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* ================================
   PILLS DE PRODUCTO dentro del dropdown
================================ */
.nav-dropdown-menu a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  border:1.5px solid var(--line);
  background:#fff;
  font-size:14px;
  font-weight:600;
  color:var(--text);
  text-align:center;
  white-space:nowrap;
  transition:border-color .18s ease, background .18s ease, color .18s ease;
}

.nav-dropdown-menu a:hover{
  border-color:var(--brand);
  background:var(--brand-soft);
  color:var(--brand-dark);
}

.nav-dropdown-menu a.active{
  border-color:var(--brand);
  background:var(--brand-soft);
  color:var(--brand-dark);
  font-weight:700;
}

/* ================================
   MÓVIL — dropdown expandido en el menú hamburguesa
================================ */
@media (max-width: 980px){
  .nav{
    margin-left:0;
    display:none;
    width:100%;
    order:10;
    position:static;
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    padding:16px;
    box-shadow:var(--shadow);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
  }

  .nav.open{
    display:flex;
  }

  /* En móvil: ocultar el botón toggle, mostrar productos planos */
  .nav-dropdown-toggle{
    display:none;
  }

  .nav-dropdown-arrow{ display:none; }

  .nav-dropdown{
    border-top:none;
    padding-top:0;
    margin-top:0;
    width:100%;
  }

  /* Productos siempre visibles en grid 2 col */
  .nav-dropdown-menu{
    position:static;
    transform:none;
    opacity:1;
    visibility:visible;
    max-height:none;
    overflow:visible;
    box-shadow:none;
    border:none;
    border-radius:0;
    padding:0;
    background:transparent;
    min-width:auto;
    width:100%;
    grid-template-columns:1fr 1fr;
    gap:6px;
    transition:none;
    display:grid;
  }

  .nav-dropdown-menu a{
    font-size:13px;
    padding:8px 12px;
  }
}

/* ================================
   BOTÓN INICIO — outline igual que Productos
================================ */
.btn-nav-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:11px 20px;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  background:transparent;
  border:1.5px solid var(--line);
  color:var(--text);
  cursor:pointer;
  white-space:nowrap;
  text-decoration:none;
  transition:border-color .2s ease, color .2s ease, background .2s ease;
}

.btn-nav-outline:hover{
  border-color:var(--brand);
  color:var(--brand-dark);
  background:var(--brand-soft);
}

@media (max-width:980px){
  .nav .btn-nav-outline{
    display:inline-flex;
    width:100%;
    justify-content:center;
    border-radius:14px;
    padding:10px 16px;
    font-size:14px;
    margin-bottom:4px;
  }
}
