/* styles.css — compartido por todas las páginas */

/* ===== Tokens ===== */
:root{
  --bg:#ffffff; --surface:#f8fafc; --card:#ffffff;
  --text:#1e293b; --muted:#64748b;
  --primary:#f59e0b; --primary-hover:#d97706; --primary-contrast:#ffffff;
  --accent:#2563eb; --border:#e2e8f0;
  --shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05);
  --header-height:80px;

  /* Footer */
  --footer-bg:#1f4e6e;       /* azul profundo similar al de la captura */
  --footer-text:#e6f0f7;
  --footer-heading:#ffffff;
  --footer-link:#e6f0f7;
  --footer-link-hover:#ffffff;
  --footer-sep:#2a628a;
}

/* ===== Reset/Base ===== */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;
  line-height:1.6;color:var(--text);background:var(--bg);
  padding-top:var(--header-height);
}
img{max-width:100%;height:auto;display:block}

/* Skip link */
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;padding:.5rem .75rem;background:#000;color:#fff;border-radius:.5rem;z-index:10000}

/* Typography */
h1{font-size:clamp(2rem,5vw,3.2rem);font-weight:800;line-height:1.1;margin-bottom:1rem}
h2{font-size:clamp(1.75rem,4vw,2.4rem);font-weight:700;margin-bottom:1rem}
h3{font-size:clamp(1.25rem,3vw,1.6rem);font-weight:600;margin-bottom:.75rem}
p{font-size:clamp(1rem,2vw,1.125rem);margin-bottom:1rem}
.text-center{text-align:center}.text-muted{color:var(--muted)}

/* Layout */
.container{max-width:1200px;margin:0 auto;padding:0 1rem}
.section{padding:4rem 0}
.grid{display:grid;gap:2rem}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.card{background:var(--card);border:1px solid var(--border);border-radius:.75rem;padding:2rem;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}

/* Header/Nav */
.header{position:fixed;inset:0 0 auto 0;background:var(--surface);border-bottom:1px solid var(--border);z-index:1000;backdrop-filter:blur(10px);box-shadow:var(--shadow)}
.header-content{display:flex;align-items:center;justify-content:space-between;gap:clamp(12px,3vw,40px);min-height:var(--header-h);padding-block:clamp(.5rem,1.2vw,.85rem)}
:root{--logo-h:clamp(28px,4.5vw,44px);--header-h:calc(var(--logo-h) + 24px)}
.logo{display:inline-flex;align-items:center;text-decoration:none}
.logo img{height:var(--logo-h);width:auto;object-fit:contain}
.nav{margin-left:auto}
.nav-list{display:flex;align-items:center;gap:clamp(12px,2vw,22px);list-style:none}
.nav-link{display:block;padding:.5rem .25rem;font-weight:600;text-decoration:none;color:var(--text);border-radius:.5rem;outline-offset:2px;transition:color .2s,background-color .2s}
.nav-link:hover,.nav-link:focus-visible{color:var(--primary);background:color-mix(in oklab,var(--primary) 12%,transparent)}
.nav-link.active{color:var(--primary)}
section[id]{scroll-margin-top:calc(var(--header-h) + 16px)}

