/* ============================================================
   COLEGIO EL TALLER — Design system (claymorphism, playful)
   Paleta extraída del logo real (bloques arcoíris) + colores
   de marca ya usados en colegioeltaller.com
   ============================================================ */

:root{
  /* base */
  --cream:        #FFF8EC;
  --cream-deep:   #FCEFD9;
  --paper:        #FFFFFF;
  --ink:          #2B241D;
  --ink-soft:     #5A5044;
  --line:         #EFE2C8;

  /* marca */
  --navy:         #2C3E75;
  --navy-deep:    #1E2B54;
  --teal:         #0A717F;
  --teal-light:   #19929B;

  /* acentos arcoíris (bloques del logo) */
  --yellow:       #FFC866;
  --yellow-deep:  #F4B400;
  --orange:       #E89C21;
  --coral:        #F97A7A;
  --coral-deep:   #ED9572;
  --magenta:      #D1375F;
  --red:          #C81C2A;
  --green:        #46A26B;

  /* tipografía */
  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  /* forma */
  --r-lg: 32px;
  --r-md: 22px;
  --r-sm: 14px;
  --r-pill: 999px;

  /* sombra clay */
  --clay-light: rgba(255,255,255,0.75);
  --clay-dark: rgba(43,36,29,0.16);

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy-deep);
}
h1{ font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2{ font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3{ font-size: 1.3rem; }
p{ margin: 0 0 1em; }
a{ color: var(--teal); text-decoration: none; }
img{ max-width: 100%; display: block; border-radius: var(--r-md); }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section{ padding: 72px 0; }
.section--tight{ padding: 48px 0; }
.section--alt{ background: var(--cream-deep); }
.section--navy{ background: var(--navy-deep); color: #EFE9DA; }
.section--navy h2, .section--navy h3{ color: #fff; }

.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal); background: #E5F4F3;
  padding: 6px 16px; border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.section-head{ max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left{ margin: 0 0 40px; text-align: left; }
.lede{ font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Botones clay ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 15px 30px; border-radius: var(--r-pill);
  border: none; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary{
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 0 var(--coral-deep), 0 10px 18px rgba(233,88,88,.28);
}
.btn-primary:hover{ transform: translateY(-2px); }
.btn-primary:active{ transform: translateY(3px); box-shadow: 0 2px 0 var(--coral-deep); }

.btn-secondary{
  background: #fff;
  color: var(--navy-deep);
  box-shadow: 0 6px 0 var(--line), 0 10px 18px rgba(43,36,29,.08);
}
.btn-secondary:hover{ transform: translateY(-2px); }

.btn-ghost{
  background: transparent; color: var(--navy-deep);
  border: 2px solid var(--navy-deep); padding: 13px 28px;
}
.btn-sm{ padding: 10px 20px; font-size: .9rem; }
.btn-block{ width: 100%; }

/* ---------- Tarjetas clay ---------- */
.clay{
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: 10px 10px 22px var(--clay-dark), -8px -8px 18px var(--clay-light);
}
.clay-card{
  padding: 32px;
  border-radius: var(--r-lg);
  box-shadow: 10px 10px 22px var(--clay-dark), -8px -8px 18px var(--clay-light);
  transition: transform .2s ease, box-shadow .2s ease;
}
.clay-card:hover{
  transform: translateY(-6px);
  box-shadow: 14px 16px 26px var(--clay-dark), -8px -8px 18px var(--clay-light);
}
.clay-icon{
  width: 62px; height: 62px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin-bottom: 18px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.08), 4px 4px 10px rgba(0,0,0,.1);
}

/* ---------- Iconos SVG (sustituyen a los emoji) ---------- */
.icon{ width: 30px; height: 30px; stroke-width: 1.7; }
.clay-icon .icon{ width: 30px; height: 30px; }
.team-avatar .icon{ width: 34px; height: 34px; }
.icon-inline{
  width: 1.05em; height: 1.05em; vertical-align: -0.18em;
  margin-right: .3em; flex-shrink: 0;
}
h1 .icon-inline, h2 .icon-inline, h3 .icon-inline{ width: .82em; height: .82em; }
.icon-caret{ width: 11px; height: 11px; vertical-align: -1px; margin: 0; opacity: .65; }
.pill .icon-inline, .check-list .icon-inline{ margin-right: .28em; }

/* variantes de color de acento, reciclando la paleta arcoíris del logo */
.clay--yellow{ background: #FFF3D9; } .clay--yellow .clay-icon{ background: var(--yellow); color: #5A3E00; }
.clay--orange{ background: #FDECD4; } .clay--orange .clay-icon{ background: var(--orange); color: #4A2E00; }
.clay--coral{  background: #FFE7E2; } .clay--coral  .clay-icon{ background: var(--coral);  color: #6E1B1B; }
.clay--magenta{background: #FBE1E9; } .clay--magenta .clay-icon{ background: var(--magenta); color: #fff; }
.clay--teal{   background: #DEF1F0; } .clay--teal   .clay-icon{ background: var(--teal);   color: #fff; }
.clay--navy{   background: #E3E7F5; } .clay--navy   .clay-icon{ background: var(--navy);   color: #fff; }
.clay--green{  background: #E2F3E7; } .clay--green  .clay-icon{ background: var(--green);  color: #fff; }

.pill{
  display: inline-block; padding: 5px 14px; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 700; background: var(--cream-deep); color: var(--ink-soft);
}

/* ---------- Grids ---------- */
.grid{ display: grid; gap: 26px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

/* ---------- Top bar (franja superior) ---------- */
.top-bar{ background: var(--navy-deep); color: #EFE9DA; }
.top-bar .container{
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 24px; gap: 16px;
}
.top-bar-link{
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; color: #EFE9DA;
}
.top-bar-link .icon-inline{ width: .95em; height: .95em; margin: 0; }
.top-bar-link:hover, .top-bar-link.active{ color: var(--yellow); }
.top-bar-link--end .icon-inline{ margin-left: .35em; }
@media (max-width: 780px){ .top-bar{ display: none; } }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,248,236,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px; gap: 20px;
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand img{ height: 46px; width: auto; border-radius: 0; }

.nav{ display: flex; align-items: center; gap: 4px; }
.nav > ul{ display: flex; align-items: center; gap: 2px; }
.nav-item{ position: relative; }
.nav-link{
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-head); font-weight: 700; font-size: .96rem;
  color: var(--navy-deep); padding: 10px 14px; border-radius: var(--r-pill);
}
.nav-link:hover, .nav-item.active > .nav-link{ background: var(--cream-deep); color: var(--teal); }
.nav-item .caret{ font-size: .65em; opacity: .6; }

.dropdown{
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: #fff; border-radius: var(--r-md);
  box-shadow: 10px 10px 22px var(--clay-dark), -8px -8px 18px var(--clay-light);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.nav-item:hover .dropdown, .nav-item.open .dropdown{
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a{
  display: block; padding: 10px 14px; border-radius: var(--r-sm);
  color: var(--ink); font-weight: 600; font-size: .93rem;
}
.dropdown a:hover{ background: var(--cream-deep); color: var(--teal); }

.header-cta{ display: flex; align-items: center; gap: 10px; }
.menu-toggle{
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: var(--r-pill);
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after{
  content: ""; display: block; width: 22px; height: 3px; background: var(--navy-deep); border-radius: 3px;
  position: relative; transition: all .2s ease;
}
.menu-toggle span{ margin: 5px 0; }

@media (max-width: 980px){
  .nav{ display: none; position: fixed; inset: 70px 0 0 0; background: var(--cream);
        overflow-y: auto; padding: 20px 24px 40px; }
  .nav.is-open{ display: block; }
  .nav > ul{ flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-link{ padding: 14px 16px; width: 100%; }
  .dropdown{ position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none;
             display: none; padding-left: 12px; background: transparent; }
  .nav-item.open .dropdown{ display: block; }
  .header-cta .btn-secondary{ display: none; }
  .menu-toggle{ display: flex; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative; overflow: hidden;
  padding: 60px 0 90px;
  background: radial-gradient(circle at 15% 20%, #FFE9BE 0%, transparent 45%),
              radial-gradient(circle at 85% 0%, #FFD3D3 0%, transparent 40%),
              var(--cream);
}
.hero .container{ display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-badges{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero-photo{ position: relative; }
.hero-photo img{
  border-radius: var(--r-lg);
  box-shadow: 16px 18px 30px var(--clay-dark), -10px -10px 20px var(--clay-light);
}
.hero-stats{ display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.hero-stat{ background: #fff; border-radius: var(--r-md); padding: 14px 20px;
  box-shadow: 8px 8px 16px var(--clay-dark), -6px -6px 14px var(--clay-light); }
.hero-stat b{ display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--navy-deep); }
.hero-stat span{ font-size: .82rem; color: var(--ink-soft); }

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-photo{ order: -1; }
}

/* ---------- Page hero (páginas interiores) ---------- */
.page-hero{
  padding: 46px 0 40px;
  background: linear-gradient(180deg, var(--cream-deep), var(--cream));
}
.breadcrumb{ font-size: .88rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a{ color: var(--teal); font-weight: 700; }

/* ---------- Etapas / cards con imagen ---------- */
.stage-card{
  border-radius: var(--r-lg); overflow: hidden; background: #fff;
  box-shadow: 10px 10px 22px var(--clay-dark), -8px -8px 18px var(--clay-light);
  display: flex; flex-direction: column;
}
.stage-card img{ border-radius: 0; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.stage-card .stage-body{ padding: 24px; flex: 1; display: flex; flex-direction: column; }
.stage-card .stage-body p{ flex: 1; color: var(--ink-soft); }

/* ---------- Galería ---------- */
.gallery{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img{
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
  box-shadow: 8px 8px 16px var(--clay-dark), -6px -6px 14px var(--clay-light);
}
@media (max-width: 780px){ .gallery{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .gallery{ grid-template-columns: 1fr; } }

/* ---------- Anchor sections offset (header sticky) ---------- */
.anchor-section{ scroll-margin-top: 100px; }

/* ---------- Acordeón (servicios / planes) ---------- */
.accordion-item{
  background: #fff; border-radius: var(--r-md); margin-bottom: 14px; overflow: hidden;
  box-shadow: 8px 8px 16px var(--clay-dark), -6px -6px 14px var(--clay-light);
}
.accordion-trigger{
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--navy-deep);
}
.accordion-trigger .plus{ transition: transform .2s ease; font-size: 1.3rem; color: var(--coral); }
.accordion-item.is-open .plus{ transform: rotate(45deg); }
.accordion-panel{ max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 22px; }
.accordion-item.is-open .accordion-panel{ padding-bottom: 20px; }

/* ---------- Notice / placeholder ---------- */
.notice{
  display: flex; gap: 12px; align-items: flex-start;
  background: #FFF3D9; border: 1px dashed var(--yellow-deep);
  border-radius: var(--r-md); padding: 16px 20px; font-size: .93rem; color: #5A3E00;
  margin: 18px 0;
}
.notice strong{ display: block; margin-bottom: 2px; }

/* ---------- Diferenciales / grid check ---------- */
.check-list li{
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--ink-soft);
}
.check-list li::before{ content: "✓"; color: var(--green); font-weight: 900; flex-shrink: 0; }

/* ---------- CTA banda final ---------- */
.cta-band{
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--teal), var(--navy));
  color: #fff; padding: 56px; text-align: center;
  box-shadow: 12px 14px 26px var(--clay-dark);
}
.cta-band h2, .cta-band p{ color: #fff; }
.cta-band .btn-primary{ box-shadow: 0 6px 0 #C24F4F, 0 10px 18px rgba(0,0,0,.2); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-deep); color: #C9D2E8; padding: 64px 0 26px; }
.footer-grid{ display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr; gap: 32px; margin-bottom: 40px; }
.footer-col h4{ color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a{ color: #C9D2E8; display: block; padding: 5px 0; font-size: .95rem; }
.footer-col a:hover{ color: var(--yellow); }
.footer-brand img{ height: 40px; margin-bottom: 14px; background: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.footer-brand p{ font-size: .9rem; color: #9FADCE; }
.social-row{ display: flex; gap: 10px; margin-top: 14px; }
.social-row a{
  width: 40px; height: 40px; border-radius: var(--r-pill); background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.legal-logos{ display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,.12); }
.legal-logos .logo-slot{
  background: rgba(255,255,255,.92); border-radius: var(--r-sm); padding: 8px 16px;
  font-size: .78rem; font-weight: 700; color: var(--navy-deep); letter-spacing: .02em;
}
.footer-bottom{
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; color: #8391B4;
}
.footer-bottom a{ color: #8391B4; display: inline; padding: 0; }
@media (max-width: 1080px){ .footer-grid{ grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------- Tienda: categorías de curso ---------- */
.shop-cat-card{
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  text-decoration: none; color: inherit;
}
.shop-cat-card .clay-icon{ margin-bottom: 10px; }
.shop-cat-card .count{ font-size: .82rem; color: var(--ink-soft); }

/* ---------- Tienda: productos ---------- */
.product-card{
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 8px 8px 16px var(--clay-dark), -6px -6px 14px var(--clay-light);
  display: flex; flex-direction: column;
}
.product-thumb{
  aspect-ratio: 3/4; background: linear-gradient(135deg, var(--cream-deep), #fff);
  display: flex; align-items: center; justify-content: center; color: var(--teal);
}
.product-thumb .icon-inline{ width: 2.4rem; height: 2.4rem; margin: 0; opacity: .55; }
.product-body{ padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3{ font-size: .98rem; margin: 0; }
.product-price{ font-family: var(--font-head); font-weight: 800; color: var(--navy-deep); font-size: 1.1rem; }
.product-sample-tag{
  align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  background: #FFF3D9; color: #7A5300; padding: 3px 9px; border-radius: var(--r-pill);
}
.product-card .btn{ margin-top: auto; }

/* ---------- Noticias: tarjetas de blog ---------- */
.post-card{
  background: #fff; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 8px 8px 16px var(--clay-dark), -6px -6px 14px var(--clay-light);
}
.post-thumb{
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: #fff;
}
.post-thumb .icon-inline{ width: 2.6rem; height: 2.6rem; margin: 0; opacity: .85; }
.post-body{ padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta{ font-size: .8rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; }
.post-body h3{ font-size: 1.15rem; margin: 0; }
.post-body p{ color: var(--ink-soft); flex: 1; }
.post-article{ max-width: 760px; margin: 0 auto; }
.post-article h2{ margin-top: 1.4em; }
.post-article p{ color: var(--ink-soft); }

/* ---------- Utilidades ---------- */
.text-center{ text-align: center; }
.mt-0{ margin-top: 0; } .mb-0{ margin-bottom: 0; }
.mt-lg{ margin-top: 48px; } .mb-lg{ margin-bottom: 48px; }
.tag-row{ display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
