:root{
  --bg: #e7eff9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15,23,42,.12);

  --gStrong: #2f343c;
  --gStrong2:#3b4250;
  --gSoft: #e5e7eb;

  --btn: #0f172a;
  --btnText: #ffffff;

  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --radius: 16px;
  --radius2: 22px;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: var(--bg);
}

body{
  background:
    radial-gradient(1200px 520px at 10% 0%, rgba(59,130,246,.10), transparent 55%),
    radial-gradient(900px 420px at 90% 10%, rgba(15,23,42,.08), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, rgba(255,255,255,0) 2px 14px),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

.container{
  width:min(1120px, 92%);
  margin:0 auto;
}

/* ===== TOP BAR ===== */
.topbar{
  background: linear-gradient(90deg, var(--gStrong), var(--gStrong2));
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:12px;
}

.badge{
  display:inline-block;
  font-size:12px;
  color:#ffffff;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
  letter-spacing:.2px;
}

.toplink{
  font-size:13px;
  color:#ffffff;
  opacity:.92;
}

.toplink:hover{ opacity:1; }

.sep{
  color:rgba(255,255,255,.40);
  margin:0 8px;
}

/* ===== HEADER ===== */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand__logo{
  width:44px;
  height:44px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(15,23,42,.10), #fff);
  border:1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  overflow:hidden;
  display:grid;
  place-items:center;
}

.brand__logoimg{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:6px;
}

.brand__name{
  font-weight:900;
  letter-spacing:.2px;
}

.brand__tag{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.nav{
  display:flex;
  gap:18px;
  align-items:center;
}

.nav__link{
  font-size:14px;
  color:#334155;
  padding:8px 10px;
  border-radius:10px;
  transition:.15s ease;
}

.nav__link:hover{
  background:rgba(15,23,42,.06);
}

.nav__link--active{
  background:rgba(15,23,42,.08);
  border:1px solid rgba(15,23,42,.10);
  color:#0f172a;
}

.navbtn{
  display:none;
  border:1px solid var(--line);
  background: var(--surface);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}

.navmobile{
  display:none;
  border-top:1px solid var(--line);
  background: var(--surface);
}

.navmobile__link{
  display:block;
  padding:14px 4%;
  border-bottom:1px solid var(--line);
  color:#334155;
}

/* ===== HERO ===== */
.hero{
  padding:26px 0 8px;
  background:
    radial-gradient(1200px 520px at 80% 10%, rgba(59,130,246,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.60), rgba(231,239,249,0) 70%);
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:22px;
  align-items:center;
}

h1{
  font-size:40px;
  line-height:1.12;
  margin:0 0 12px;
}

.lead{
  font-size:16px;
  color:#334155;
  margin:0 0 16px;
}

.hero__bullets{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0 18px;
}

.pill{
  font-size:13px;
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:999px;
}

.hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  text-align:center;
}

.btn--primary{
  background:var(--btn);
  color:var(--btnText);
  border-color:var(--btn);
}

.btn--primary:hover{
  filter:brightness(1.08);
}

.btn--ghost{
  background: rgba(255,255,255,.94);
}

.btn--ghost:hover{
  background: rgba(15,23,42,.06);
}

.hero__note{ margin-top:14px; }
.muted{ color:var(--muted); }
.small{ font-size:12px; }

/* ===== SLIDER ===== */
.hero__media{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.10);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.slider{
  position:relative;
  width:100%;
  height:360px;
  overflow:hidden;
}

.slider__track{
  display:flex !important;
  width:100% !important;
  height:100% !important;
  transform:translateX(0%);
  transition:transform .45s ease;
}

.slide{
  flex:0 0 100% !important;
  width:100% !important;
  height:100% !important;
  background-size:cover;
  background-position:center;
  position:relative;
}

.slide__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(15,23,42,.18), rgba(255,255,255,0) 55%, rgba(15,23,42,.12));
}

.slider__btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.7);
  background:rgba(255,255,255,.82);
  backdrop-filter: blur(8px);
  cursor:pointer;
  font-size:26px;
  line-height:1;
}

.slider__btn--prev{ left:12px; }
.slider__btn--next{ right:12px; }

.slider__dots{
  position:absolute;
  left:0;
  right:0;
  bottom:12px;
  display:flex;
  justify-content:center;
  gap:8px;
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.90);
  background:rgba(255,255,255,.60);
  cursor:pointer;
}

