/* ============================================================
   VIVAKY — Hoja de estilos principal
   v1.0 · HTML5 / CSS3 · Sin frameworks
   ============================================================ */

/* ===== TOKENS ===== */
:root {
  --sun:         #F8A84B;
  --sun-dark:    #E8941A;
  --sun-light:   #FEF3E2;
  --sky:         #4FAADF;
  --sky-dark:    #3A94C9;
  --sky-light:   #E8F4FB;
  --coral:       #F4A89A;
  --coral-dark:  #E0887A;
  --coral-light: #FEF0EE;
  --ink:         #1E2D42;
  --smoke:       #64748B;
  --mist:        #F7F9FC;
  --border:      #E8EEF6;
  --white:       #FFFFFF;

  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-pill: 50px;

  --sh-sm: 0 2px 8px  rgba(30,45,66,.07);
  --sh-md: 0 6px 24px rgba(30,45,66,.11);
  --sh-lg: 0 12px 48px rgba(30,45,66,.16);

  --ease: .3s ease;
  --max:  1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
:root {
  padding-top:    env(safe-area-inset-top,    0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== UTILIDADES ===== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* ===== TIPOGRAFÍA ===== */
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 700; }
p  { color: var(--smoke); line-height: 1.75; }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .9375rem;
  transition: all var(--ease); white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary  { background: var(--sun);  color: var(--white); }
.btn-primary:hover  { background: var(--sun-dark);  transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-secondary { background: var(--sky);  color: var(--white); }
.btn-secondary:hover { background: var(--sky-dark); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-ink  { background: var(--ink);  color: var(--white); }
.btn-ink:hover  { background: #2a3f5c; transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-ghost { background: transparent; border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-sm { padding: 9px 20px; font-size: .875rem; }


/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 200;
  background: var(--white);
  transition: box-shadow var(--ease);
}
.site-header.scrolled { box-shadow: var(--sh-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
}

.logo-link { display: flex; align-items: center; }
.logo-link img { height: 38px; width: auto; }

/* NAV */
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .9375rem; color: var(--ink);
  transition: color var(--ease), background var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--sky); background: var(--sky-light); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--r-sm);
  transition: background var(--ease);
}
.hamburger:hover { background: var(--mist); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MENÚ MÓVIL */
.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  background: var(--white);
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mob-link {
  display: block; padding: 12px 16px; border-radius: var(--r-sm);
  font-weight: 600; color: var(--ink);
  transition: background var(--ease), color var(--ease);
}
.mob-link:hover { background: var(--mist); color: var(--sky); }
.mob-link.active { color: var(--sky); }
.mob-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mob-btns .btn { justify-content: center; }


/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider {
  position: relative; overflow: hidden;
  height: 560px; background: var(--mist);
}
@media (max-width: 768px) { .hero-slider { height: 480px; } }
@media (max-width: 480px) { .hero-slider { height: 400px; } }

.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; z-index: 1; pointer-events: auto; }

.slide img.slide-bg {
  width: 100%; height: 100%;
  object-fit: cover; object-position: left center;
}

/* Tarjeta flotante */
.slide-card {
  position: absolute; top: 50%; right: 7%; transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-lg); padding: 36px 40px; max-width: 400px;
  box-shadow: var(--sh-lg);
}
.slide-tag {
  display: inline-block;
  background: var(--sun); color: var(--white);
  font-size: .7rem; font-weight: 800; letter-spacing: .08em;
  padding: 4px 12px; border-radius: var(--r-pill);
  text-transform: uppercase; margin-bottom: 14px;
}
.slide-card h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink); margin-bottom: 10px; font-weight: 900;
}
.slide-card p { font-size: .9375rem; color: var(--smoke); margin-bottom: 24px; }

.slide:nth-child(2) .slide-tag { background: var(--sky); }
.slide:nth-child(3) .slide-tag { background: var(--coral); color: var(--ink); }

