﻿/* styles.css */
/* ===== Variables / base ===== */
:root{
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --brand: #0D6B5E;
  --brand2:#1aa189;

  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.10);
  --stroke: rgba(255,255,255,.14);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1120px;
  --max-lg: 1240px;
  --header-height: 0px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

*{ box-sizing:border-box; }
*::before,*::after{ box-sizing:border-box; }
html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img{ max-width:100%; height:auto; }
button, input, textarea{ font: inherit; }
:focus{
  outline: 2px solid rgba(26,161,137,.65);
  outline-offset: 2px;
}
:focus:not(:focus-visible){ outline: none; }
html{ scroll-behavior:smooth; scroll-padding-top: 90px; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(13,107,94,.35), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(26,161,137,.22), transparent 50%),
    linear-gradient(180deg, #070b14, #0b1220 35%, #070b14);
  line-height:1.55;
  overflow-x:hidden;
}
@keyframes driftGlow{
  0%{
    transform: translate3d(-2%, -1%, 0) scale(1);
    opacity:.72;
  }
  50%{
    transform: translate3d(2%, 1.5%, 0) scale(1.06);
    opacity:.95;
  }
  100%{
    transform: translate3d(-1%, 2%, 0) scale(1.02);
    opacity:.72;
  }
}
@keyframes sectionFloat{
  0%{
    transform: translate3d(0, 0, 0) scale(1);
  }
  50%{
    transform: translate3d(1.5%, -1.5%, 0) scale(1.04);
  }
  100%{
    transform: translate3d(-1%, 1%, 0) scale(1.01);
  }
}
a{ color:inherit; text-decoration:none; }
.container{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }

/* ===== Accesibilidad ===== */
.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  z-index:2001;
  padding:10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.75);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--text);
}
.skip-link:focus{ left:10px; }
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

.text{ color: var(--text); }
.small{ font-size:.92rem; }
.spacer{ height:10px; }
.accent{ color: var(--brand2); }
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  margin-bottom:14px;
  border-radius:999px;
  color: rgba(255,255,255,.78);
  font-size:.8rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.eyebrow::before{
  content:'';
  width:8px;
  height:8px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--brand2), #9ae6d8);
  box-shadow: 0 0 0 6px rgba(26,161,137,.12);
}

/* ===== Progress ===== */
.progress{
  position:fixed; top:0; left:0; height:3px;
  width:0%;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  z-index:1000;
  box-shadow: 0 8px 24px rgba(26,161,137,.20);
}

/* ===== Header ===== */
header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7,11,20,.55);
  border-bottom: 1px solid var(--stroke);
  transition: background .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}
@supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))){
  header{ background: rgba(7,11,20,.92); }
}
body:not(.menu-open) header.is-overlay{
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.topbar{
  display:grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items:center;
  padding:14px 0; gap:16px;
}
.brandwrap{ display:flex; align-items:center; gap:12px; min-width: 220px; }
.brandwrap img{
  width:45px; height:auto; display:block;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.25));
}
.brandwrap .name{ display:flex; flex-direction:column; line-height:1.15; }
.brandwrap .name strong{ letter-spacing:.5px; }
.brandwrap .name span{ color:var(--muted); font-size:.88rem; }

nav{
  display:flex;
  align-items:center;
  justify-content:center;
  justify-self:center;
  gap:10px;
  flex-wrap:wrap;
}
nav a:not(.btn){
  color:var(--muted);
  padding:9px 10px;
  border-radius:12px;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  font-weight:700;
  font-size:.95rem;
  border:1px solid transparent;
}
nav a:not(.btn):hover{
  background: rgba(255,255,255,.06);
  color:var(--text);
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.12);
}
nav a:not(.btn).active{
  background: rgba(13,107,94,.18);
  border-color: rgba(26,161,137,.28);
  color: rgba(255,255,255,.92);
}

/* ===== Nav CTA (boton dentro de la barra de navegacion) ===== */
.btn.nav-btn{
  padding:9px 12px;
  border-radius:12px;
  box-shadow:none;
}
.btn.nav-btn:hover{
  box-shadow: 0 14px 36px rgba(0,0,0,.24), 0 0 0 6px rgba(26,161,137,.10);
}
.btn.nav-btn:active{ box-shadow:none; }
.btn.nav-btn.active{
  border-color: rgba(26,161,137,.55);
  box-shadow: 0 0 0 4px rgba(26,161,137,.20);
}