/* Mobile menu */
.nav-toggle{display:none;background:none;border:0;cursor:pointer;padding:.5rem;z-index:1001}
.hamburger{display:block;position:relative;width:24px;height:2px;background:var(--text);transition:all .2s}
.hamburger::before,.hamburger::after{content:"";position:absolute;left:0;width:100%;height:2px;background:var(--text);transition:all .2s}
.hamburger::before{top:-8px}.hamburger::after{bottom:-8px}
@media (max-width:767px){
  .nav-toggle{display:block;margin-left:auto}
  .nav-list{display:none;position:absolute;top:var(--header-h);left:0;right:0;background:var(--surface);flex-direction:column;align-items:center;padding:1rem 0;border-bottom:1px solid var(--border);box-shadow:var(--shadow)}
  .nav-open .nav-list{display:flex}
  .nav-link{font-size:1.125rem;padding:.75rem 1rem;width:100%;text-align:center}
  .nav-open .hamburger{background:transparent}
  .nav-open .hamburger::before{transform:rotate(45deg);top:0}
  .nav-open .hamburger::after{transform:rotate(-45deg);bottom:0}
}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:.75rem 1.5rem;border-radius:.75rem;font-weight:600;text-decoration:none;border:0;cursor:pointer;transition:transform .2s}
.btn-primary{background:var(--primary);color:var(--primary-contrast)}
.btn-primary:hover,.btn-primary:focus{background:var(--primary-hover);transform:translateY(-1px)}
.btn-secondary{background:transparent;color:var(--accent);border:2px solid var(--accent)}
.btn-secondary:hover,.btn-secondary:focus{background:var(--accent);color:#fff}
.btn-group{display:flex;flex-direction:column;gap:1rem;margin-top:2rem}
@media (min-width:640px){.btn-group{flex-direction:row}}

/* Hero */
.hero{background:linear-gradient(135deg,var(--surface) 0%,var(--card) 100%);padding:6rem 0;text-align:center}
.hero-content{max-width:800px;margin:0 auto}

/* Problem/Solution/Steps */
.problem-stat{background:var(--card);border-left:4px solid var(--primary);padding:2rem;margin:2rem 0;border-radius:0 .75rem .75rem 0;font-size:1.25rem;font-weight:600;text-align:center}
.solution-grid{display:grid;gap:1.5rem;margin-top:2rem}
@media (min-width:768px){.solution-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1024px){.solution-grid{grid-template-columns:repeat(3,1fr)}}
.solution-card{background:var(--card);padding:1.5rem;border-radius:.75rem;border:1px solid var(--border)}
.solution-icon{width:48px;height:48px;background:var(--primary);border-radius:.75rem;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;color:#fff}
.steps{display:grid;gap:2rem;margin-top:2rem}
@media (min-width:768px){.steps{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1024px){.steps{grid-template-columns:repeat(5,1fr)}}
.step{text-align:center}
.step-number{width:60px;height:60px;background:var(--primary);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;margin:0 auto 1rem}

/* ODS */
.ods-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:2rem;margin-top:2rem}
.ods-card{text-align:center}
.ods-logo{width:150px;height:150px;background:var(--border);border-radius:.75rem;margin:0 auto 1rem;display:flex;align-items:center;justify-content:center}
.ods-logo img{width:100%;height:100%;object-fit:contain;border-radius:.75rem}

/* Team */
.team-grid{display:grid;gap:2rem;margin-top:2rem}
@media (min-width:640px){.team-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1024px){.team-grid{grid-template-columns:repeat(3,1fr)}}
.team-card{text-align:center;background:var(--card);padding:2rem;border-radius:.75rem;border:1px solid var(--border)}
.team-photo{width:250px;height:250px;background:var(--border);border-radius:50%;margin:0 auto 1rem;display:flex;align-items:center;justify-content:center;border:3px solid var(--primary);overflow:hidden}
.team-name{font-size:1.25rem;font-weight:600;margin-bottom:.5rem}
.team-role{color:var(--muted);margin-bottom:1rem}
.team-linkedin{color:var(--primary-hover);text-decoration:none;font-weight:500}
.team-linkedin:hover{text-decoration:underline}

/* Social cards */
.social-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:2rem;margin-top:2rem;text-align:center}
.social-card{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:2rem;border-radius:.75rem;border:1px solid var(--border);box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}
.social-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.social-icon{width:90px;height:90px;display:flex;justify-content:center;align-items:center}

/* Video */
.video-container{position:relative;width:100%;max-width:800px;margin:2rem auto;aspect-ratio:16/9;background:var(--card);border-radius:.75rem;overflow:hidden;border:1px solid var(--border)}
.video-poster{position:relative;width:100%;height:100%;background:linear-gradient(45deg,var(--surface),var(--card));display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1rem;border:0;padding:0;cursor:pointer}
.video-thumbnail{width:100%;height:100%;object-fit:cover}
.play-button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:80px;height:80px;background:var(--primary);border-radius:50%;display:grid;place-items:center;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.25);opacity:.9}
.video-iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* Contact */
.contact-list{list-style:none}
.contact-list li{margin-bottom:.5rem}
.contact-form label{display:block;font-weight:600;margin-bottom:.75rem}
.contact-form input,.contact-form textarea{width:100%;padding:.75rem;border:1px solid var(--border);border-radius:.5rem;font:inherit;margin-top:.25rem}
.contact-form .btn{margin-top:.75rem}