/* Flechas */
.sl-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.88);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-sm); color: var(--ink); font-size: 20px;
  transition: background var(--ease), transform var(--ease);
}
.sl-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.08); }
.sl-prev { left: 20px; }
.sl-next { right: 20px; }

/* Puntos */
.sl-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 8px; align-items: center;
}
.sl-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 2px solid rgba(255,255,255,.75);
  cursor: pointer; transition: all var(--ease);
}
.sl-dot.active { background: var(--white); width: 26px; border-radius: 5px; }

@media (max-width: 768px) {
  .slide-card {
    right: 50%; transform: translate(50%, -50%);
    max-width: min(88vw, 360px); padding: 24px 28px;
  }
  .sl-arrow { display: none; }
}


/* =============================================
   SECCIONES BASE
   ============================================= */
.section     { padding: 80px 0; }
.sec-alt     { background: var(--mist); }
@media (max-width: 768px) { .section { padding: 56px 0; } }

.sec-head { text-align: center; max-width: 600px; margin: 0 auto 52px; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head p  { font-size: 1.0625rem; }


/* =============================================
   CATEGORÍAS
   ============================================= */
.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cat-grid { gap: 12px; } }

.cat-card {
  background: var(--white); border-radius: var(--r-md);
  padding: 28px 20px; text-align: center;
  box-shadow: var(--sh-sm); border: 2px solid transparent;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-5px); box-shadow: var(--sh-md);
  border-color: var(--c-accent, var(--sky));
}
.cat-icon {
  width: 58px; height: 58px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 14px;
  background: var(--c-bg, var(--sky-light));
}
.cat-card h4   { font-size: 1rem; color: var(--ink); margin-bottom: 5px; }
.cat-card span { font-size: .8125rem; color: var(--smoke); }


/* =============================================
   POR QUÉ VIVAKY
   ============================================= */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; gap: 20px; } }

