/* ============================================================
   PRODÍA — Design System CSS
   Manual de Identidad Visual Dic-2020
   Amarillo  #FFB81C  Pantone 1235C
   Café      #411C00  Pantone 1545C
   Blanco    #FFFFFF
   Fuente:   Comfortaa (logo) + Open Sans (cuerpo)
============================================================ */

:root {
  --amarillo:         #FFB81C;
  --amarillo-oscuro:  #E0A010;
  --amarillo-claro:   #FFD060;
  --amarillo-pale:    #FFF8E7;
  --cafe:             #411C00;
  --cafe-medio:       #5C2A00;
  --cafe-claro:       rgba(65,28,0,0.65);
  --blanco:           #FFFFFF;
  --gris-100:         #F7F7F5;
  --gris-200:         #EEEDE9;
  --gris-400:         #C8C5BC;
  --gris-600:         #7A776E;
  --font-logo:        'Comfortaa', cursive;
  --font-body:        'Open Sans', system-ui, sans-serif;
  --nav-h:            72px;
  --shadow-soft:      0 2px 16px rgba(65,28,0,0.08);
  --shadow-medium:    0 6px 32px rgba(65,28,0,0.12);
  --shadow-amarillo:  0 4px 20px rgba(255,184,28,0.35);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--blanco);
  color: var(--cafe);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   BOTONES
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-amarillo {
  background: var(--amarillo);
  color: var(--cafe);
  border: 2px solid var(--amarillo);
}
.btn-amarillo:hover {
  background: var(--amarillo-oscuro);
  border-color: var(--amarillo-oscuro);
  box-shadow: var(--shadow-amarillo);
  transform: translateY(-1px);
}
.btn-cafe {
  background: var(--cafe);
  color: var(--blanco);
  border: 2px solid var(--cafe);
}
.btn-cafe:hover {
  background: var(--cafe-medio);
  border-color: var(--cafe-medio);
  transform: translateY(-1px);
}
.btn-outline-cafe {
  background: transparent;
  color: var(--cafe);
  border: 2px solid rgba(65,28,0,.3);
}
.btn-outline-cafe:hover {
  border-color: var(--cafe);
  background: rgba(65,28,0,.04);
}
.btn-outline-blanco {
  background: transparent;
  color: var(--blanco);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline-blanco:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--blanco);
}

/* ============================================================
   TOP BAR
============================================================ */
.top-bar {
  background: var(--cafe);
  height: 34px;
  display: flex;
  align-items: center;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar__left {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(255,255,255,.55);
}
.top-bar__left svg { opacity: .6; flex-shrink: 0; }
.top-bar__right { display: flex; align-items: center; gap: 18px; }
.top-bar__link {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.top-bar__link:hover { color: var(--amarillo); }
.top-bar__sep { width: 1px; height: 12px; background: rgba(255,255,255,.15); }

@media (max-width: 767px) { .top-bar { display: none; } }

/* ============================================================
   NAVBAR PRINCIPAL
============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; }
.main-nav {
  background: var(--blanco);
  height: var(--nav-h);
  border-bottom: 3px solid var(--amarillo);
  box-shadow: var(--shadow-soft);
  transition: height .3s ease, box-shadow .3s ease;
}
.main-nav.scrolled { height: 60px; box-shadow: var(--shadow-medium); }
.main-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity .15s;
}
.nav-logo:hover { opacity: .88; }
.nav-logo__wordmark {
  font-family: var(--font-logo);
  font-size: 26px;
  font-weight: 700;
  color: var(--cafe);
  line-height: 1;
}
.nav-logo .custom-logo { height: 44px; width: auto; }

/* Nav links */
.nav-links { display: flex; align-items: center; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-item__trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  height: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--cafe);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color .15s;
  text-decoration: none;
}
.nav-item__trigger::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 16px; right: 16px;
  height: 3px;
  background: var(--amarillo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-item:hover .nav-item__trigger::after { transform: scaleX(1); }
.nav-chevron { transition: transform .2s ease; color: var(--amarillo); flex-shrink: 0; }
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(65,28,0,.14), 0 0 0 1px rgba(65,28,0,.06);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 200;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px;
  background: var(--blanco);
  border-top: 1px solid rgba(65,28,0,.06);
  border-left: 1px solid rgba(65,28,0,.06);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background .15s;
  text-decoration: none;
}
.nav-dropdown__item:hover { background: var(--amarillo-pale); }
.nav-dd-diamond {
  width: 8px; height: 8px;
  background: var(--amarillo);
  transform: rotate(45deg);
  border-radius: 2px;
  margin-top: 5px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s;
}
.nav-dropdown__item:hover .nav-dd-diamond { opacity: 1; }
.nav-dd-texts { display: flex; flex-direction: column; gap: 1px; }
.nav-dd-label { font-size: 13.5px; font-weight: 600; color: var(--cafe); }
.nav-dd-desc { font-size: 11.5px; color: var(--gris-600); line-height: 1.4; }
.nav-dd-sep { height: 1px; background: var(--gris-200); margin: 4px 8px; }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-icon-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cafe);
  background: none;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.nav-icon-btn:hover { background: var(--amarillo-pale); }
