/* =========================
FILE: cons.css
========================= */
:root{
  --azul:#28638f;
  --verde:#8bbb3e;
  --naranja:#f08a2b;
  --naranja-2:#e57917;
  --texto:#0f172a;
  --muted:#475569;
  --borde:#e2e8f0;
  --fondo:#f8fafc;
  --card:#ffffff;
  --shadow: 0 10px 24px rgba(2, 6, 23, .08);
  --radius: 16px;
  --max: 1400px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  padding-bottom:70px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--texto);
  background-image:
    linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.92)),
    url("img/fondo-construccion.jpg");
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.wrap{max-width:var(--max); margin:0 auto; padding:0 18px}
.pageMain{padding-top:42px}

/* TOPBAR */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: linear-gradient(180deg, var(--naranja) 0%, var(--naranja-2) 100%);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.topbar__inner{
  width:100%;
  max-width:none;
  margin:0;
  padding:0 18px;
  min-height:116px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  position:relative;
}

/* BRAND */
.brand{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:420px;
  z-index:2;
}

.brand__plate{
  height:116px;
  width:160px;
  background:#fff;
  border-radius:0 24px 24px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 22px rgba(2,6,23,.12);
  margin-left:-18px;
  padding-left:18px;
  padding-right:16px;
}

.brand__logo{
  width:88px;
  height:88px;
  object-fit:contain;
}

.brand__text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brand__top{
  font-weight:950;
  letter-spacing:-.6px;
  font-size:36px;
  line-height:1;
  color:#fff;
}

.brand__bottom{
  margin-top:8px;
  font-weight:850;
  font-size:17px;
  color:#fff;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.t-green{ color: var(--verde); }
.t-orange{ color: #ffb15a; }

/* MENU CENTRADO */
.menu{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  z-index:1;
}

.menu__link{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:800;
  font-size:14px;
  color:rgba(255,255,255,.95);
  white-space:nowrap;
}

.menu__link:hover{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.18);
}

.menu__link.is-active{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.22);
}

/* REDES */
.topbar__social{
  display:flex;
  align-items:center;
  gap:10px;
  z-index:2;
}

.socialBtn{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.14);
  display:grid;
  place-items:center;
}

.socialBtn svg{
  fill:#fff;
  width:20px;
  height:20px;
}

.socialBtn:hover{
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.38);
}

/* BOTONES */
.btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--borde);
  background:#8fbc4a; /* más pastel */
  font-weight:800;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  box-shadow: 0 8px 18px rgba(143,188,74,.25);
  color: #fff;
  transition: all .25s ease;
}
.btn:hover {
  background:#7aa63f;
  transform:translateY(-2px);
}

.btn--primary{
  border:none;
  background:#8fbc4a; /* más pastel */
  color:#fff;
  font-weight:900;
  box-shadow: 0 8px 18px rgba(143,188,74,.25);
  transition: all .25s ease;
}

.btn--primary:hover{
  background:#7aa63f;
  transform:translateY(-2px);
}

.btn--info{
  border:none;
  background:#3a7ca5; /* azul elegante */
  color:#fff;
  font-weight:900;
  box-shadow:0 8px 18px rgba(58,124,165,.25);
  transition:all .25s ease;
}
 
.btn--info:hover{
  background:#2f6789;
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(58,124,165,.35);
}

/* VIEWS */
.view{
  display:none;
  padding:42px 0 24px;
  animation: fade .16s ease;
}

.view.is-visible{display:block}

@keyframes fade {
  from{opacity:.2; transform: translateY(6px)}
  to{opacity:1; transform:translateY(0)}
}

/* HERO */
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #d6e7f3;
  background:#f1f8fd;
  color:#123b5a;
  font-weight:800;
  font-size:13px;
}

.dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background: var(--verde);
  box-shadow: 0 0 0 4px rgba(139,187,62,.18);
}

h1{
  margin:14px 0 10px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height:1.05;
  letter-spacing:-.6px;
}

.lead{
  margin:0;
  color:var(--muted);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height:1.65;
  max-width:62ch;
}

.hero{padding-top:10px}

.hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  margin-top:18px;
}

.hero__card{
  background: var(--card);
  border:1px solid var(--borde);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.hero__media{
  min-height:330px;
  background:
    linear-gradient(135deg, rgba(40,99,143,.18), rgba(139,187,62,.10)),
    url("../assets/hero-proyecto.jpg");
  background-size:cover;
  background-position:center;
}

.hero__panel{padding:16px}
.hero__panel h3{margin:0 0 6px}
.hero__panel p{margin:0; color:var(--muted); line-height:1.6}
.hero__actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.hero__meta{display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; color:var(--muted); font-size:13px}

/* SECTION HEAD */
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin:26px 0 16px;
}

