:root {
  --bg:#ffffff; 
  --fg:#0b0b0c; 
  --muted:#4b5563; 
  --accent:#2563eb;   /* Azul principal (tailwind blue-600) */
  --card:#f8fafc; 
  --line:#e5e7eb;
}

[data-theme="dark"] {
  --bg:#0b0b0c; 
  --fg:#f8fafc; 
  --muted:#c0c0c0; 
  --accent:#3b82f6;   /* Azul más vibrante para contraste en oscuro */
  --card:#111315; 
  --line:#23262a;
}

* { box-sizing:border-box }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body { 
  margin:0; 
  background:var(--bg); 
  color:var(--fg); 
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif; 
  letter-spacing:.1px; 
  font-size:16px; 
  line-height:1.3; 
}

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

.container { width:min(1080px,92vw); margin-inline:auto }

/* ================= NAV ================= */
.nav { 
  position:sticky; 
  top:0; 
  background:rgba(255,255,255,.92); /* fallback */
  background:color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter:saturate(180%) blur(8px); 
  border-bottom:1px solid var(--line); 
  z-index:10;
}

[data-theme="dark"] .nav {
  background:rgba(11,11,12,.92);
}

.nav-inner { 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  padding:10px 0; 
  flex-wrap:wrap; 
  gap:6px; 
}

.brand { display:flex; align-items:center; gap:.7rem; font-weight:800 }

.brand img { 
  width:44px; 
  height:44px; 
  border-radius:10px; 
  object-fit:cover; 
  border:1px solid var(--line); 
}

.nav-links { 
  display:flex; 
  gap:1.1rem; 
  align-items:center;
}

.nav a { 
  opacity:.9; 
  transition:opacity .2s; 
  white-space:nowrap; 
}
.nav a:hover { opacity:1 }

/* ================= BOTONES ================= */
.btn {
  display:inline-grid; 
  place-items:center;
  padding:.85rem 1rem;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(180deg, var(--card), var(--card));
  transition:all .25s ease; 
  color: var(--fg);
  font-weight:600;
}

.btn:hover { 
  transform:translateY(-2px); 
  box-shadow:0 12px 28px -12px rgba(0,0,0,.2); 
}

.btn-accent { 
  border:0; 
  background:linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff)); 
  color:#fff; 
}

.btn-accent:hover { 
  filter:brightness(1.1); 
  transform:translateY(-2px) scale(1.02);
}

/* ================= BADGE ================= */
.badge-top { 
  display:inline-block; 
  margin:10px 0; 
  padding:.35rem .8rem; 
  border-radius:999px; 
  background:rgba(37,99,235,.18); 
  font-weight:600; 
  font-size:14px; 
  color:#001018; 
  border:1px solid rgba(37,99,235,.35);
}
[data-theme="dark"] .badge-top { 
  background:rgba(0,0,0,.5); 
  color:#fff; 
  border:1px solid var(--accent); 
}

/* ================= HERO ================= */
.hero { 
  display:grid; 
  grid-template-columns:1.05fr .95fr; 
  gap:1.8rem; 
  align-items:center; 
  padding:8vh 0 9vh; 
}

.h1 { 
  font-size:clamp(34px,5vw,60px); 
  line-height:1.0; 
  letter-spacing:-.02em; 
  margin:0 0 10px; 
  font-weight:900;
}

.subtitle {
  display:inline-block;
  padding-bottom:6px;
  line-height:1.0;
}

