:root{
  --bg:#f6f8fc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;
  --line:rgba(15,23,42,.10);
  --brand:#0ea5a4;
  --brand2:#2563eb;
  --ring: rgba(14,165,164,.18);
  --shadow: 0 14px 40px rgba(2,6,23,.10);
  --radius: 18px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(900px 500px at 85% 10%, rgba(14,165,164,.10), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg) 22%, #f3f6fb);
}
a{color:inherit}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
  width:100%;
}

/* HEADER */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 260px;
  text-decoration:none;
}

/* Logo real (DESKTOP 300px) */
.logo-img{
  width:300px;
  height:auto;
  max-height:72px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(37,99,235,.12);
  flex:0 0 auto;
  padding: 8px 12px;
}

.brand h1{font-size:14px; margin:0; line-height:1.2; letter-spacing:.2px}
.brand small{display:block; color:var(--muted2); font-weight:700}

.nav{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end;
}
.nav a{
  text-decoration:none; color:var(--muted);
  font-size:14px; padding:8px 10px; border-radius: 12px;
  font-weight:650;
  white-space: nowrap;
}
.nav a:hover{background: rgba(2,6,23,.04); color: var(--text)}

/* Buttons / pills */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border:1px solid var(--line);
  background: #fff;
  color:var(--text);
  padding:10px 14px;
  border-radius: 14px;
  text-decoration:none;
  font-weight:800;
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px); box-shadow: 0 16px 34px rgba(2,6,23,.10); border-color: rgba(14,165,164,.28)}
.btn-primary{
  border-color: rgba(14,165,164,.35);
  background: linear-gradient(135deg, rgba(14,165,164,.12), rgba(37,99,235,.10));
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.85);
  color: var(--muted);
  font-size: 13px;
  font-weight:750;
}

/* SLIDER SUPERIOR (alineado al ancho del contenido) */
.top-slider{
  position: relative;
  width: 100%;
  padding: 18px 0 0; /* evita el “salto” visual bajo el header */
  background: transparent;
  border-bottom: 0;
}

/* El track define el alto real del slider y se centra como el resto */
.top-slider__track{
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.top-slider__slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  animation: joluvaruFade 12s infinite;
}
.top-slider__slide--1{ background-image: url("../../img/01.jpg"); animation-delay: 0s; }
.top-slider__slide--2{ background-image: url("../../img/02.jpg"); animation-delay: 6s; }

.top-slider__track::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,.10));
  pointer-events:none;
}

@keyframes joluvaruFade{
  0%   {opacity:0; transform: scale(1.02)}
  8%   {opacity:1; transform: scale(1.00)}
  50%  {opacity:1; transform: scale(1.00)}
  58%  {opacity:0; transform: scale(1.02)}
  100% {opacity:0; transform: scale(1.02)}
}
  8%   {opacity:1; transform: scale(1.00)}
  50%  {opacity:1; transform: scale(1.00)}
  58%  {opacity:0; transform: scale(1.02)}
  100% {opacity:0; transform: scale(1.02)}
}

/* HERO (mismo contenedor que el resto: SOLO .wrap) */
.hero{
  padding: 34px 0 18px;
  width: 100%;
}
.hero-grid{
  width:100%;
  display:grid;
  gap:18px;
  grid-template-columns: 1.2fr .8fr;
  align-items:stretch;
}
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(2,6,23,.10);
}
.hero-left{padding: 26px; min-width:0;}
.hero-right{padding: 18px; min-width:0;}

.kicker{display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 12px}
.hero h2{
  margin: 8px 0 10px;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height:1.1;
  letter-spacing: -.6px;
}
.hero p{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 62ch;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top: 10px}

/* Lists / elements */
.list{margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px}
.li{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px; border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(2,6,23,.02);
}
.dot{
  width:10px; height:10px; border-radius:999px;
  margin-top:6px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 6px var(--ring);
  flex: 0 0 auto;
}