/* ===== Footer oscuro (estilo similar a la captura) ===== */
.site-footer{background:var(--footer-bg);color:var(--footer-text);margin-top:4rem}
.footer-columns{display:grid;gap:2rem;padding:3rem 1rem}
@media (min-width:900px){.footer-columns{grid-template-columns:2fr 1fr 1fr}}
.footer-brand{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}
.footer-logo img{filter:drop-shadow(0 2px 2px rgba(0,0,0,.2))}
.footer-tagline{max-width:560px}
.footer-col h4{color:var(--footer-heading);font-size:1.125rem;margin-bottom:1rem}
.footer-links{list-style:none}
.footer-link{color:var(--footer-link);text-decoration:none;display:flex;align-items:center;gap:.5rem;padding:.25rem 0}
.footer-link:hover{color:var(--footer-link-hover)}
.footer-bottom{border-top:1px solid var(--footer-sep);padding:1rem;text-align:center;color:var(--footer-link)}
/* iconos mínimos en CSS */
.icon{display:inline-block;width:18px;height:18px;position:relative}
.icon.insta::before{content:"";position:absolute;inset:2px;border:2px solid currentColor;border-radius:4px}
.icon.insta::after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;border:2px solid currentColor;border-radius:50%;transform:translate(-50%,-50%)}
.icon.linkedin::before{content:"in";position:absolute;left:2px;top:0;font-weight:700;font-size:12px}
.icon.youtube::before{content:"";position:absolute;left:1px;right:1px;top:4px;bottom:4px;background:currentColor;border-radius:4px}
.icon.youtube::after{content:"";position:absolute;left:7px;top:6px;border-style:solid;border-width:6px 0 6px 10px;border-color:transparent transparent transparent var(--footer-bg);}

/* Utilities */
.text-primary{color:var(--primary)}
.mb-4{margin-bottom:2rem}


/* ===== Sobre nosotros – layout mejorado ===== */

/* Intro: texto + foto */
.intro-grid{
  display:grid;
  gap:2rem;
  align-items:center;
  grid-template-columns:1fr;
}
@media (min-width:900px){
  .intro-grid{grid-template-columns:1.1fr .9fr}
}
.intro-copy h1{margin-bottom:.5rem}
.group-photo{
  border-radius:1.25rem;
  border:1px solid var(--border);
  box-shadow:var(--shadow-lg);
}