.cta{ display:flex; align-items:center; gap:10px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px; padding:7px 7px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: var(--surface);
  color:var(--text);
  font-weight:700;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  cursor:pointer;
  white-space:nowrap;
  user-select:none;
}
.btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 18px 45px rgba(0,0,0,.28), 0 0 0 6px rgba(26,161,137,.10);
  filter: saturate(1.1);
}
.btn:active{ transform: translateY(0px) scale(.99); }
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(26,161,137,.25), 0 18px 45px rgba(0,0,0,.28);
  border-color: rgba(26,161,137,.55);
}
.btn.primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: rgba(255,255,255,.14);
}
.btn.primary:hover{
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 18px 45px rgba(0,0,0,.28), 0 0 0 6px rgba(26,161,137,.16);
}

.menu-btn{ display:none; }
@media (max-width: 920px){
  .topbar{ grid-template-columns: minmax(0, 1fr) auto; }
  nav{ display:none; }
  .menu-btn{ display:inline-flex; }
  .menu-btn{ justify-self:end; }
  .brandwrap img{ width:42px; }
  .brandwrap{ min-width: auto; }
  .brandwrap .name span{ display:none; }
}
.mobile{ display:none; border-top:1px solid var(--stroke); padding:12px 0 16px; }
.mobile{
  background: linear-gradient(180deg, rgba(7,11,20,.96), rgba(7,11,20,.88));
  border-radius: 0 0 18px 18px;
}
@media (max-width: 920px){
  .mobile{ display:block; }
  .mobile[hidden]{ display:none !important; }
}

.mobile a:not(.btn){
  display:block; padding:13px 12px; color:var(--muted);
  border-radius:14px; font-weight:800; border:1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.mobile a:not(.btn):hover{ background:var(--surface); color:var(--text); border-color: rgba(255,255,255,.14); }
.mobile a:not(.btn).active{ background: rgba(13,107,94,.18); color: var(--text); border-color: rgba(26,161,137,.28); }
body.menu-open{ overflow:hidden; }

/* ===== Cards + reveal ===== */
.card{
  background: rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.show{
  opacity:1;
  transform: translateY(0);
}

/* ===== Hero ===== */
.hero{ padding:54px 0 22px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .9fr;
  gap:26px;
  align-items:stretch;
}
@media (max-width: 920px){
  .hero{ padding:34px 0 18px; }
  .hero-grid{ grid-template-columns:1fr; }
}
.hero .card{ padding:26px; }
.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:100%;
}

/* ===== Hero con imagen de fondo (solo en #inicio / main) ===== */
.hero.hero-bg{
  position:relative;
  overflow:hidden;
  margin-top: calc(var(--header-height) * -1);
  padding: calc(84px + var(--header-height)) 0 54px;
}
@media (max-width: 920px){
  .hero.hero-bg{ padding: calc(54px + var(--header-height)) 0 26px; }
}
.hero.hero-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/inicio.jpg") center / cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
  z-index:0;
}
.hero.hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  /* Overlay para legibilidad (funciona bien en Safari/iOS) */
  background:
    radial-gradient(900px 520px at 15% 30%, rgba(13,107,94,.35), transparent 58%),
    linear-gradient(90deg, rgba(7,11,20,.88), rgba(7,11,20,.62) 48%, rgba(7,11,20,.86));
  z-index:0;
}
.hero.hero-bg .container{ position:relative; z-index:1; }
.hero.hero-bg .hero-copy{
  padding: 0;
  max-width: 720px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero.hero-bg .eyebrow,
.hero.hero-bg h1,
.hero.hero-bg .lead{
  text-shadow: 0 3px 18px rgba(0,0,0,.42);
}
.hero.hero-bg .accent{
  text-shadow: 0 4px 22px rgba(0,0,0,.5);
}

/* Meta strip (credenciales) */
.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 14px 0 4px;
}
.hero-meta .meta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color: var(--muted);
  font-weight:850;
  font-size:.92rem;
}
.hero-meta .meta strong{
  color: rgba(255,255,255,.92);
  font-weight:950;
}
h1{
  margin:0 0 10px;
  font-size: 2.2rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height:1.12;
  letter-spacing: .2px;
}
.lead{
  margin: 0 0 18px;
  color: rgba(255,255,255,.82);
  font-size: 1.08rem;
  max-width: 60ch;
}
.chips{ display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 18px; }
.chip{
  padding:8px 10px; border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight:800; font-size:.9rem;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.chip:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); }
.hero-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 12px; }
.hero-actions .btn{ min-width: 210px; }

