/* =========================================
   PuyoteLabs — Landing styles
   ========================================= */

:root{
  --purple:        #5B21A0;
  --purple-dark:   #4A1A85;
  --red:           #DE3E2C;
  --red-dark:      #C2331F;
  --cream:         #F4E6BC;
  --ink:           #17162E;
  --body:          #5C6675;
  --line:          #EAE6E1;
  --surface:       #F7F5F3;
  --white:         #ffffff;

  --radius:        14px;
  --radius-sm:     8px;
  --container:     1160px;
  --shadow-soft:   0 18px 40px rgba(23, 22, 46, .08);
  --shadow-art:    0 26px 54px rgba(60, 30, 110, .18);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top:96px; }

body{
  margin:0;
  font-family:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

h1,h2,h3,h4{ margin:0; font-weight:700; letter-spacing:-.025em; line-height:1.18; }
p{ margin:0; }

a{ color:inherit; text-decoration:none; }

svg{ display:block; }

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:24px;
}

/* ---------- Botones ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--red);
  color:var(--white);
  font-weight:600;
  font-size:.95rem;
  padding:14px 28px;
  border-radius:var(--radius-sm);
  border:0;
  cursor:pointer;
  transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow:0 8px 18px rgba(222,62,44,.22);
}
.btn:hover{ background:var(--red-dark); transform:translateY(-1px); box-shadow:0 12px 24px rgba(222,62,44,.28); }
.btn:active{ transform:translateY(0); }
.btn:focus-visible{ outline:3px solid rgba(91,33,160,.45); outline-offset:2px; }
.btn-sm{ padding:11px 20px; font-size:.85rem; }

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled{ border-bottom-color:var(--line); box-shadow:0 6px 22px rgba(23,22,46,.05); }

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:76px;
  gap:24px;
}

.brand{
  font-size:1.2rem;
  font-weight:700;
  letter-spacing:-.03em;
  color:var(--purple);
}
.brand span{ color:var(--red); }

.nav{ display:flex; align-items:center; gap:34px; }
.nav a:not(.btn){
  font-size:.9rem;
  font-weight:500;
  color:var(--ink);
  position:relative;
  padding:4px 0;
  transition:color .2s ease;
}
.nav a:not(.btn)::after{
  content:"";
  position:absolute;
  left:0; bottom:-2px;
  height:2px; width:0;
  background:var(--red);
  border-radius:2px;
  transition:width .25s ease;
}
.nav a:not(.btn):hover{ color:var(--purple); }
.nav a:not(.btn):hover::after{ width:100%; }

.nav-toggle{
  display:none;
  width:44px; height:44px;
  background:transparent;
  border:1px solid var(--line);
  border-radius:10px;
  padding:0;
  cursor:pointer;
  position:relative;
}
.nav-toggle span{
  position:absolute;
  left:12px; right:12px;
  height:2px;
  background:var(--ink);
  border-radius:2px;
  transition:transform .25s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1){ top:15px; }
.nav-toggle span:nth-child(2){ top:21px; }
.nav-toggle span:nth-child(3){ top:27px; }
.nav-toggle.is-open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{ padding:72px 0 88px; overflow:hidden; }

.hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:72px;
  align-items:center;
}

.hero-copy h1{
  font-size:clamp(2.1rem, 3.6vw, 3rem);
  font-weight:800;
  margin-bottom:26px;
}
.hero-copy .accent-muted{ color:#8B90A0; }

.hero-copy p{
  color:var(--body);
  font-size:1rem;
  line-height:1.7;
  max-width:42ch;
  margin-bottom:34px;
}

.hero-art{
  max-width:420px;
  width:100%;
  margin-left:auto;
  border-radius:10px;
  overflow:hidden;
  box-shadow:var(--shadow-art);
  transform:translateZ(0);
}
.hero-art svg{ width:100%; height:auto; }

/* ---------- Secciones ---------- */
.section{ padding:88px 0; }

.section-head{ text-align:center; max-width:640px; margin:0 auto 52px; }
.section-head h2{ font-size:clamp(1.7rem, 2.6vw, 2.1rem); margin-bottom:16px; }
.section-head p{ color:var(--body); line-height:1.7; font-size:.98rem; }

/* ---------- Servicios ---------- */
.services{ padding-top:56px; }

.cards{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:26px;
}

.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px 24px 30px;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-soft);
  border-color:transparent;
}

.card-icon{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius:10px;
  background:#F5EFE9;
  color:var(--purple);
  margin-bottom:20px;
}
.card-icon svg{ width:20px; height:20px; }