/* Misión · Visión · Valores */
.mv-grid{
  display:grid;
  gap:1.5rem;
  grid-template-columns:1fr;
}
@media (min-width:900px){
  .mv-grid{grid-template-columns:1fr 1fr}
}
.pill-card{
  border-radius:1.25rem;
  padding:2rem;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
}
.pill-card h2{margin-bottom:.5rem}
.pill-card.is-mision{background:#e0f2fe;}   /* azul claro */
.pill-card.is-vision{background:#1f4e6e; color:#fff;} /* azul profundo */
.pill-card.is-valores{background:#d9f99d;} /* verde suave */
.span-2{grid-column:auto}
@media (min-width:900px){
  .span-2{grid-column:1 / -1}
}
.values-list{padding-left:1.25rem}
.values-list li{margin:.4rem 0}

/* ODS 4 */
.ods-row{
  display:grid;
  gap:2rem;
  align-items:center;
  grid-template-columns:1fr;
}
@media (min-width:900px){
  .ods-row{grid-template-columns:.8fr 1.2fr}
}
.ods-image{
  border-radius:1rem;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:var(--shadow);
}
.ods-copy h2{margin-bottom:.5rem}

/* === Fotos del equipo: llenar el círculo completo === */
.team-photo{
  width: 260px;                 /* ajusta si quieres más grande/pequeño */
  aspect-ratio: 1 / 1;          /* siempre cuadrado */
  border-radius: 50%;
  overflow: hidden;             /* recorta a círculo */
  padding: 0;                   
  background: transparent;      /* sin fondo dentro del aro */
  border: 4px solid var(--primary);
  display: block;
  margin: 0 auto 1rem;          /* centrado como antes */
}

.team-photo img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;   /* llena el contenedor */
  object-position: center 40%;    /* centra el rostro; ajusta (%) si hace falta */
  display: block;
}


/* === Hover grow: foto grupal + tarjetas del equipo === */

/* Contenedor de la imagen grupal */
.intro-media{
  border-radius: 1.25rem;
  overflow: hidden;                  /* recorta cuando se hace zoom */
  box-shadow: var(--shadow-lg);
  transition: box-shadow .35s ease;
  will-change: transform;
}
.intro-media:hover{
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* Imagen grupal */
.group-photo{
  display: block;
  transform-origin: center;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}
.intro-media:hover .group-photo{
  transform: scale(1.045);           /* zoom suave */
  filter: saturate(1.03);
}

/* Tarjetas del equipo */
.team-card{
  transition: transform .30s cubic-bezier(.2,.8,.2,1), box-shadow .30s ease;
  will-change: transform;
}
.team-card:hover{
  transform: translateY(-6px) scale(1.01);  /* levanta y agranda */
  box-shadow: var(--shadow-lg);
}

/* Foto circular dentro de la tarjeta */
.team-photo img{
  transition: transform .40s cubic-bezier(.2,.8,.2,1);
}
.team-card:hover .team-photo img{
  transform: scale(1.06);            /* zoom dentro del círculo */
}

/* Respeto a accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce){
  .intro-media, .group-photo, .team-card, .team-photo img{
    transition: none !important;
  }
}


/* === Botón de LinkedIn como ícono redondo === */
.team-link-badge{
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: .85rem auto 0;          /* centrado bajo la tarjeta */
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2,.8,.2,1),
              box-shadow .25s ease, border-color .25s ease,
              background-color .25s ease;
  outline: none;
}
.team-link-badge img{
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
.team-link-badge:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-hover);
  background: color-mix(in oklab, #fff 88%, var(--primary) 12%);
}
.team-link-badge:focus-visible{
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 25%, transparent);
}

/* (Opcional) si aún existe .team-linkedin con texto, escóndelo */
.team-linkedin{display:none !important;}



/* ===== Footer v2: rejilla mejor distribuida + sello Feria ===== */
.footer-columns.footer-v2{
  display:grid;
  gap:2rem;
  padding:3rem 1rem;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;   /* brand | enlaces | redes | sello */
}
@media (max-width: 1000px){
  .footer-columns.footer-v2{
    grid-template-columns: 1.4fr 1fr;        /* 2 columnas */
  }
  .footer-badge{justify-self:start}
}
@media (max-width: 640px){
  .footer-columns.footer-v2{
    grid-template-columns: 1fr;              /* 1 columna */
  }
}

/* Ajustes de estilo */
.site-footer{background:var(--footer-bg);color:var(--footer-text);margin-top:4rem}
.footer-brand{display:flex;flex-direction:column;gap:1rem}
.footer-col h4{color:var(--footer-heading);font-size:1.125rem;margin-bottom:1rem}
.footer-links{list-style:none}
.footer-link{color:var(--footer-link);text-decoration:none;display:flex;align-items:center;gap:.5rem;padding:.25rem 0}
.footer-link:hover{color:var(--footer-link-hover)}
.footer-bottom{border-top:1px solid var(--footer-sep);padding:1rem;text-align:center;color:var(--footer-link)}

/* Sello Feria de Software */
.footer-badge{
  align-self:center;
  justify-self:end;
  text-align:center;
}
.badge-label{
  color:var(--footer-heading);
  font-weight:700;
  margin-bottom:.5rem;
}
.badge-logo{
  display:inline-block;
  max-width: 180px;
  width: 100%;
  height: auto;
  background:#fff;
  border-radius:.75rem;
  padding:.5rem .75rem;
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in oklab, #000 8%, transparent);
  transition: transform .25s ease, box-shadow .25s ease;
}
.badge-logo:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}