.dot--active{ background:#fff; }

/* ===== SECTIONS ===== */
.section{ padding:34px 0; }

.section--alt{
  background: rgba(255,255,255,.55);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.section__title{
  font-size:26px;
  margin:0 0 8px;
}

.section__subtitle{
  margin:0 0 18px;
  color:#334155;
}

/* ===== CARDS ===== */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  align-items:stretch;
}

.card{
  background: var(--surface);
  border:1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.card h3{
  margin:0 0 8px;
  font-size:16px;
}

.card p{
  color:#334155;
}

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

.mini{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  padding:16px;
}

.mini__icon{ font-size:22px; }

.mini__title{
  font-weight:900;
  margin-top:8px;
}

.mini__text{
  color:#334155;
  margin-top:6px;
  font-size:14px;
}

.center{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:18px;
}

.pagehead{
  padding:22px 0;
  background:
    radial-gradient(900px 340px at 20% 0%, rgba(59,130,246,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.60), rgba(231,239,249,0) 70%);
  border-bottom:1px solid var(--line);
}

.pagehead h1{
  margin:0 0 10px;
  font-size:34px;
}

.card--service h2{
  margin:0 0 10px;
  font-size:18px;
}

.list{
  margin:0;
  padding-left:18px;
  color:#334155;
}

.list li{ margin:6px 0; }

.callout{
  margin-top:18px;
  padding:16px;
  border-radius: var(--radius);
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.callout__title{
  font-weight:900;
  margin-bottom:6px;
}

.callout__text{
  margin:0 0 12px;
  color:#334155;
}

.callout--mini{ margin-top:14px; }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

.contactlist{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}

.contactitem{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:#334155;
}

.contactitem a{
  text-decoration:underline;
  text-underline-offset:2px;
}

.form{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:14px;
}

.field span{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:6px;
}

input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  outline:none;
  font-size:14px;
  background: var(--surface);
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

/* ===== FOOTER ===== */
.footer{
  background: linear-gradient(90deg, var(--gStrong), var(--gStrong2));
  border-top: 1px solid rgba(255,255,255,.12);
  padding:18px 0;
}

.footer__inner{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap:12px;
  align-items:center;
}

.footer__brand{
  font-weight:900;
  color:#ffffff;
}

.footer__muted{
  color:rgba(255,255,255,.78);
  font-size:13px;
}

.footer__links{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.footer__link{
  color:rgba(255,255,255,.92);
  font-size:13px;
  text-decoration:underline;
  text-underline-offset:2px;
}

.footer__right{
  text-align:right;
  color:rgba(255,255,255,.78);
}

/* ===== WHATSAPP ===== */
.wa{
  position:fixed;
  right:22px;
  bottom:22px;
  background:#25D366;
  color:#ffffff;
  padding:16px 24px;
  border-radius:44px;
  font-size:16px;
  font-weight:800;
  box-shadow:0 10px 26px rgba(0,0,0,0.28);
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  z-index:9999;
  transition:all .2s ease;
  animation:waPulse 2.2s infinite;
}

.wa:hover{
  background:#1ebe5d;
  transform:scale(1.05);
}

.wa__icon{ font-size:18px; }

@keyframes waPulse{
  0%{ box-shadow:0 10px 26px rgba(0,0,0,0.28), 0 0 0 0 rgba(37,211,102,0.45); }
  70%{ box-shadow:0 10px 26px rgba(0,0,0,0.28), 0 0 0 16px rgba(37,211,102,0); }
  100%{ box-shadow:0 10px 26px rgba(0,0,0,0.28), 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== COOKIE BAR ===== */
.cookiebar{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  display: none;
}

.cookiebar__inner{
  width: min(1120px, 100%);
  margin: 0 auto;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cookiebar__text{
  color: #334155;
  font-size: 13px;
  line-height: 1.4;
}

.cookiebar__link{
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookiebar__actions{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}

/* ===== OFERTAS: TARJETAS ALINEADAS ===== */
.cards .card{
  height:100%;
  display:flex;
  flex-direction:column;
}

.cards .card p{
  margin-top:0;
  margin-bottom:10px;
}

.cards .card .muted.small{
  margin-top:auto;
}

.cards .card .btn{
  margin-top:12px;
}

.cards .card > div[style*="margin-top:14px"]{
  margin-top:12px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns:1fr; }
  .slider{ height:320px; }
  h1{ font-size:34px; }

  .cards{ grid-template-columns:1fr; }
  .grid4{ grid-template-columns:1fr 1fr; }
  .grid2{ grid-template-columns:1fr; }

  .nav{ display:none; }
  .navbtn{ display:inline-flex; }

  .footer__inner{ grid-template-columns:1fr; text-align:left; }
  .footer__right{ text-align:left; }
  .footer__links{ justify-content:flex-start; }
}

@media (max-width: 720px){
  .cookiebar__inner{
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px){
  .grid4{ grid-template-columns:1fr; }
  .wa__text{ display:none; }
}

/* ===== OFERTAS: TARJETAS PERFECTAMENTE CUADRADAS ===== */
.ofertas-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  align-items:stretch;
}

.oferta-card{
  background: var(--surface);
  border:1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  display:flex;
  flex-direction:column;
  height:100%;
}

.oferta-card h3{
  margin:0 0 10px;
  font-size:16px;
}

.oferta-card p{
  margin:0 0 10px;
  color:#334155;
}

.oferta-card .precio-oferta{
  font-size:28px;
  font-weight:900;
  line-height:1.15;
  margin:14px 0 10px;
  color:var(--text);
}

.oferta-card .texto-confianza{
  margin-top:auto;
  font-size:12px;
  color:var(--muted);
}

.oferta-card .acciones-oferta{
  margin-top:14px;
}

.oferta-card .acciones-oferta .btn{
  width:100%;
}

@media (max-width: 980px){
  .ofertas-grid{
    grid-template-columns:1fr;
  }
}
/* LOGO Y TEXTO EN BLANCO EN LA BARRA SUPERIOR */
.topbar .brand__name{
  color:#ffffff !important;
}

.topbar .brand__tag{
  color:rgba(255,255,255,.82) !important;
}
