/* ==============================
   Keto Live — Landing Base Styles
   Palette inspired by logo:
   --olive-900:   #3E4A33  (oscuro)
   --olive-700:   #4D5B3B
   --olive-500:   #6B7F52
   --lime-500:    #9BC23C  (acento)
   --beige-50:    #F3EFE3  (fondo suave)
   ============================== */

:root{
  --olive-900:#3E4A33;
  --olive-700:#4D5B3B;
  --olive-500:#6B7F52;
  --lime-500:#9BC23C;
  --beige-50:#F3EFE3;
  --text:#26301F;
  --muted:#6B7F52;
  --white:#FFFFFF;
  --shadow: 0 10px 20px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:var(--beige-50);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

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

.section{padding:56px 0}
.title{font-size:clamp(2rem, 4vw, 3rem); margin:0 0 20px; color:var(--olive-900)}

.h2{font-size:clamp(1.5rem, 3vw, 2rem); margin:0 0 12px; color:var(--olive-900)}
.h3{font-size:1.25rem; margin:0 0 10px; color:var(--olive-900)}

.lead{font-size:1.125rem; color:var(--olive-700); max-width:65ch;}

.btn{
  display:inline-block;
  padding:.9rem 1.2rem;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  border:2px solid transparent;
  transition:all .2s ease;
  box-shadow:var(--shadow);
}

.btn.primary{
  background:var(--lime-500);
  color:var(--olive-900);
}
.btn.primary:hover{ filter:brightness(0.95); transform: translateY(-1px); }

.btn.secondary{
  background:var(--white);
  border-color:var(--olive-500);
  color:var(--olive-900);
}
.btn.secondary:hover{ background: #f7f8f3; transform: translateY(-1px); }

.btn.ghost{
  background:transparent;
  border-color:var(--olive-500);
  color:var(--olive-900);
}
.btn.ghost:hover{ background:#f7f8f3; }

/* Header centrado */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
}

.brand-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.brand-logo {
  width: 160px; /* más grande */
  height: auto;
  object-fit: contain;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  right: 0;
}

.header-menu img {
  width: 28px;
  height: 28px;
  filter: brightness(0) saturate(100%) invert(25%) sepia(16%) saturate(502%) hue-rotate(46deg) brightness(96%) contrast(86%);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-menu img:hover {
  transform: scale(1.1);
  filter: brightness(0) saturate(100%) invert(51%) sepia(49%) saturate(465%) hue-rotate(44deg) brightness(93%) contrast(92%);
}


/* Hero */
.hero .video-wrapper{ margin: 18px 0 16px; box-shadow:var(--shadow); border-radius:16px; overflow:hidden; }
.video-wrapper{ position:relative; width:100%; aspect-ratio:16/9; background:#E7E4D8; }
.video-wrapper.ratio-9x16{ aspect-ratio:9/16; }
.responsive-iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

.cta-group{ display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; }

/* Tarjetas mentores */
.mentores .grid.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.card{
  background:var(--white);
  border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* Ebook */
.ebook-grid{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:28px;
  align-items:center;
}
.ebook-cover img{
  width:100%; height:auto; border-radius:14px; box-shadow:var(--shadow);
}
.ebook-info p{ color:var(--olive-700); max-width:60ch;}

/* Footer */
.site-footer{
  background:var(--olive-900);
  color:var(--beige-50);
  padding:24px 0;
  margin-top:24px;
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.site-footer a{ color:var(--beige-50); text-decoration:underline; }
.site-footer a:hover{ opacity:.85; }
.social{ display:flex; gap:16px; }

/* Responsive */
@media (max-width: 900px){
  .mentores .grid.two{ grid-template-columns: 1fr; }
  .ebook-grid{ grid-template-columns: 1fr; }
  .ebook-cover{ order: -1; }
}

/* ===== Iconos Font Awesome ===== */
.icon-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color: var(--olive-900);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.icon-link:hover{
  transform: translateY(-1px);
  background: #f7f8f3;
}

.icon-link i{
  font-size: 18px;
}

.icon-label{
  font-size: 12px;
  opacity: .9;
}

/* Ajuste: en mobile, que el header no se rompa */
@media (max-width: 520px){
  .header-menu{
    gap: 10px;
  }
  .icon-label{
    display:none;
  }
}

/* Links mini dentro de cards */
.card-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:-4px;
}

.mini-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: var(--olive-700);
  text-decoration:none;
  font-weight: 600;
  font-size: 0.95rem;
}

.mini-link:hover{
  opacity:.85;
}

/* Social del footer con íconos */
.social-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration: underline;
}
.social-link i{
  font-size: 16px;
}

/* ===== Header socials: chips con estilo ===== */
.header-menu{
  display:flex;
  align-items:center;
  gap:10px;
  position:absolute;
  right:0;
}

.header-menu .chip{
  display:inline-flex;
  align-items:center;
  gap:10px;

  text-decoration:none;
  color: var(--olive-900);

  background: rgba(243,239,227,.55);          /* beige suave */
  border: 1px solid rgba(77,91,59,.25);       /* olive-700 suave */
  padding: 10px 14px;
  border-radius: 999px;

  font-weight: 700;
  font-size: 0.95rem;

  box-shadow: 0 8px 16px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.header-menu .chip i{
  font-size: 18px;
  color: var(--olive-700);
}

.header-menu .chip:hover{
  transform: translateY(-1px);
  background: rgba(155,194,60,.16);           /* lime suave */
  border-color: rgba(155,194,60,.55);
  box-shadow: 0 12px 22px rgba(0,0,0,.08);
}

.header-menu .chip--brand{
  background: rgba(155,194,60,.22);
  border-color: rgba(155,194,60,.65);
}

.header-menu .chip--brand i{
  color: var(--olive-900);
}

/* Mobile: que no rompa el header */
@media (max-width: 680px){
  .header-inner{ justify-content:center; }
  .header-menu{
    position: static;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 10px;
  }
}