.side{ padding:22px; display:flex; flex-direction:column; gap:14px; }
.kpi{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.kpi .box{
  padding:14px; border-radius:16px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--stroke);
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.kpi .box:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
  border-color: rgba(26,161,137,.22);
}
.kpi .box strong{ display:block; font-size:1.15rem; }
.kpi .box span{ color:var(--muted); font-weight:750; font-size:.92rem; }
.hero-experience{
  position:relative;
  align-self:center;
  width:min(100%, 320px);
  padding:16px 18px;
  text-align:center;
  overflow:hidden;
  border-color: rgba(26,161,137,.34);
  background:
    radial-gradient(140px 80px at 50% 0%, rgba(26,161,137,.22), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  box-shadow: 0 18px 38px rgba(0,0,0,.26), 0 0 0 1px rgba(26,161,137,.08);
  animation: sectionFloat 5.5s ease-in-out infinite;
}
.hero-experience::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  width:88px;
  height:3px;
  border-radius:999px;
  transform:translateX(-50%);
  background: linear-gradient(90deg, var(--brand), #7ce7d3);
  box-shadow: 0 8px 22px rgba(26,161,137,.32);
}
.hero-experience-mark{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
  color: rgba(255,255,255,.72);
  font-size:.74rem;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.hero-experience-mark::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--brand2), #9ae6d8);
  box-shadow: 0 0 0 6px rgba(26,161,137,.12);
}
.hero-experience strong{
  display:block;
  font-size:1.02rem;
  line-height:1.35;
  text-wrap:balance;
}
.hero-experience strong span{
  color: #bdf5eb;
  font-size:1.25em;
  font-weight:950;
  text-shadow: 0 0 20px rgba(26,161,137,.20);
}
.note{
  padding:14px; border-radius:16px;
  border:1px dashed rgba(255,255,255,.22);
  background: rgba(13,107,94,.10);
  color: var(--muted);
}

.trust-band{
  position:relative;
  margin-top:15px;
  z-index:2;
}
.trust-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
.trust-item{
  padding:18px 20px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background: linear-gradient(180deg, rgba(10,17,28,.92), rgba(9,14,24,.82));
  box-shadow: 0 18px 45px rgba(0,0,0,.24);
}
.trust-item strong{
  display:block;
  margin-bottom:6px;
  font-size:1rem;
}
.trust-item span{
  color: var(--muted);
}