.card h3{ font-size:1.02rem; margin-bottom:12px; }
.card p{ color:var(--body); font-size:.88rem; line-height:1.7; }

/* ---------- Nosotros ---------- */
.about{ background:var(--surface); }

.about-grid{
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:72px;
  align-items:center;
}

.about-photo{
  width:100%;
  height:auto;
  display:block;
  border-radius:6px;
  box-shadow:var(--shadow-soft);
}

.eyebrow{
  display:inline-block;
  color:var(--red);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.09em;
  text-transform:uppercase;
  margin-bottom:18px;
}

.about-copy h2{
  font-size:clamp(1.55rem, 2.4vw, 2rem);
  margin-bottom:20px;
}
.about-copy p{ color:var(--body); line-height:1.75; font-size:.97rem; margin-bottom:30px; }

.checklist{ list-style:none; margin:0; padding:0; display:grid; gap:16px; }
.checklist li{
  position:relative;
  padding-left:34px;
  font-size:.95rem;
  font-weight:500;
  color:var(--ink);
  line-height:1.5;
}
.checklist li::before{
  content:"";
  position:absolute;
  left:0; top:1px;
  width:19px; height:19px;
  border-radius:50%;
  background:var(--red);
  box-shadow:inset 0 0 0 3px var(--white);
}
.checklist li::after{
  content:"";
  position:absolute;
  left:6.2px; top:6.4px;
  width:4.5px; height:8.5px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

/* ---------- Clientes ---------- */
.clients{ text-align:center; }
.clients-title{ font-size:clamp(1.5rem, 2.4vw, 1.95rem); margin-bottom:56px; }

.logos{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:32px;
  align-items:center;
}
.logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  color:#B3B8C2;
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:-.02em;
  transition:color .25s ease, opacity .25s ease;
}
.logo svg{ width:20px; height:20px; opacity:.8; }
.logos:hover .logo{ color:#A4AAB6; }
.logo:hover{ color:var(--purple); }

/* ---------- Footer ---------- */
.site-footer{
  border-top:1px solid var(--line);
  padding:66px 0 0;
  background:var(--white);
}

.footer-grid{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr;
  gap:48px;
  padding-bottom:52px;
}

.footer-brand p{
  color:var(--body);
  font-size:.88rem;
  line-height:1.7;
  margin-top:20px;
}

.footer-col h4{
  font-size:.88rem;
  font-weight:700;
  margin-bottom:20px;
}
.footer-col a{
  display:block;
  color:var(--body);
  font-size:.88rem;
  padding:6px 0;
  transition:color .2s ease;
}
.footer-col a:hover{ color:var(--purple); }

.footer-bottom{
  border-top:1px solid var(--line);
  padding:26px 0 32px;
  text-align:center;
}
.footer-bottom p{ color:#9AA1AE; font-size:.8rem; }

/* ---------- Animaciones al hacer scroll ---------- */
.js .reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.is-visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .js .reveal{ opacity:1; transform:none; transition:none; }
  *{ animation:none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .hero-grid{ gap:48px; }
  .about-grid{ gap:48px; }
  .cards{ grid-template-columns:repeat(2, 1fr); }
}

@media (max-width:860px){
  .nav{
    position:absolute;
    top:76px; left:0; right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:var(--white);
    border-bottom:1px solid var(--line);
    padding:8px 24px 20px;
    box-shadow:0 18px 30px rgba(23,22,46,.08);
    display:none;
  }
  .nav.is-open{ display:flex; }
  .nav a:not(.btn){ padding:14px 0; border-bottom:1px solid var(--surface); }
  .nav a:not(.btn)::after{ display:none; }
  .nav-cta{ margin-top:18px; align-self:flex-start; }
  .nav-toggle{ display:block; }

  .hero{ padding:48px 0 64px; }
  .hero-grid,
  .about-grid{ grid-template-columns:1fr; gap:40px; }
  .hero-art{ margin:0 auto; }
  .hero-copy p{ max-width:none; }

  .section{ padding:64px 0; }
  .services{ padding-top:24px; }

  .about-grid{ gap:32px; }

  .footer-grid{ grid-template-columns:1fr 1fr; gap:36px; }
  .footer-brand{ grid-column:1 / -1; }
}

@media (max-width:620px){
  .container{ padding-inline:20px; }
  .cards{ grid-template-columns:1fr; }
  .logos{ grid-template-columns:1fr 1fr; gap:28px 16px; }
  .footer-grid{ grid-template-columns:1fr; }
  .btn{ width:100%; }
}