.nav-mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  align-items: center; justify-content: center;
  color: var(--cafe);
  background: none;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.nav-mobile-toggle:hover { background: var(--amarillo-pale); }

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
}
@media (max-width: 640px) {
  .nav-right .btn { display: none; }
}

/* ============================================================
   MOBILE MENU
============================================================ */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 998;
  background: rgba(65,28,0,.45);
  backdrop-filter: blur(3px);
}
.mobile-overlay.open { display: block; }
.mobile-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  z-index: 999;
  background: var(--blanco);
  box-shadow: -8px 0 40px rgba(65,28,0,.14);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel__head {
  background: var(--amarillo);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(65,28,0,.08);
  flex-shrink: 0;
}
.mobile-panel__close {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cafe);
  background: none; border: none; cursor: pointer;
  transition: background .15s;
}
.mobile-panel__close:hover { background: rgba(65,28,0,.1); }
.mobile-panel__body { padding: 12px 16px; flex: 1; }
.mobile-section__title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amarillo-oscuro);
  padding: 14px 12px 6px;
}
.mobile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cafe);
  transition: background .15s;
  text-decoration: none;
}
.mobile-link:hover { background: var(--amarillo-pale); }
.mobile-link__diamond {
  width: 7px; height: 7px;
  background: var(--amarillo);
  transform: rotate(45deg);
  border-radius: 2px;
  flex-shrink: 0;
}
.mobile-sub {
  display: block;
  padding: 9px 12px 9px 29px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cafe-claro);
  border-radius: 8px;
  transition: background .15s;
  text-decoration: none;
}
.mobile-sub:hover { background: var(--amarillo-pale); color: var(--cafe); }
.mobile-panel__foot {
  padding: 18px 20px;
  border-top: 1px solid var(--gris-200);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.mobile-panel__foot .btn { justify-content: center; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--cafe); color: rgba(255,255,255,.75); }

/* CTA band */
.footer-band {
  background: var(--amarillo);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}
.footer-band::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  pointer-events: none;
}
.footer-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-band__copy h2 {
  font-family: var(--font-logo);
  font-size: clamp(22px,3.5vw,34px);
  font-weight: 700;
  color: var(--cafe);
  line-height: 1.2;
}
.footer-band__copy p { font-size: 15px; color: rgba(65,28,0,.65); margin-top: 5px; }
.footer-band__actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