/* ===== Contacto: tarjetas grandes con paleta Kimel ===== */
.contact-hero h1{ margin-bottom:.25rem; }
.contact-grid{
  display:grid;
  gap:1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top:1.25rem;
}

/* Tarjeta */
.contact-card{
  position:relative;
  display:grid;
  gap:.35rem;
  place-items:center;
  padding:2rem 1rem;
  text-decoration:none;
  color:var(--primary-contrast);
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 85%, #000 0%) 0%, var(--primary-hover) 100%);
  border: 2px solid color-mix(in oklab, var(--primary) 65%, #000 0%);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease, filter .25s ease;
  min-height: 180px;
}
.contact-card:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklab, var(--primary-hover) 75%, #000 0%);
  filter: saturate(1.03);
}

/* Ícono */
.contact-icon{
  display:grid;
  place-items:center;
  width:72px; height:72px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  outline: 2px solid rgba(255,255,255,.22);
}
.contact-icon img{
  width: 36px; height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* iconos a blanco si son oscuros */
}

/* Textos dentro de la tarjeta */
.contact-label{
  font-weight:700;
  letter-spacing:.2px;
}
.contact-cta{
  font-size:.95rem;
  opacity:.95;
}

/* Accesibilidad: menos movimiento si el usuario lo pide */
@media (prefers-reduced-motion: reduce){
  .contact-card{ transition: none !important; }
}


/* Link activo en el navbar */
.nav-link.active{
  color: var(--primary);
  background: color-mix(in oklab, var(--primary) 12%, transparent);
}

/* FAQ */
.faq{ max-width: 900px; }
.faq-list{ display: grid; gap: .75rem; margin-top: 1rem; }
.faq-list details{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: .9rem 1rem;
  box-shadow: var(--shadow);
}
.faq-list summary{
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}
.faq-list summary::-webkit-details-marker{ display:none; }
.faq-list details[open]{ box-shadow: var(--shadow-lg); }
.faq-list details p{ margin-top: .5rem; color: var(--muted); }



/* ====== Sobre Kimel: estilos específicos + animaciones ====== */

/* Héroe más compacto para esta vista */
.hero-compact{ padding: 4.5rem 0 3rem; }

/* Banner de impacto (problema) */
.problem-banner{
  margin: 2rem 0;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem;
  color: var(--primary-contrast);
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--primary) 92%, #000 0%) 0%, var(--primary-hover) 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}
.pb-badge{
  background: rgba(255,255,255,.16);
  border: 2px solid rgba(255,255,255,.35);
  padding: .4rem .7rem;
  border-radius: .75rem;
  font-weight: 700;
  letter-spacing:.2px;
}
.pb-text{ font-size: clamp(1.05rem, 1.9vw, 1.25rem); }
.pb-src{
  display:inline-block;
  margin-left:.5rem;
  background: rgba(0,0,0,.15);
  padding: .15rem .5rem;
  border-radius: .5rem;
  font-size:.9em;
}

/* Rejilla de estadísticas/evidencia */
.stat-grid{
  display:grid;
  gap:1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1rem;
}
.stat-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .9rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.stat-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
}
.stat-icon{
  width: 40px; height: 40px; border-radius: .6rem;
  display:grid; place-items:center; color: var(--primary-contrast);
  background: var(--primary);
  margin-bottom: .75rem;
}
.stat-title{ margin: 0 0 .25rem; }
.stat-text{ color: var(--text); }
.stat-src{ color: var(--muted); font-size: .9rem; margin-top:.25rem; }