section{padding: 18px 0}
.top-slider{padding: 18px 0 0;}
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap;
  margin: 18px 0 12px;
}
.section-title h3{margin:0; font-size: 20px; letter-spacing:-.2px}
.section-title p{margin:0; color:var(--muted2); max-width: 70ch; font-size:14px; line-height:1.75}

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

.box{padding:18px}
.box h4{margin:0 0 6px; font-size:16px}
.box p{margin:0; color:var(--muted); line-height:1.75; font-size:14px}

.tagrow{display:flex; gap:8px; flex-wrap:wrap; margin-top: 10px}
.tag{
  font-size:12px; color: var(--muted);
  padding:6px 10px; border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(2,6,23,.02);
  font-weight:650;
}

.highlight{
  border-color: rgba(37,99,235,.16);
  background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(255,255,255,.60));
}
.callout{
  display:flex; gap:12px; align-items:flex-start;
  padding:16px; border-radius: 18px;
  border:1px solid rgba(14,165,164,.22);
  background: linear-gradient(180deg, rgba(14,165,164,.08), rgba(255,255,255,.70));
}
.callout strong{color: var(--text)}
.muted{color:var(--muted2)}
.divider{height:1px; background: var(--line); margin: 18px 0}

/* FORM */
.form{padding: 18px; display:grid; gap:12px}
.row{display:grid; gap:12px; grid-template-columns: 1fr 1fr}
label{font-size:13px; color: var(--muted); display:block; margin-bottom: 6px; font-weight:700}
input, select, textarea{
  width:100%;
  background: #fff;
  color: var(--text);
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  outline:none;
  font-family: var(--font);
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(2,6,23,.05);
}
textarea{min-height: 120px; resize: vertical}
input:focus, select:focus, textarea:focus{
  border-color: rgba(14,165,164,.55);
  box-shadow: 0 0 0 6px var(--ring), 0 8px 18px rgba(2,6,23,.05);
}
.help{font-size:12px; color: var(--muted2); margin-top: 6px; line-height:1.6}
.alert{
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(2,6,23,.02);
  line-height:1.65;
  font-weight:650;
}
.alert-ok{border-color: rgba(14,165,164,.28); background: rgba(14,165,164,.08)}
.alert-err{border-color: rgba(239,68,68,.24); background: rgba(239,68,68,.07)}

/* FOOTER */
.footer{padding: 26px 0 40px; color: var(--muted2); font-size: 13px}
.foot-grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:14px}
.small-links a{color: var(--muted2); text-decoration:none; font-weight:700}
.small-links a:hover{color: var(--text)}

/* WhatsApp floating */
.float-whatsapp{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  border-radius: 999px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(14,165,164,.14), rgba(37,99,235,.10));
  border: 1px solid rgba(14,165,164,.35);
  box-shadow: 0 18px 40px rgba(2,6,23,.12);
  text-decoration:none;
  font-weight: 900;
}
.float-whatsapp:hover{transform: translateY(-1px)}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip: rect(0,0,0,0); white-space:nowrap; border-width:0;
}

/* MOBILE */
@media (max-width: 980px){
  .wrap{padding:0 14px}

  .topbar-inner{
    flex-wrap: wrap;
    justify-content: center;
  }
  .brand{
    min-width: unset;
    width: 100%;
    justify-content: center;
  }
  .brand h1, .brand small{ text-align:center; }

  .logo-img{
    width: 200px;
    max-height: 56px;
    padding: 6px 10px;
  }

  .nav{
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 6px 0 2px;
  }
  .nav::-webkit-scrollbar{height:6px}
  .nav::-webkit-scrollbar-thumb{background: rgba(15,23,42,.10); border-radius: 999px}

  .top-slider__track{height: 220px;}
  .top-slider__track::after{
    background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.10));
  }

  .hero-grid{grid-template-columns: 1fr}
  .grid-3{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}
  .row{grid-template-columns: 1fr}
  .foot-grid{grid-template-columns: 1fr}

  .btn{width: 100%;}
  .hero-actions{flex-direction: column}
}