/* Footer grid */
.footer-main { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Brand col */
.footer-brand__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand__wordmark { font-family: var(--font-logo); font-size: 24px; font-weight: 700; color: var(--blanco); }
.footer-brand__logo .custom-logo { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-brand__tagline { font-size: 12.5px; font-style: italic; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.footer-brand__desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.5); margin-bottom: 22px; }
.footer-socials { display: flex; gap: 8px; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  transition: all .18s;
}
.footer-social:hover { background: var(--amarillo); border-color: var(--amarillo); color: var(--cafe); }

/* Link cols */
.footer-col__heading {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amarillo);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col__heading::after { content: ''; flex: 1; height: 1px; background: rgba(255,184,28,.2); }
.footer-col__list { display: flex; flex-direction: column; gap: 8px; }
.footer-col__link {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .15s;
  text-decoration: none;
}
.footer-col__link:hover { color: var(--amarillo); }
.footer-col__link-diamond {
  width: 6px; height: 6px;
  background: var(--amarillo);
  transform: rotate(45deg);
  border-radius: 1px;
  flex-shrink: 0;
  opacity: .4;
  transition: opacity .15s;
}
.footer-col__link:hover .footer-col__link-diamond { opacity: 1; }

/* Brand chips */
.footer-brands-list { display: flex; flex-direction: column; gap: 7px; }
.footer-brand-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.06);
  transition: all .18s;
  text-decoration: none;
}
.footer-brand-chip:hover { border-color: rgba(255,184,28,.25); background: rgba(255,184,28,.06); }
.footer-brand-chip__dot {
  width: 8px; height: 8px;
  background: var(--amarillo);
  transform: rotate(45deg);
  border-radius: 2px;
  flex-shrink: 0;
  opacity: .5;
  transition: opacity .18s;
}
.footer-brand-chip:hover .footer-brand-chip__dot { opacity: 1; }
.footer-brand-chip__name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.65); }
.footer-brand-chip__tag { font-size: 11px; color: rgba(255,255,255,.28); margin-left: auto; }

/* Contact card */
.footer-contact-card {
  background: rgba(255,184,28,.07);
  border: 1px solid rgba(255,184,28,.15);
  border-radius: 10px;
  padding: 16px;
}
.footer-contact-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; }
.footer-contact-row:last-child { margin-bottom: 0; }
.footer-contact-row svg { flex-shrink: 0; color: var(--amarillo); opacity: .7; margin-top: 1px; }
.footer-contact-row__txt { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.5; }
.footer-contact-row__txt a { color: inherit; transition: color .15s; }
.footer-contact-row__txt a:hover { color: var(--amarillo); }

/* Bottom bar */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 18px 0; }
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom__copy { font-size: 12px; color: rgba(255,255,255,.28); }
.footer-bottom__links { display: flex; align-items: center; gap: 18px; }
.footer-bottom__link { font-size: 12px; color: rgba(255,255,255,.28); transition: color .15s; text-decoration: none; }
.footer-bottom__link:hover { color: var(--amarillo); }
.footer-bottom__sep { width: 1px; height: 12px; background: rgba(255,255,255,.1); }

/* ============================================================
   WHATSAPP FAB
============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 500;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blanco);
  box-shadow: 0 4px 20px rgba(37,211,102,.40);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.whatsapp-fab__tip {
  position: absolute;
  right: calc(100% + 10px); top: 50%;
  transform: translateY(-50%);
  background: var(--cafe);
  color: var(--blanco);
  font-size: 12px; font-weight: 600;
  padding: 6px 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.whatsapp-fab__tip::after {
  content: '';
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right: none;
  border-left-color: var(--cafe);
}
.whatsapp-fab:hover .whatsapp-fab__tip { opacity: 1; }

/* ============================================================
   CONTENIDO GENERAL DE PÁGINA
============================================================ */
.prodia-prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--cafe);
  max-width: 780px;
}
.prodia-prose h1,.prodia-prose h2,.prodia-prose h3 {
  font-family: var(--font-logo);
  color: var(--cafe);
  margin-bottom: .5em;
  margin-top: 1.5em;
}
.prodia-prose p { margin-bottom: 1em; }
.prodia-prose a { color: var(--amarillo-oscuro); text-decoration: underline; }
.prodia-prose a:hover { color: var(--cafe); }

/* Scrollbar sutil */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gris-100); }
::-webkit-scrollbar-thumb { background: var(--amarillo); border-radius: 3px; }
