/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --blue:   #003f8a;
  --blue2:  #0057bb;
  --sky:    #0085d1;
  --gold:   #f0a500;
  --red:     #f0a500;
  --white:  #ffffff;
  --cream:  #f7f5f0;
  --ink:    #111827;
  --slate:  #000;
  --border: #dde3ed;
  --ease:    cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── UTILITY ─────────────────────────────────────────── */
.label-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--heading);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: .25rem .75rem;
  border-radius: 2px;
  margin-bottom: 1.1rem;
}

.label-tag.white { color: #fff; border-color: rgba(255,255,255,.5); }
.label-tag.gold  { color: var(--gold); border-color: var(--gold); }

.big-title {
   font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: .93;
  letter-spacing: .01em;
}

.mid-title {
   font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: .95;
}

.rule { width: 48px; height: 3px; background: var(--gold); display: block; margin: 1rem 0 1.4rem; }

.img-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.img-ph i { font-size: 2rem; opacity: .4; }

/* ── REVEAL ──────────────────────────────────────────── */
.rv { opacity:0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv { opacity:1; transform: translateY(0); }
.rv.d1 { transition-delay: .1s; }
.rv.d2 { transition-delay: .2s; }
.rv.d3 { transition-delay: .3s; }

/* ══════════════════════════════════════════════════════
   HERO — diagonal split
══════════════════════════════════════════════════════ */
/* ===== HERO ===== */
.hero1 {
  min-height: 52vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

@media(max-width:767px){
  .hero1 {
    grid-template-columns:1fr;
    min-height:auto;
  }
}

/* ===== FIX GRID OVERFLOW (CLAVE) ===== */
.hero-left,
.hero-right {
  min-width: 0;
}

/* ===== LEFT PANEL ===== */
.hero-left {
  background: var(--blue);
  padding: 2rem 2rem 2rem 2vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

@media(max-width:991px){
  .hero-left {
    padding: 4rem 3rem 4rem 4vw;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  }
}

@media(max-width:767px){
  .hero-left {
    clip-path: none;
    padding: 4rem 1.5rem 3rem;
  }
}

.hero-left .big-title { color: #fff; }
.hero-left .big-title em { color: var(--gold); font-style: normal; }

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin: 1rem 0 1.6rem;
}

.hero-body-text {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
}

/* ===== CTA (CORREGIDO) ===== */
.hero-cta {
  display: inline-block;
}

/* ===== BOTONES ===== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  padding: .85rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: filter .25s, transform .25s;
}
.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-ghost-w {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--heading);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  padding: .85rem 2rem;
  border-radius: 2px;
  border: 1.5px solid rgba(255,255,255,.3);
  text-decoration: none;
  transition: border-color .25s, background .25s;
}
.btn-ghost-w:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240,165,0,.07);
}

/* ===== DECORACIÓN ANILLOS ===== */
.hero-rings-deco {
  position: absolute;
  bottom: 2.5rem;
  right: 1rem; /* corregido */
  display: flex;
  opacity: .55;
  max-width: calc(100% - 2rem);
  overflow: hidden;
}

.or {
  width:50px;
  height:50px;
  border-radius:50%;
  border:4px solid;
  margin-left:-12px;
}

.or:nth-child(1){border-color:#0085c7;margin-left:0}
.or:nth-child(2){border-color:#f4c300;margin-top:22px}
.or:nth-child(3){border-color:#555}
.or:nth-child(4){border-color:#009f3d;margin-top:22px}
.or:nth-child(5){border-color:#df0024}

/* ===== RIGHT PANEL ===== */
.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay lateral */
.hero-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 15%; /* ajustado */
  height: 100%;
  background: linear-gradient(to right, var(--blue), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Overlay inferior */
.hero-right::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0,63,138,.45), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Badge */
.hero-badge-overlay {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  background: var(--gold);
  color: var(--ink);
  padding: 1rem 1.4rem;
  border-radius: 2px;
  font-family: var(--heading);
  line-height: 1.2;
  z-index: 2;
}

.hero-badge-overlay strong {
  display:block;
  font-size:1.1rem;
  letter-spacing:.04em;
}

.hero-badge-overlay span {
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}

@media(max-width:767px){
  .hero-right {
    min-height: 280px;
  }
}
/* ── STATS BAR ───────────────────────────────────────── */
.stats-bar {
  background: var(--ink);
  padding: .9rem 0;
}
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
}
.s-item {
  display: flex;
  align-items: center;
  gap: .6rem;
   font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}
.s-item i { color: var(--gold); }

/* ══════════════════════════════════════════════════════
   INTRO — magazine editorial grid
══════════════════════════════════════════════════════ */

/* ── MARCA DE AGUA MASCOTA ───────────────────────────── */
.intro-sec.section-light {
  position: relative;
  overflow: hidden;
}

.intro-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 4rem;
  align-items: center;
}
@media(max-width:991px){ .intro-grid { grid-template-columns:1fr; gap:2.5rem; } }

.intro-grid .big-quote {
   font-size: clamp(4rem,10vw,9rem);
  line-height: 1;
  color: var(--blue);
  opacity: .07;
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  pointer-events: none;
}

.intro-text-wrap { position: relative; }
.intro-text-wrap p { font-size: 1.05rem; color: var(--slate); line-height: 1.8; }
.intro-text-wrap p + p { margin-top: 1rem; }

/* ── LOGO SECTION ────────────────────────────────────── */
.logo-sec {
  padding: 7rem 0;
  background: #fff;
}

.logo-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}
@media(max-width:991px){ .logo-grid { grid-template-columns:1fr; gap:2.5rem; } }

.valor-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #eef3fb;
  border: 1px solid #c5d4ea;
  border-radius: 100px;
  padding: .4rem 1rem;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
  margin: .25rem;
}
.valor-pill i { color: var(--gold); }

/* ── WHO ─────────────────────────────────────────────── */
.who-sec {
  padding: 7rem 0;
  background: var(--blue);
  position: relative;
  overflow: hidden;
}

/* diagonal top */
.who-sec::before {
  content: '';
  position: absolute;
  top: -4rem; left: 0; right: 0;
  height: 8rem;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}

.who-sec .mid-title { color: #fff; }
.who-sec .label-tag { color: var(--gold); border-color: var(--gold); }
.who-sec .rule { background: var(--gold); }

.who-body { color: rgba(255,255,255,.8); font-size:1rem; line-height:1.8; }

.eligibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media(max-width:575px){ .eligibility-grid { grid-template-columns:1fr; } }

.e-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  padding: 1.2rem;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  transition: background .25s;
  color:#000;
}
.e-card:hover { background: rgba(255,255,255,.11); }

.e-card-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: .9rem;
  flex-shrink: 0;
}
.e-card-text strong {
  display: block;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .25rem;
}
.e-card-text p { font-size: .83rem; color: rgba(255,255,255,.65); margin:0; line-height:1.55; }

.who-img-col { display:flex; flex-direction:column; gap:1.2rem; }
.who-img-col .img-ph { border-radius:4px; }

/* ── INSCRIPCIONES ───────────────────────────────────── */
.inscr-sec {
  padding: 7rem 0;
  background: var(--cream);
}

.inscr-card {
  background: #fff;
  border-radius: 4px;
  padding: 3rem;
  border-left: 5px solid var(--blue);
  position: relative;
}


.link-portal {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: .8rem 1.8rem;
  border-radius: 2px;
  text-decoration: none;
  margin-top: 1.4rem;
  transition: background .25s, transform .25s;
}
.link-portal:hover { background: var(--blue2); transform: translateY(-2px); }

.rule-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.rule-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .9rem;
  color: var(--slate);
}
.rule-list li i { color: var(--blue); margin-top: .22rem; flex-shrink:0; }

/* ── MODALIDADES ─────────────────────────────────────── */
.modal-sec {
  padding: 7rem 0;
  background: #fff;
  position: relative; /* 🔥 IMPORTANTE */
  overflow: hidden;   /* 🔥 CLAVE: elimina scroll */
}

/* ===== GRID FIX SOLO AQUÍ ===== */
#modalidades .row {
  margin-left: 0;
  margin-right: 0;
}

#modalidades [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  min-width: 0;
}

/* ===== CARDS ===== */
.mod-card {
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  max-width: 100%; /* 🔥 evita desbordes */
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.mod-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,63,138,.12);
}