/* ===== Band sections (tus reglas originales) ===== */
section.band{
  position:relative;
  padding: 62px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  isolation:isolate;
  overflow:hidden;
}
section.band::before{
  content:"";
  position:absolute; inset:-8%;
  background: radial-gradient(900px 520px at 15% 30%, rgba(255,255,255,.06), transparent 55%);
  opacity:.95;
  z-index:-1;
  pointer-events:none;
  animation: sectionFloat 18s ease-in-out infinite alternate;
  will-change: transform;
}
section.band::after{
  content:"";
  position:absolute;
  inset:-12%;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(650px 420px at 78% 26%, rgba(26,161,137,.10), transparent 60%),
    radial-gradient(560px 360px at 22% 74%, rgba(13,107,94,.10), transparent 58%);
  opacity:.72;
  animation: driftGlow 24s ease-in-out infinite alternate-reverse;
  will-change: transform;
}
#nosotros.band::before{
  background:
    radial-gradient(900px 520px at 15% 35%, rgba(13,107,94,.22), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
}
#servicios.band::before{
  background:
    radial-gradient(900px 520px at 85% 25%, rgba(26,161,137,.20), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.00));
}
#proceso.band::before{
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(120, 162, 255, .14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.00));
}
#cotizacion.band::before{
  background:
    radial-gradient(900px 520px at 80% 30%, rgba(255, 195, 120, .12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.00));
}
#contacto.band::before{
  background:
    radial-gradient(900px 520px at 30% 30%, rgba(26,161,137,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
}

.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px; margin-bottom:16px;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.78rem;
  margin-bottom:10px;
}
.kicker::before{
  content: "";
  width: 26px;
  height: 26px;
  display: inline-block;
  background-image: url('/img/info.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
h2{ margin:0; font-size: 1.65rem; letter-spacing:.2px; }
.section-head p{ margin:6px 0 0; color:var(--muted); max-width:78ch; }

.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
@media (max-width: 1100px){ .grid-3{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width: 720px){ .grid-3{ grid-template-columns:1fr; } }

.tile{
  padding:18px;
  border-radius: var(--radius);
  
  background: rgba(255,255,255,.05);
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.tile:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
  border-color: rgba(26,161,137,.20);
}
.tile h3{ margin:0 0 6px; font-size:1.05rem; }
.tile p{ margin:0; color:var(--muted); }
.tile-copy p + p,
.tile-copy ul,
.tile-copy ul + p{ margin-top:12px; }

.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:start;
}
@media (max-width: 920px){ .split{ grid-template-columns:1fr; } }

ul{ margin:10px 0 0; padding-left: 18px; color:var(--muted); }
li{ margin:6px 0; }

.pill{
  display:inline-block;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  color: var(--muted);
  font-weight:900;
  font-size:.9rem;
  margin: 6px 8px 0 0;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.pill:hover{ transform: translateY(-1px); border-color: rgba(26,161,137,.25); }

.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 920px){ .contact{ grid-template-columns:1fr; } }
@media (max-width: 920px){
  .trust-grid{ grid-template-columns:1fr; }
}
label{ display:block; font-weight:850; margin:10px 0 6px; }
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
textarea{ min-height: 120px; resize: vertical; }
input:focus, textarea:focus{
  border-color: rgba(26,161,137,.6);
  box-shadow: 0 0 0 4px rgba(26,161,137,.15);
}

/* ===== Footer + signature + fab ===== */
footer{
  padding: 26px 0 36px;
  color: var(--muted);
  border-top:1px solid var(--stroke);
  margin-top: 18px;
  background: rgba(0,0,0,.12);
}
.footer-grid{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.footer-signature{
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  text-align:center;
}
.footer-signature .sig-label{
  color: rgba(255,255,255,.42);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.footer-signature .sig-name{
  display:inline-block;
  text-decoration:none;
  padding:0;
  border:none;
  background:none;
  box-shadow:none;
}
.footer-signature .sig-text{
  position:relative;
  display:inline-block;
  font-size:1.02rem;
  font-weight:900;
  letter-spacing:.03em;
  color: rgba(255,255,255,.78);
  text-shadow: 0 0 0 rgba(26,161,137,0);
  transition: color .35s var(--ease), text-shadow .45s var(--ease), filter .45s var(--ease);
}
.footer-signature .sig-text::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-4px;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(26,161,137,.88), transparent);
  opacity:0;
  transform: scaleX(.7);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.footer-signature .sig-name:hover .sig-text,
.footer-signature .sig-name:focus-visible .sig-text{
  color: #d9fff8;
  text-shadow: 0 0 10px rgba(26,161,137,.22), 0 0 24px rgba(26,161,137,.18), 0 0 42px rgba(26,161,137,.10);
  filter: saturate(1.08);
}
.footer-signature .sig-name:hover .sig-text::after,
.footer-signature .sig-name:focus-visible .sig-text::after{
  opacity:1;
  transform: scaleX(1);
}
.footer-signature .sig-name:focus-visible{
  outline:none;
}
@media (max-width: 520px){
  .footer-signature{
    gap:6px;
  }
  .footer-signature .sig-label{
    width:100%;
    font-size:.72rem;
  }
  .footer-signature .sig-text{
    font-size:.96rem;
  }
}
.fab{
  --fab-size: 58px;
  --fab-offset: 18px;
  --fab-lift: 0px;
  position:fixed;
  right: calc(var(--fab-offset) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--fab-offset) + var(--fab-lift) + env(safe-area-inset-bottom, 0px));
  z-index:120;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:var(--fab-size);
  height:var(--fab-size);
  border-radius:999px;
  padding:0;
  border:1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  box-shadow: 0 18px 45px rgba(0,0,0,.35), 0 0 0 6px rgba(26,161,137,.10);
  transition: transform .18s var(--ease), filter .18s var(--ease), bottom .18s var(--ease);
}
.fab:hover{ transform: translateY(-2px) scale(1.02); filter:saturate(1.15); }
.fab:focus-visible{
  outline: 2px solid rgba(217,255,248,.85);
  outline-offset: 4px;
}
.fab-icon{
  width: calc(var(--fab-size) * 0.52);
  height: calc(var(--fab-size) * 0.52);
  flex:none;
}

/* ===== Clientes ===== */
.clients-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:14px;
  align-items:stretch;
}
.client-card{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding:16px;
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.client-card img{
  width:auto;
  max-height:52px;
  object-fit:contain;
  display:block;
  opacity:.92;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.22));
}
.client-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
  border-color: rgba(26,161,137,.22);
}
@media (max-width: 1100px){
  .clients-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .clients-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
  .client-card{ padding:14px; min-height:76px; }
  .client-card img{ max-height:46px; }
}
@media (max-width: 380px){
  .client-card{ padding:12px; min-height:70px; }
  .client-card img{ max-height:42px; }
}


@media (max-width: 520px){
  .container{ width:min(var(--max), calc(100% - 24px)); }
  .topbar{ gap:12px; }
  .hero.hero-bg{ padding: calc(42px + var(--header-height)) 0 20px; }
  .hero .card, .side, .tile, .trust-item{ padding:18px; }
  h1{ font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .lead{ font-size:1rem; }
  .hero-actions{ flex-direction:column; }
  .hero-actions .btn, .cta .btn, form .btn{ width:100%; }
  .fab{
    --fab-size: 52px;
    --fab-offset: 12px;
  }
}

@media (min-width: 521px) and (max-width: 920px){
  .fab{
    --fab-size: 54px;
    --fab-offset: 16px;
  }
}

@media (hover: none){
  .btn:hover,
  .chip:hover,
  .tile:hover,
  .pill:hover,
  .fab:hover,
  nav a:not(.btn):hover{
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1400px){
  :root{ --max: var(--max-lg); }
}