.section__head--top{
  margin-top:6px;
}

.section__head h2{
  margin:0;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing:-.3px;
}

.section__head p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

/* FILTRO */
.filters{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.chip{
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--borde);
  background:#fff;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
}

.chip:hover{
  background:#eef6fb;
  border-color:#d6e7f3;
}

.chip.is-active{
  background: rgba(40,99,143,.10);
  border-color: rgba(40,99,143,.18);
}

/* CARDS - SERVICIOS */
.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}

.card{
  position:relative;
  background:var(--card);
  border:1px solid var(--borde);
  border-radius:var(--radius);
  box-shadow:0 10px 22px rgba(2,6,23,.06);
  overflow:hidden;
  cursor:pointer;
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease;
}

.card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 40px rgba(2,6,23,.14);
  border-color:rgba(40,99,143,.22);
}

.card__img{
  height:275px;
  background:#fff;
  overflow:hidden;
}

.card__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}

.card:hover .card__img img{
  transform:scale(1.07);
}

.card__body{
  padding:16px;
  transition:background .28s ease;
}

.card:hover .card__body{
  background:linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:850;
  background:rgba(40,99,143,.10);
  color:#123b5a;
  border:1px solid rgba(40,99,143,.16);
  transition:
    background .28s ease,
    border-color .28s ease,
    transform .28s ease;
}

.card:hover .tag{
  background:rgba(139,187,62,.14);
  border-color:rgba(139,187,62,.28);
  transform:translateY(-1px);
}

.tag .mini{
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--verde);
}

.card h3{
  margin:10px 0 6px;
  font-size:16px;
  transition:color .28s ease;
}

.card:hover h3{
  color:var(--azul);
}

.card p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}

.serviceCard.is-hidden{
  display:none;
}

/* GALLERY - SOLO PÁGINA NUESTRO TRABAJO */
.page-trabajo .gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}

.page-trabajo .shot{
  position:relative;
  border-radius:18px;
  border:1px solid var(--borde);
  overflow:hidden;
  background:#fff;
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}

.page-trabajo .shot:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(2,6,23,.14);
}

.page-trabajo .shot__img{
  width:100%;
  height:240px;
  position:relative;
  overflow:hidden;
  background:#f8fafc;
}

.page-trabajo .shot__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform .4s ease;
}

.page-trabajo .shot:hover .shot__img img{
  transform: scale(1.08);
}

.page-trabajo .shot__body{
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  padding:16px;
  background:linear-gradient(
    to top,
    rgba(0,0,0,.78),
    rgba(0,0,0,.15),
    rgba(0,0,0,0)
  );
  color:#fff;
  z-index:2;
}

.page-trabajo .shot__title{
  margin:0 0 4px;
  font-size:16px;
  font-weight:900;
  line-height:1.35;
  color:#fff;
}

.page-trabajo .shot__label{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  color:rgba(255,255,255,.95);
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:6px 10px;
  backdrop-filter: blur(4px);
}

.page-trabajo .shot::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0);
  transition:background .3s ease;
  z-index:1;
}

.page-trabajo .shot:hover::after{
  background:rgba(255,255,255,.08);
}

/* CONTACT */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

.contact__card{
  background: var(--card);
  border:1px solid var(--borde);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.contact__media{
  height:295px;
  overflow:hidden;
}

.contact__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.contact__body{padding:16px}
.contact__body h3{margin:0 0 6px}
.contact__body p{margin:0; color:var(--muted); line-height:1.6}
.contact__actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.muted{color:var(--muted); line-height:1.7}

.contact__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:12px;
}

.miniShot{
  border:1px solid var(--borde);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:14px;
  gap:10px;
  transition:transform .25s ease, box-shadow .25s ease;
}

.miniShot img{
  max-width:100%;
  max-height:160px;
  object-fit:contain;
  image-rendering:crisp-edges;
  transition:transform .25s ease;
}

.miniShot span{
  display:block;
  color:var(--muted);
  font-weight:750;
  font-size:13px;
  text-align:center;
}

.miniShot:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 24px rgba(2,6,23,.12);
}

.miniShot:hover img{
  transform:scale(1.06);
}

/* FOOTER */
.footer{
  padding:28px 0 40px;
  border-top:1px solid var(--borde);
  color:var(--muted);
  font-size:14px;
  margin-top:28px;
}