.why-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 32px 28px; box-shadow: var(--sh-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.why-ic {
  width: 56px; height: 56px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.why-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.why-card p  { font-size: .9375rem; }


/* =============================================
   ESTADÍSTICAS
   ============================================= */
.stats-strip {
  background: var(--sky); border-radius: var(--r-lg);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 36px 20px; text-align: center; color: var(--white);
  border-right: 1px solid rgba(255,255,255,.18);
}
.stat:last-child { border-right: none; }
@media (max-width: 700px) { .stat:nth-child(2) { border-right: none; } }
.stat-n { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; line-height: 1; margin-bottom: 6px; }
.stat-l { font-size: .8125rem; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }


/* =============================================
   BLOQUE EMPRESAS
   ============================================= */
.empresas-sec {
  background: linear-gradient(135deg, var(--coral-light) 0%, var(--sky-light) 100%);
  padding: 70px 0;
}
.empresas-inner { display: flex; align-items: center; gap: 40px; }
@media (max-width: 768px) { .empresas-inner { flex-direction: column; text-align: center; } }
.empresas-icon { font-size: 80px; flex-shrink: 0; }
.empresas-txt h2 { margin-bottom: 12px; }
.empresas-txt p  { margin-bottom: 20px; max-width: 500px; }
.empresas-btns   { display: flex; gap: 12px; flex-wrap: wrap; }


/* =============================================
   CTA BANNER
   ============================================= */
.cta-sec {
  background: linear-gradient(135deg, var(--sun) 0%, var(--sun-dark) 100%);
  padding: 80px 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
@media (max-width: 768px) { .cta-inner { flex-direction: column; text-align: center; } }
.cta-txt h2 { color: var(--white); margin-bottom: 10px; }
.cta-txt p  { color: rgba(255,255,255,.85); font-size: 1.0625rem; }


/* =============================================
   NOSOTROS
   ============================================= */
.pg-hero {
  padding: 90px 0; text-align: center;
  background: linear-gradient(140deg, var(--sky) 0%, var(--sky-dark) 100%);
  color: var(--white);
}
.pg-hero.coral-hero {
  background: linear-gradient(140deg, var(--coral) 0%, var(--coral-dark) 100%);
}
.pg-hero h2 { color: var(--white); margin-bottom: 14px; }
.pg-hero p  { color: rgba(255,255,255,.85); font-size: 1.0625rem; max-width: 580px; margin: 0 auto; }

.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 768px) { .mission-grid { grid-template-columns: 1fr; gap: 36px; } }

.mission-img-wrap {
  border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3;
  background: var(--sky-light);
  display: flex; align-items: center; justify-content: center; font-size: 6rem;
}
.mission-txt h2 { margin-bottom: 18px; }
.mission-txt p  { margin-bottom: 16px; }

.vals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .vals-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .vals-grid { grid-template-columns: 1fr; } }

.val-card {
  border-radius: var(--r-md); padding: 24px;
  border-left: 4px solid var(--c-accent, var(--sky));
  background: var(--white); box-shadow: var(--sh-sm);
}
.val-card h4 { margin-bottom: 8px; color: var(--ink); }
.val-card p  { font-size: .875rem; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 768px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--white); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-sm); text-align: center;
}
.team-photo {
  height: 200px; background: var(--mist);
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.team-info { padding: 20px; }
.team-info h4   { margin-bottom: 4px; }
.team-info span { font-size: .875rem; color: var(--sky); font-weight: 600; }


/* =============================================
   CONTACTO
   ============================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }

.ci-block { display: flex; flex-direction: column; gap: 24px; }
.ci-item  { display: flex; gap: 16px; align-items: flex-start; }
.ci-ic {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.ci-item h4 { margin-bottom: 4px; font-size: 1rem; }
.ci-item p  { font-size: .9375rem; }
.ci-item a  { color: var(--sky); font-size: .9375rem; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg label { font-weight: 700; font-size: .9375rem; color: var(--ink); }
.fg input,
.fg select,
.fg textarea {
  padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--r-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color var(--ease); outline: none; background: var(--white);
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus { border-color: var(--sky); }
.fg textarea { resize: vertical; min-height: 140px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .fg-row { grid-template-columns: 1fr; } }

.form-ok {
  display: none; background: #edfaf1; border: 2px solid #27ae60;
  border-radius: var(--r-sm); padding: 16px 20px;
  color: #155e32; font-weight: 700;
}
.form-ok.show { display: block; }


/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--ink); padding: 64px 0 0; }

.ft-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .ft-grid { grid-template-columns: 1fr; gap: 24px; } }

.ft-brand .ft-logo { height: 30px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.ft-brand p { font-size: .875rem; color: rgba(255,255,255,.55); max-width: 260px; line-height: 1.8; }

.ft-socials { display: flex; gap: 8px; margin-top: 20px; }
.soc {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 15px;
  transition: all var(--ease);
}
.soc:hover { background: var(--sun); color: var(--white); }

.ft-col h4  { color: var(--white); font-size: .9375rem; font-weight: 700; margin-bottom: 16px; }
.ft-col ul  { display: flex; flex-direction: column; gap: 10px; }
.ft-col a   { font-size: .875rem; color: rgba(255,255,255,.55); transition: color var(--ease); }
.ft-col a:hover { color: var(--sun); }
.ft-pill {
  font-size: .65rem; background: rgba(248,168,75,.2); color: var(--sun);
  padding: 2px 8px; border-radius: 4px; font-weight: 800;
  margin-left: 6px; vertical-align: middle; letter-spacing: .04em;
}

.ft-bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8125rem; color: rgba(255,255,255,.35);
}
.ft-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.ft-legal a { color: rgba(255,255,255,.35); transition: color var(--ease); }
.ft-legal a:hover { color: rgba(255,255,255,.65); }


/* =============================================
   ANIMACIONES
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .slide { transition: none; }
}