.highlight {
  background:linear-gradient(90deg,var(--accent),color-mix(in srgb, var(--accent) 50%, #fff));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-weight:900;
}

.lead { 
  font-size:clamp(17px,2.2vw,20px); 
  color:var(--muted); 
  margin:0 0 24px; 
}

.hero-cta { display:flex; gap:.8rem; flex-wrap:wrap }
.extras { margin-top:18px; display:flex; gap:12px; flex-wrap:wrap }

.hero-title { display:flex; flex-direction:column }
.hero-logo-title { display:flex; align-items:center; gap:12px }
.hero-logo { 
  height: 2.5em;
  width: auto;
  border-radius:12px; 
  border:1px solid var(--line);
}

/* ================= TARJETAS ================= */
.card { 
  background:var(--card); 
  border:1px solid var(--line); 
  border-radius:20px; 
  padding:18px; 
}

/* ================= CARRUSEL ================= */
.media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease-in-out;
}

.media img.active {
  opacity: 1;
  z-index: 1;
}

/* ================= SECCIONES ================= */
.section { padding:56px 0 }

.section h2 { 
  font-size:clamp(26px,3.6vw,36px); 
  line-height:1.1; 
  margin:0 0 12px; 
  font-weight:800;
}

.muted { color:var(--muted) }

.list { 
  display:grid; 
  gap:10px; 
  margin:0; 
  padding:0; 
  list-style:none; 
}

.list li { display:flex; gap:10px; align-items:flex-start }

.tick { 
  width:22px; 
  height:22px; 
  border-radius:7px; 
  background:var(--accent); 
  display:grid; 
  place-items:center; 
  color:#fff; 
  font-weight:800; 
  flex:0 0 22px; 
}

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

.timeline { display:grid; gap:12px }

.timeline-item { 
  display:grid; 
  grid-template-columns:auto 1fr; 
  gap:10px; 
  align-items:start; 
}

.dot { 
  width:10px; 
  height:10px; 
  border-radius:999px; 
  background:var(--accent); 
  margin-top:10px; 
}

/* ================= CONTACTO ================= */
.contact-buttons { 
  display:flex; 
  gap:.8rem; 
  flex-wrap:wrap; 
}

/* ================= FOOTER ================= */
.footer { 
  padding:26px 0; 
  border-top:1px solid var(--line); 
  color:var(--muted); 
  font-size:14px; 
}

.footer-inner { 
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap; 
}

/* ================= UTILIDADES ================= */
.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; 
}

/* ================= NUEVOS AJUSTES ================= */
.card-flex {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  height:100%;
}
.bottom-list {
  margin-top:auto;
  padding-top:20px;
}

.services-grid {
  display:grid;
  grid-template-columns:1fr auto;
  gap:24px;
  align-items:start;
}
.claim-box {
  display:flex;
  flex-direction:column;
  gap:8px;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px 22px;
  font-size:16px;
  font-weight:700;
  background:transparent;
  text-align:left;
}
.claim-box div { display:flex; align-items:center; gap:10px; }

.timeline-like p {
  margin:14px 0;
  padding-left:32px;
  position:relative;
  line-height:1.5;
}
.timeline-like p::before {
  content:"";
  position:absolute;
  left:10px;
  top:10px;
  width:8px;
  height:8px;
  background:var(--accent);
  border-radius:50%;
}
.timeline-like strong { color:var(--fg); }

/* ================= RESPONSIVE ================= */
/* Tablet */
@media (max-width:960px){
  .hero {
    grid-template-columns:1fr;
    gap:1.6rem;
    padding:6vh 0 6vh;
  }
}

@media (max-width:920px){
  .grid-2 { grid-template-columns:1fr; }
}

@media (max-width:800px){
  .services-grid { grid-template-columns:1fr; }
  .claim-box { margin:20px auto 0; }
}

/* Móvil */
@media (max-width:720px) {
  .hero {
    padding:6vh 12px;   /* añade espacio lateral */
  }

  .media {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3/4;
    min-height: 280px;
    margin: 0 auto 20px;
    border-radius: 18px;
  }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem;
    width: 100%;
  }

  .nav-links .btn {
    order: -1;          /* aparece primero */
    width: 100%;        /* ocupa todo el ancho */
    text-align: center; /* centrado */
    margin: 0 0 10px 0; /* espacio inferior */
  }

  .nav a { white-space: normal; }
  .nav-links .btn { margin-left: auto; }

  .badge-top {
    display:block;
    text-align:center;
    margin:12px auto;
    font-size:15px;
  }
}