/* RESPONSIVE */
@media (max-width: 1100px){
  .menu{
    position:static;
    transform:none;
  }

  .topbar__inner{
    padding:10px 18px;
    min-height:unset;
    gap:12px;
  }

  .brand{
    min-width:auto;
  }

  .brand__plate{
    height:86px;
    width:128px;
  }

  .brand__logo{
    width:68px;
    height:68px;
  }

  .brand__top{
    font-size:26px;
  }

  .brand__bottom{
    font-size:14px;
  }
}

@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr 1fr}
  .page-trabajo .gallery{grid-template-columns:1fr 1fr}
  .contact{grid-template-columns:1fr}
  .page-trabajo .shot__img{height:220px;}
}

@media (max-width: 560px){
  .grid{grid-template-columns:1fr}
  .page-trabajo .gallery{grid-template-columns:1fr}
  .menu__link{padding:9px 10px}
  .brand__top{font-size:22px}
  .brand__bottom{font-size:13px}
  .brand__plate{
    width:110px;
    height:78px;
  }
  .brand__logo{
    width:58px;
    height:58px;
  }
  .page-trabajo .shot__img{height:210px;}
}

/* BARRA DE AVISO DE PRIVACIDAD */
.legalBar{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  background:#111;
  border-top:1px solid rgba(255,255,255,.08);
  transform:translateY(100%);
  transition:transform .35s ease;
  z-index:1000;
}

.legalBar.show{
  transform:translateY(0);
}

.legalBar__inner{
  width:100%;
  max-width:none;
  margin:0;
  padding:14px 18px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:36px;
  flex-wrap:wrap;
  text-align:center;
}

.legalBar__inner a{
  color:#fff;
  font-size:14px;
  font-weight:600;
  letter-spacing:.2px;
  transition:opacity .25s ease;
}

.legalBar__inner a:hover{
  opacity:.75;
}

/* DETALLE DE SERVICIO */
.serviceLink{
  display:block;
}
 
.serviceDetail{
  padding-top:10px;
}
 
.backLink{
  display:inline-flex;
  align-items:center;
  gap:10px;

  padding:12px 18px;
  border-radius:14px;

  background:#fff;
  border:1px solid var(--borde);

  font-weight:900;
  font-size:15px;
  color:var(--azul);

  box-shadow: 0 8px 20px rgba(2,6,23,.08);

  transition: all .25s ease;
}

/* icono */
.backIcon{
  display:flex;
  align-items:center;
  justify-content:center;

  width:28px;
  height:28px;

  border-radius:999px;
  background:#eef6fb;

  transition: all .25s ease;
}

.backIcon svg{
  width:16px;
  height:16px;
}

/* hover elegante */
.backWrapper{
  width:100%;
  padding:24px 32px 10px;
}
.backLink:hover{
  transform:translateY(-2px);
  box-shadow: 0 12px 24px rgba(2,6,23,.12);
  background:#f8fafc;
}

/* animación de flecha */
.backLink:hover .backIcon{
  transform:translateX(-3px);
  background:#dbeafe;
}
.serviceDetail__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:20px;
  align-items:start;
}
 
.serviceDetail__media{
  background:#fff;
  border:1px solid var(--borde);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
 
.serviceDetail__media img{
  width:100%;
  height:520px;
  object-fit:cover;
  display:block;
}
 
.serviceDetail__content{
  display:flex;
  flex-direction:column;
  gap:14px;
}
 
.serviceDetail__content h1{
  margin:0;
}
 
.serviceDetail__card{
  background:#fff;
  border:1px solid var(--borde);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
 
.serviceDetail__card h3{
  margin:0 0 8px;
}
 
.serviceDetail__card p{
  margin:0;
  color:var(--muted);
  line-height:1.75;
}
 
.serviceDetail__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
 
@media (max-width: 980px){
  .serviceDetail__grid{
    grid-template-columns:1fr;
  }
 
  .serviceDetail__media img{
    height:360px;
  }
}

/* CONTENEDOR */
.topbar__social{
  display:flex;
  align-items:center;
  gap:10px;
}
 
/* BOTÓN */
.social-link{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  transition: all .25s ease;
}
 
/* IMAGEN (CLAVE 🔥) */
.social-link img{
  width:22px;
  height:22px;
  object-fit:contain;
}
 
/* HOVER */
.social-link:hover{
  background: rgba(0,0,0,.22);
  transform:translateY(-2px);
}

/* =========================
   PÁGINAS LEGALES
========================= */
/* =========================
   LEGAL PAGES
========================= */
.page-legal .pageMain{
  padding-top:28px;
}

.legalLayout{
  position:relative;
  padding-bottom:24px;
}

.legalLayout::before,
.legalLayout::after{
  content:"";
  position:absolute;
  pointer-events:none;
  opacity:.10;
}

.legalLayout::before{
  left:-6px;
  top:110px;
  width:120px;
  height:360px;
  background:
    linear-gradient(45deg, transparent 43%, rgba(15,23,42,.22) 43%, rgba(15,23,42,.22) 49%, transparent 49%),
    linear-gradient(-45deg, transparent 43%, rgba(15,23,42,.12) 43%, rgba(15,23,42,.12) 49%, transparent 49%);
  background-size:34px 34px;
}

.legalLayout::after{
  right:8px;
  bottom:30px;
  width:190px;
  height:220px;
  background:
    linear-gradient(to bottom, rgba(15,23,42,.14) 0 10px, transparent 10px 22px),
    linear-gradient(to right, rgba(15,23,42,.10) 0 34px, transparent 34px 68px);
  background-size:140px 140px, 140px 140px;
}

.legalTop{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
}

.legalBack{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:12px;
  background:linear-gradient(180deg, var(--naranja) 0%, var(--naranja-2) 100%);
  color:#fff;
  font-weight:900;
  box-shadow:0 10px 22px rgba(240,138,43,.24);
  transition:all .25s ease;
}

.legalBack:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(240,138,43,.30);
}

.legalBack__icon{
  width:26px;
  height:26px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.16);
}