/* Suave elevación para tarjetas reutilizadas */
.lift{ transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
.lift:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Animaciones on-scroll */
[data-reveal]{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].in{
  opacity: 1;
  transform: translateY(0);
}

/* Pequeñas mejoras responsivas */
@media (max-width: 720px){
  .problem-banner{ grid-template-columns: 1fr; text-align:center; }
  .pb-badge{ justify-self:center; }
}



/* Centrar los botones del hero y darles ancho mínimo parejo */
.hero .btn-group{
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.hero .btn-group .btn{
  text-align: center;
  min-width: 220px;
}



/* ===== Redes: tarjetas con gradiente de marca ===== */
.social-cta{ background: linear-gradient(180deg, var(--surface), #fff 60%); border-top:1px solid var(--border); }

.brand-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap:1.1rem;
}

.brand-card{
  --brand:#0ea5e9;             /* fallback */
  --bg1:#f59e0b;               /* fallback */
  --bg2:#d97706;
  --ring: var(--bg1);
  position:relative;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:1rem;
  padding:1.1rem 1.2rem;
  border-radius:1rem;
  text-decoration:none;
  color:#fff;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  border:1px solid color-mix(in oklab, var(--ring) 40%, #ffffff);
  box-shadow: var(--shadow);
  overflow:hidden;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease, filter .28s ease;
}
.brand-card::after{
  content:"";
  position:absolute;
  right:-40px; top:-40px;
  width:160px; height:160px;
  background: radial-gradient(closest-side, rgba(255,255,255,.35), transparent 70%);
  filter: blur(8px);
  transform: rotate(20deg);
}
.brand-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  filter: saturate(1.05);
  border-color: color-mix(in oklab, var(--ring) 70%, #ffffff);
}

.brand-icon{
  width:68px; height:68px;
  display:grid; place-items:center;
  border-radius:999px;
  background: rgba(255,255,255,.95);
  outline:2px solid rgba(255,255,255,.65);
  color: var(--brand);
}

.brand-info{ line-height:1.15; }
.brand-name{ font-weight:800; font-size:1.1rem; display:block; }
.brand-handle{ opacity:.95; font-weight:600; display:block; }

.brand-cta{
  font-weight:700;
  background: rgba(255,255,255,.18);
  border:2px solid rgba(255,255,255,.4);
  padding:.35rem .7rem;
  border-radius:.6rem;
}

/* Colores por marca */
.is-linkedin{ --bg1:#0a66c2; --bg2:#287ae0; --brand:#0a66c2; --ring:#0a66c2; }
.is-instagram{ --bg1:#f58529; --bg2:#dd2a7b; --brand:#dd2a7b; --ring:#dd2a7b; }
.is-youtube{ --bg1:#ff3333; --bg2:#cc0000; --brand:#ff0000; --ring:#ff0000; }

@media (prefers-reduced-motion: reduce){
  .brand-card{ transition:none !important; }
}


/* Botón con el mismo color del título */
.btn-dark{
  background: var(--text);
  color: #fff;
  border: 0;
}
.btn-dark:hover,
.btn-dark:focus{
  background: color-mix(in oklab, var(--text) 85%, black 15%);
  transform: translateY(-1px);
}


/* Botón outline con el color del título */
.btn-dark{
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}
.btn-dark:hover,
.btn-dark:focus{
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  transform: translateY(-1px);
}
.btn-dark:active{
  transform: translateY(0);
  filter: brightness(.95);
}



/* ——— HERO con banner de fondo ——— */
.hero{
  position: relative;
  isolation: isolate;                 /* asegura capas limpias */
  background: linear-gradient(135deg,
              color-mix(in oklab, var(--surface) 80%, #fff 20%) 0%,
              var(--card) 100%);
}

/* cuadrícula + blobs suaves (decoración) */
.hero::before{
  content:"";
  position: absolute;
  inset: -2rem -2rem 0 -2rem;        /* un poco más grande para evitar bordes */
  background:
    /* blob dorado (arriba derecha) */
    radial-gradient(1200px 600px at 110% -10%,
      color-mix(in oklab, var(--primary) 16%, transparent), transparent 60%),
    /* blob azul (abajo izquierda) */
    radial-gradient(900px 450px at -10% 110%,
      color-mix(in oklab, var(--accent) 12%, transparent), transparent 60%),
    /* grid vertical */
    repeating-linear-gradient(90deg,
      rgba(37, 99, 235, .08) 0 1px, transparent 1px 24px),
    /* grid horizontal */
    repeating-linear-gradient(0deg,
      rgba(37, 99, 235, .08) 0 1px, transparent 1px 24px);
  /* desvanecer hacia abajo para que no “pelee” con el resto */
  -webkit-mask: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.6) 60%, rgba(0,0,0,0));
          mask: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.6) 60%, rgba(0,0,0,0));
  z-index: -1;
}

/* ola blanca para separar suavemente del siguiente bloque */
.hero::after{
  content:"";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 80px;
  background: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="80" viewBox="0 0 1440 80" preserveAspectRatio="none">\
<path fill="%23ffffff" d="M0,64 C240,16 480,16 720,64 C960,112 1200,112 1440,64 L1440,80 L0,80 Z"/>\
</svg>') center/cover no-repeat;
  z-index: 0;
}

/* asegurar que el contenido quede por encima del fondo */
.hero .hero-content{ position: relative; z-index: 1; }






/* ===========================
   PACK RESPONSIVE (overrides)
   =========================== */

/* Contenedor fluido con padding adaptable */
:root{
  --container-px: clamp(16px, 4vw, 32px);
}
.container{
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-px) !important;
}

/* Tipografías y textos se adaptan mejor en pantallas angostas */
h1,h2,h3,p{ overflow-wrap: anywhere; }

/* Header con notch/safe-area y navegación móvil un poco antes */
.header{ padding-top: max(env(safe-area-inset-top), 0px); }
@media (max-width: 980px){
  .nav-toggle{ display:block; }
  .nav-list{
    display:none;
    position:absolute; top:var(--header-h); left:0; right:0;
    background:var(--surface);
    flex-direction:column; align-items:center;
    padding:1rem 0; border-bottom:1px solid var(--border);
    box-shadow:var(--shadow);
  }
  .nav-open .nav-list{ display:flex; }
  .nav-link{ font-size:1.05rem; padding:.8rem 1rem; width:100%; text-align:center; }
}

/* Botones: mejor tactilidad en móvil */
.btn{ min-height: 44px; }

/* En móvil los CTA del hero ocupan todo el ancho si hace falta */
@media (max-width: 480px){
  .hero .btn-group .btn{ min-width: 100%; }
}

/* Hero: ola un poco más baja en pantallas pequeñas */
@media (max-width: 520px){
  .hero::after{ height: 56px; }
}

/* Cuadrículas más flexibles (features/contact/redes) */
.solution-grid{ grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }
.contact-grid{ grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }
.social-grid{ grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }

/* Intro de “Sobre nosotros”: imagen y texto stackean lindo */
.intro-grid{ grid-template-columns: 1fr; gap: clamp(16px, 3vw, 32px); }
@media (min-width:900px){
  .intro-grid{ grid-template-columns: 1.1fr .9fr; }
}

/* Foto grupal: no sobresatura bordes en teléfonos */
.group-photo{ border-radius: 1rem; }

/* Tarjetas del equipo: tamaño del círculo según viewport */
@media (max-width: 480px){
  .team-photo{ width: 200px; }
}
@media (max-width: 360px){
  .team-photo{ width: 170px; }
}

/* Footer: saltos más tempranos y buen espaciado */
.footer-columns.footer-v2{ gap: clamp(16px, 3vw, 32px); }
@media (max-width: 1000px){
  .footer-columns.footer-v2{ grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 640px){
  .footer-columns.footer-v2{ grid-template-columns: 1fr; }
  .footer-badge{ justify-self: start; }
}

/* Tarjetas (contacto/beneficios/estadísticas) con padding fluido */
.card, .solution-card, .stat-card, .contact-card{
  padding: clamp(16px, 3.5vw, 24px);
}

/* Corregir ícono YouTube en footer (triángulo centrado) */
.icon.youtube{
  position: relative;
  width: 18px; height: 18px;
}
.icon.youtube::before{
  content:"";
  position:absolute; inset:4px 2px;
  background:currentColor; border-radius:4px;
}
.icon.youtube::after{
  content:"";
  position:absolute;
  left: 7px; top: 6px;
  width: 0; height: 0;
  border-left: 8px solid var(--footer-bg);  /* triángulo */
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Accesibilidad: menos movimiento si el usuario lo pide */
@media (prefers-reduced-motion: reduce){
  .lift, .hero::before, .hero::after, [data-reveal]{ transition: none !important; }
}



/* --- FIX: hamburger totalmente a la derecha en mobile --- */
@media (max-width: 767px){
  /* La nav ya es absoluta en mobile; que NO empuje a la derecha */
  .nav{ 
    margin-left: 0 !important;
  }

  /* El botón hamburguesa es el que debe empujar y quedar al borde */
  .nav-toggle{
    margin-left: auto;
    margin-right: .25rem;      /* opcional: un pequeño respiro al borde */
  }

  /* Orden explícito por si algún estilo previo cambia el flujo */
  .logo{ order: 0; }
  .nav{ order: 1; }
  .nav-toggle{ order: 2; }
}


.logo{ flex: 0 0 auto; }




/* === FIX responsive (index + sobre-kimel) === */

/* Evitar scroll lateral en móviles por sombras/gradientes/ancho mínimo */
html, body { max-width: 100%; overflow-x: hidden; }

/* Footer: columnas fluidas que no rompan el ancho */
.footer-columns.footer-v2{
  grid-template-columns:
    minmax(0, 2fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 1.2fr);
}

@media (max-width: 1000px){
  .footer-columns.footer-v2{
    grid-template-columns:
      minmax(0, 1.4fr)
      minmax(0, 1fr);
  }
}
@media (max-width: 640px){
  .footer-columns.footer-v2{ grid-template-columns: 1fr; }
}

/* Nada dentro del footer puede exceder el ancho del contenedor */
.footer-columns img,
.footer-logo img{
  max-width: 100%;
  height: auto;
}
.footer-links{ word-break: break-word; }

/* Botones del hero: no forzar ancho en pantallas angostas */
.hero .btn-group .btn{
  min-width: min(220px, 100%);
}

/* Rejillas de tarjetas más elásticas en mobile */
.solution-grid,
.social-grid,
.benefits-grid{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Vídeo: asegurar centrado y que no cree overflow */
.video-container{
  margin-inline: auto;
  box-shadow: var(--shadow);
}

/* Contenedor global con padding fluido (ayuda en marcos muy pequeños) */
.container{ padding-inline: clamp(1rem, 4vw, 1.5rem); }


/* === Footer full-bleed en móviles (quita el marco) === */
@media (max-width: 640px){
  html, body { overflow-x: hidden; } /* por si alguna sombra crea overflow */

  .site-footer{
    margin: 0;
    border-radius: 0 !important;
  }

  /* Unificar el color de fondo en todas las capas del footer */
  .site-footer,
  .footer-columns,
  .footer-bottom{
    background-color: var(--footer-bg) !important;
    background-image: none !important;
    border-radius: 0 !important;
  }

  /* Padding lateral cómodo y sin “marco” */
  .footer-columns.footer-v2{
    padding: 2rem 1rem;
    grid-template-columns: 1fr; /* una columna en phones */
  }

  /* Que nada se salga */
  .footer-columns img,
  .footer-logo img{
    max-width: 100%;
    height: auto;
  }

  /* Sello FESW centrado y sin desbordar */
  .footer-badge{
    justify-self: center;
    text-align: center;
  }
  .badge-logo{ max-width: 160px; }
}
