:root{
  --bg: #F7F9FB;
  --card: #FFFFFF;
  --muted: #5B6773;
  --text: #1E2933;
  --blue: #0F3C5F;
  --teal: #1FB6B2;
  --line: rgba(15,60,95,.12);
  --shadow: 0 18px 55px rgba(15,60,95,.10);
  --radius: 18px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(31,182,178,.16), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(15,60,95,.14), transparent 55%),
    var(--bg);
}

a{color:var(--blue); text-decoration:none}
a:hover{text-decoration:underline}

.wrap{
  min-height:100%;
  display:flex;
  flex-direction:column;
}

header{
  padding:22px 18px 8px;
}

.header-inner{
  max-width: var(--max);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(6px);
  font-size: 13px;
  color: var(--muted);
}

.dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(31,182,178,.16);
}

.badge-lang {
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 12px;
}

.badge-lang a {
  color: inherit;

  font-weight: 500;
  transition: color 0.15s ease;
}

.badge-lang a[aria-current="page"] {
  font-weight: 700;
  color: var(--text);
}

.badge-lang a:hover {
  color: var(--primary);

}

.badge-lang .sep {
  opacity: .4;
  padding: 0 6px;
}

@media (max-width: 768px){
  .header-inner{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .badge{
    font-size: 12px;
    padding: 8px 10px;
    justify-content: center;
  }

  .badge-lang{
    font-size: 12px;
    justify-content: center;
  }
}

main{
  flex:1;
  padding: 10px 18px 28px;
}

.hero{
  max-width: var(--max);
  margin: 0 auto;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.hero-top{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:0;
  align-items: stretch;
}

@media (max-width: 900px){
  .hero-top{grid-template-columns: 1fr;}
}

/* Columna izquierda como flex vertical para poder "pegar" hero-note abajo */
.col{
  padding: 34px 30px 16px;
  display:flex;
  flex-direction:column;
  height: 100%;
}

.logo{
  width: 220px;          /* antes 260px */
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;   /* antes 18px */
}

/* Tagline bajo el logo */
.tagline{
  margin: -6px 0 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--blue);
  opacity: .85;
}

h1{
  margin: 0 0 8px;
  margin-top: 24px;  /* o 20px */
  max-width: 560px;       /* CLAVE: controla los saltos */
  font-size: clamp(26px, 3vw, 38px); /* antes subía más */
  line-height: 1.12;      /* más compacto */
  letter-spacing: -0.015em;
}

.sub{
  margin: 0 0 16px;
  max-width: 600px;
  color: var(--muted);
  font-size: 16px;        /* antes 16.5 */
  line-height: 1.5;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}

.btn.primary{
  background: linear-gradient(90deg, var(--blue), var(--teal));
  color:#fff;
  border: 0;
}

.btn:hover{transform: translateY(-1px);}

.contact-inline {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.contact-inline a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.contact-inline a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 18px 0 0;
}

.pill{
  border:1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--blue);
  background: rgba(255,255,255,.7);
}

.panel{
  padding: 34px 30px;
  background:
    linear-gradient(135deg, rgba(15,60,95,.08), rgba(31,182,178,.10));
  border-left: 1px solid var(--line);
}

@media (max-width: 900px){
  .panel{border-left:none; border-top:1px solid var(--line);}
}

.kicker{
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 10px;
}

.progress{
  margin-top: 14px;
  border:1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.35);
  border-radius: 14px;
  padding: 14px;
}

.progress-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.bar{
  height: 10px;
  background: rgba(15,60,95,.10);
  border-radius: 999px;
  overflow:hidden;
}

.bar > span{
  display:block;
  height:100%;
  width: 62%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: 999px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

@media (max-width: 900px){
  .grid{grid-template-columns: 1fr;}
}

.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  border-radius: 16px;
  padding: 16px;
}

.card h3{
  margin: 0 0 8px;
  font-size: 15px;
}

.card p{
  margin:0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.small{
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}

/* Nota "Train and Eat" pegada al pie del hero (columna izquierda) */
.hero-note{
  margin-top: auto;
  margin-bottom: 22px;
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 0;
  position: relative;
}

.hero-note::before{
  content:"";
  position:absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
  opacity: .7;
}

.hero-note strong{
  color: var(--text);
  font-weight: 700;
}

.hero-note a{
  font-weight: 700;
}

@media (max-width: 900px){
  .hero-note{
    margin-top: 22px;
  }
  .hero-note::before{
    width: 70%;
    max-width: 320px;
  }
}

/* Footer */
footer{
  padding: 18px;
}

.footer-inner{
  max-width: var(--max);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap: 14px;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}