.legalBack__icon svg{
  width:16px;
  height:16px;
}

.legalHeading{
  margin:0;
  text-align:center;
  font-size:clamp(28px, 2.4vw, 40px);
  line-height:1.1;
  letter-spacing:-.5px;
  color:#333;
}

.legalTop__space{
  min-width:120px;
}

.legalFrame{
  position:relative;
  border-radius:22px;
  padding:12px;
  background:rgba(255,255,255,.26);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 18px 36px rgba(2,6,23,.10);
  backdrop-filter:blur(5px);
}

.legalScroll{
  max-height:74vh;
  overflow-y:auto;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);
  background:
    linear-gradient(rgba(255,255,255,.74), rgba(255,255,255,.80));
  padding:28px 22px 30px;
  scrollbar-width:thin;
  scrollbar-color:rgba(15,23,42,.30) rgba(15,23,42,.08);
}

.legalScroll::-webkit-scrollbar{
  width:10px;
}

.legalScroll::-webkit-scrollbar-track{
  background:rgba(15,23,42,.06);
  border-radius:999px;
}

.legalScroll::-webkit-scrollbar-thumb{
  background:rgba(15,23,42,.28);
  border-radius:999px;
}

.legalArticle{
  max-width:1180px;
  margin:0 auto;
  color:#1f2937;
  font-size:18px;
  line-height:2;
}

.legalLead{
  font-size:19px;
}

.legalArticle p{
  margin:0 0 18px;
  text-align:justify;
}

.legalArticle h2{
  margin:30px 0 12px;
  padding-bottom:8px;
  font-size:28px;
  line-height:1.25;
  color:#15212d;
  border-bottom:1px solid rgba(40,99,143,.12);
}

.legalArticle h3{
  margin:22px 0 10px;
  font-size:22px;
  color:#15212d;
}

.legalDivider{
  width:100%;
  height:1px;
  margin:24px 0 28px;
  background:linear-gradient(
    to right,
    transparent,
    rgba(40,99,143,.18),
    transparent
  );
}

.legalInfoBox{
  margin:18px 0 24px;
  padding:18px 18px;
  border-radius:16px;
  border:1px solid rgba(40,99,143,.12);
  background:linear-gradient(180deg, rgba(40,99,143,.06), rgba(139,187,62,.05));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}

.legalInfoBox p{
  margin:0 0 10px;
}

.legalInfoBox p:last-child{
  margin-bottom:0;
}

.legalNote{
  margin:18px 0 22px;
  padding:16px 18px;
  border-left:4px solid var(--verde);
  border-radius:14px;
  background:rgba(139,187,62,.09);
  color:#334155;
  line-height:1.85;
}

.legalList{
  margin:0 0 18px 0;
  padding:0;
  list-style:none;
}

.legalList li{
  position:relative;
  margin-bottom:12px;
  padding-left:22px;
}

.legalList li::before{
  content:"";
  position:absolute;
  left:0;
  top:13px;
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--verde);
  box-shadow:0 0 0 4px rgba(139,187,62,.14);
}

.legalList--ordered{
  counter-reset:legalCount;
}

.legalList--ordered li{
  padding-left:42px;
}