/* HEADER */
.mod-card-top {
  background: var(--blue);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mod-num {
  font-size: 3rem;
  color: rgba(255,255,255,.2);
  line-height: 1;
}

.mod-card-top h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  margin: 0;
}

.mod-card-top .mod-icon {
  font-size: 1.3rem;
  color: var(--gold);
}

/* IMAGEN */
.mod-img {
  position: relative;
  overflow: hidden; /* 🔥 evita que la img se salga */
}

.mod-img .img-ph {
  aspect-ratio:16/9;
}

.mod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BODY */
.mod-body {
  padding: 1.4rem;
}

.mod-body p {
  font-size: .88rem;
  color: var(--slate);
  line-height: 1.65;
  margin: 0;
}
/* ── FASES ───────────────────────────────────────────── */
.fases-sec {
  padding: 2rem 0;
}

/* Numbered timeline horizontal */
.fases-timeline {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  position: relative;
  margin-top: 3.5rem;
}

.fases-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky), var(--gold));
  z-index: 0;
}

@media(max-width:767px){
  .fases-timeline { grid-template-columns:1fr; }
  .fases-timeline::before { display:none; }
}

.fase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.fase-dot {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 1.4rem;
  position: relative;
  transition: background .3s, color .3s;
}

.fase-item:nth-child(3) .fase-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.fase-label {
   font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .4rem;
}

.fase-title {
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: .7rem;
}

.fase-body {
  font-size: .85rem;
  color: var(--slate);
  line-height: 1.65;
}

.host-strip {
  background: var(--gold);
  padding: 2rem 0;
  margin-top: 4rem;
  border-radius: 4px;
}
.host-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.host-strip-text h3 {
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
}
.host-strip-text p { font-size: .85rem; color: rgba(0,0,0,.6); margin-top:.3rem;  letter-spacing:.06em; text-transform:uppercase; }
.btn-dark-sm {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity .25s;
}
.btn-dark-sm:hover { opacity: .85; color:#fff; }


/* ── BTN PDF ─────────────────────────────────────────── */
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1.5px solid var(--red);
  padding: .65rem 1.2rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background .25s, color .25s;
  align-self: flex-start;
    background: var(--red);
  color: #fff;
}
.btn-pdf:hover {
 color: var(--red);
  background: #fff;
}