.legalList--ordered li::before{
  counter-increment:legalCount;
  content:counter(legalCount);
  width:26px;
  height:26px;
  top:4px;
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:900;
  color:#fff;
  background:var(--azul);
  box-shadow:none;
}

.legalUpdate{
  color:var(--muted);
  font-size:15px;
  padding-top:4px;
}

@media (max-width: 980px){
  .legalTop{
    grid-template-columns:1fr;
  }

  .legalHeading{
    width:100%;
    text-align:center;
  }

  .legalTop__space{
    display:none;
  }
}

@media (max-width: 560px){
  .legalFrame{
    padding:8px;
    border-radius:18px;
  }

  .legalScroll{
    max-height:none;
    padding:18px 14px 22px;
  }

  .legalArticle{
    font-size:16px;
    line-height:1.9;
  }

  .legalLead{
    font-size:17px;
  }

  .legalArticle h2{
    font-size:22px;
  }

  .legalArticle h3{
    font-size:19px;
  }

  .legalBack{
    padding:11px 16px;
    font-size:14px;
  }

  .legalList--ordered li{
    padding-left:38px;
  }
}

/* =========================
   MOBILE PREMIUM PDI CONS
========================= */
@media (max-width: 768px) {
 
  body {
    padding-bottom: 0;
    background-attachment: scroll;
  }
 
  .wrap {
    padding: 0 14px;
  }
 
  .pageMain {
    padding-top: 28px;
  }
 
  /* HEADER */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 100;
  }
 
  .topbar__inner {
    min-height: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
 
  .brand {
    width: 100%;
    min-width: 0;
    height: 78px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
 
  .brand__plate {
    width: 82px;
    min-width: 82px;
    height: 100%;
    margin-left: 0;
    padding: 0;
    border-radius: 0 16px 16px 0;
  }
 
  .brand__logo {
    width: 62px;
    height: 62px;
  }
 
  .brand__text {
    flex: 1;
    padding-right: 10px;
  }
 
  .brand__top {
    font-size: 20px;
    line-height: 1.05;
  }
 
  .brand__bottom {
    margin-top: 4px;
    font-size: 11px;
    gap: 4px;
    line-height: 1.2;
  }
 
  /* MENU MÓVIL TIPO PÍLDORAS */
  .menu {
    position: static;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 10px 12px 12px;
    background: rgba(0,0,0,0.08);
    scrollbar-width: none;
  }
 
  .menu::-webkit-scrollbar {
    display: none;
  }
 
  .menu__link {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
  }
 
  .menu__link.is-active {
    background: #fff;
    color: var(--naranja-2);
  }
 
  .topbar__social {
    display: none;
  }
 
  /* HERO */
  .hero {
    padding-top: 0;
  }
 
  .kicker {
    font-size: 12px;
    padding: 7px 10px;
  }
 
  h1 {
    font-size: 27px;
    line-height: 1.08;
    margin: 14px 0 10px;
  }
 
  .lead {
    font-size: 15px;
    line-height: 1.6;
  }
 
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }
 
  .hero__media {
    min-height: 210px;
  }
 
  .hero__card {
    border-radius: 18px;
  }
 
  .hero__panel {
    padding: 18px 16px;
  }
 
  .hero__panel h3 {
    font-size: 19px;
  }
 
  .hero__actions {
    margin-top: 14px;
  }
 
  .btn,
  .btn--primary {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }
 
  .hero__meta {
    flex-direction: column;
    gap: 6px;
  }
 
  /* TITULOS Y FILTROS */
  .section__head {
    display: block;
    margin: 28px 0 16px;
  }
 
  .section__head h2 {
    font-size: 24px;
  }
 
  .section__head p {
    font-size: 14px;
    margin-top: 4px;
  }
 
  .filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-top: 14px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
 
  .filters::-webkit-scrollbar {
    display: none;
  }
 
  .chip {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 9px 12px;
  }
 
  /* CARDS SERVICIOS */
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
 
  .card {
    border-radius: 18px;
  }
 
  .card__img {
    height: 210px;
  }
 
  .card__body {
    padding: 16px;
  }
 
  .card h3 {
    font-size: 17px;
    line-height: 1.3;
  }
 
  .card p {
    font-size: 14px;
    line-height: 1.55;
  }
 
  .tag {
    font-size: 11px;
  }
 
  /* LEGAL BAR */
  .legalBar__inner {
    padding: 12px 10px;
    gap: 12px;
    flex-wrap: nowrap;
  }
 
  .legalBar__inner a {
    font-size: 11px;
    white-space: nowrap;
  }
}
 