/* Consultora GES — estilos del sitio */

:root {
  --vino: #88084d;
  --vino-oscuro: #5e0535;
  --vino-claro: #f7edf2;
  --oro: #ffb30b;
  --oro-oscuro: #e89f00;
  --tinta-oro: #2b1a00;
  --texto: #2b2b2b;
  --texto-suave: #5d5458;
  --fondo: #ffffff;
  --fondo-alt: #faf6f8;
  --borde: #eadfe5;
  --radio: 12px;
  --sombra: 0 12px 32px rgba(94, 5, 53, 0.1);
  --fuente-titulos: "Playfair Display", Georgia, "Times New Roman", serif;
  --fuente-texto: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ancho: 1160px;
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--fondo);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vino); text-underline-offset: 3px; }
a:hover { color: var(--vino-oscuro); }
h1, h2, h3 {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  line-height: 1.2;
  color: var(--vino);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; }
.icon { width: 1em; height: 1em; flex: none; }
.container { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }

/* Barra superior */
.topbar { background: var(--vino-oscuro); color: #fff; font-size: 0.9rem; }
.topbar__inner { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; min-height: 44px; }
.topbar__contact { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--oro); }
.topbar__cta {
  background: var(--oro);
  color: var(--tinta-oro) !important;
  font-weight: 700;
  padding: 0 18px;
}
.topbar__cta:hover { background: var(--oro-oscuro); }
.topbar a { white-space: nowrap; }
@media (max-width: 680px) {
  .topbar { font-size: 0.78rem; }
  .topbar__contact li:nth-child(2) { display: none; }
  .topbar__cta { padding: 0 10px; }
}

/* Encabezado y menú */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--borde), 0 6px 18px rgba(0, 0, 0, 0.04); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; }
.brand img { height: 66px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: block;
  padding: 10px 13px;
  color: var(--texto);
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
}
.nav a:hover { color: var(--vino); background: var(--vino-claro); }
.nav a[aria-current="page"] { color: var(--vino); font-weight: 700; }
.nav .nav__contact { background: var(--vino); color: #fff; margin-left: 10px; padding: 10px 20px; }
.nav .nav__contact:hover, .nav .nav__contact[aria-current="page"] { background: var(--vino-oscuro); color: #fff; }
.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  box-shadow: var(--sombra); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .site-header__inner { min-height: 72px; }
  .brand img { height: 54px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--borde); border-radius: 10px;
    background: #fff; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 20px; height: 2px; background: var(--vino); border-radius: 2px; position: relative;
    transition: transform 0.2s, background 0.2s;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--borde); box-shadow: var(--sombra);
    max-height: calc(100vh - 116px); overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 0; }
  .nav a { padding: 12px 10px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 4px 14px; min-width: 0; }
  .sub a { font-size: 0.95rem; color: var(--texto-suave); }
  .nav .nav__contact { margin: 10px 0 0; text-align: center; }
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--oro { background: var(--oro); color: var(--tinta-oro); }
.btn--oro:hover { background: var(--oro-oscuro); color: var(--tinta-oro); }
.btn--vino { background: var(--vino); color: #fff; }
.btn--vino:hover { background: var(--vino-oscuro); color: #fff; }
.btn--linea { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.btn--linea:hover { background: #fff; color: var(--vino); }
.btn--linea-vino { border-color: var(--vino); color: var(--vino); }
.btn--linea-vino:hover { background: var(--vino); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
.more { margin: 40px 0 0; text-align: center; }

/* Portada */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: min(78vh, 620px); color: #fff;
  background: #2a0418 center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(25, 2, 14, 0.88) 0%, rgba(25, 2, 14, 0.55) 60%, rgba(25, 2, 14, 0.35) 100%); }
.hero .container { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero__title {
  font-family: var(--fuente-titulos); font-weight: 700; letter-spacing: 0.01em;
  font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.1; margin: 0 0 0.35em; max-width: 14ch;
}
.hero h1 {
  font-family: var(--fuente-texto); font-weight: 400; color: #fff;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem); line-height: 1.45; max-width: 36ch; margin: 0 0 1.6em;
}

/* Encabezado de cada página */
.page-hero { position: relative; color: #fff; padding: 84px 0 72px; background: var(--vino) center / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(40, 3, 22, 0.66); }
.page-hero--plain::before { background: linear-gradient(120deg, var(--vino-oscuro), var(--vino)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 0; max-width: 24ch; }
.page-hero p { margin: 0.7em 0 0; font-size: 1.15rem; max-width: 60ch; opacity: 0.92; }
.page-hero .eyebrow { margin: 0 0 0.9em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; color: var(--oro); }

/* Secciones */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--fondo-alt); }
.section--band { position: relative; color: #fff; background: var(--vino-oscuro) center / cover no-repeat; }
.section--band::before { content: ""; position: absolute; inset: 0; background: rgba(55, 4, 31, 0.84); }
.section--band > .container { position: relative; }
.section--band h2, .section--band h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--texto-suave); font-size: 1.1rem; }
.lead { font-size: 1.15rem; color: var(--texto-suave); }

.split { display: grid; gap: 44px; align-items: center; }
.split--top { align-items: start; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--wide-text { grid-template-columns: 5fr 7fr; }
}
.media { border-radius: var(--radio); box-shadow: var(--sombra); width: 100%; }
.media--portrait { max-width: 420px; margin: 0 auto; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* Tarjetas */
.card {
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.card > img { width: 100%; aspect-ratio: 387 / 356; object-fit: cover; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 0.4em; }
.card__body h3 a { color: inherit; text-decoration: none; }
.card__body p { color: var(--texto-suave); }
.card__link { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card--pad { padding: 32px; }
.card--static:hover { transform: none; box-shadow: none; }

.box { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px; }
.box h3 { margin-bottom: 0.5em; }
.box p:last-child { margin-bottom: 0; }

/* Listas */
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.check-list li::before {
  content: ""; width: 28px; height: 28px; border-radius: 50%;
  background: var(--vino-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2388084d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.dot-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.dot-list li { position: relative; padding-left: 22px; }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--oro); }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 8px 18px; font-weight: 500; }

.client-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.client-grid li {
  background: #fff; border: 1px solid var(--borde); border-left: 4px solid var(--oro);
  border-radius: 8px; padding: 14px 18px; font-weight: 500;
}

/* Llamado a la acción */
.cta { background: linear-gradient(120deg, var(--vino-oscuro), var(--vino)); color: #fff; padding: 56px 0; }
.cta__inner { display: grid; gap: 24px; align-items: center; }
.cta__text { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; margin: 0; max-width: 62ch; }
@media (min-width: 860px) { .cta__inner { grid-template-columns: 1fr auto; gap: 48px; } }

/* Socios */
.team { text-align: center; }
.team img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 4px solid var(--vino-claro); }
.team h3 { font-size: 1.15rem; }
.team .btn { margin-top: auto; align-self: center; }
.profile-photo { border-radius: var(--radio); box-shadow: var(--sombra); max-width: 380px; width: 100%; }

/* Novedades */
.post-list { display: grid; gap: 24px; }
.post-item { display: grid; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.post-item img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-item__body { padding: 24px 28px; }
.post-item__body h2 { font-size: 1.4rem; }
.post-item__body h2 a { color: inherit; text-decoration: none; }
.post-item time { display: block; color: var(--texto-suave); font-size: 0.9rem; margin-bottom: 0.4em; }
@media (min-width: 760px) { .post-item { grid-template-columns: 300px 1fr; } }

/* Texto largo (noticias y políticas) */
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.97rem; }
.prose td { border-top: 1px solid var(--borde); padding: 14px 12px; vertical-align: top; }
.prose td:first-child { width: 150px; color: var(--vino); }
.post-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radio); margin: 0 0 32px; }
.back-link { margin-top: 40px; font-weight: 700; }
.back-link a { text-decoration: none; }
@media (max-width: 640px) {
  .prose tr, .prose td { display: block; width: auto; }
  .prose td:first-child { width: auto; padding-bottom: 0; }
  .prose td + td { border-top: 0; padding-top: 6px; }
}

/* Contacto */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.contact-list .icon-badge {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--vino-claro); color: var(--vino);
}
.contact-list .icon-badge .icon { width: 22px; height: 22px; }
.contact-list h2 { font-family: var(--fuente-texto); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--texto-suave); margin: 2px 0 2px; }
.contact-list p { margin: 0; font-weight: 500; }
.contact-list a { text-decoration: none; }
.map { width: 100%; height: 400px; border: 0; border-radius: var(--radio); display: block; }

.form { display: grid; gap: 18px; }
.form h2 { font-size: 1.6rem; margin: 0; }
.field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--texto);
  background: #fff; border: 1px solid #d8c9d1; border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--vino); box-shadow: 0 0 0 3px rgba(136, 8, 77, 0.15); }
.form .btn { justify-self: start; }
.form__note { font-size: 0.9rem; color: var(--texto-suave); margin: 0; }
.form__status { margin: 0; font-weight: 700; color: var(--vino); }
.form__status:empty { display: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Aviso de nota antigua */
.notice { background: #fff6e0; border-left: 4px solid var(--oro); border-radius: 8px; padding: 14px 18px; margin: 0 0 28px; font-size: 0.95rem; }
.notice a { color: var(--vino); font-weight: 700; }

/* Pie de página */
.site-footer { background: var(--vino); color: rgba(255, 255, 255, 0.86); padding-top: 64px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.footer-logo { width: 80px; margin-bottom: 18px; }
.footer-title { font-family: var(--fuente-texto); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--oro); margin: 0 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.footer-contact .icon { margin-top: 4px; color: var(--oro); }
.social { display: flex !important; gap: 10px !important; flex-wrap: wrap; }
.social a { display: inline-block; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; padding: 6px 16px; font-size: 0.9rem; }
.social a:hover { background: #fff; color: var(--vino); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.16); margin-top: 56px; padding: 20px 0; font-size: 0.88rem; text-align: center; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1fa855; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float .icon { width: 28px; height: 28px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { min-height: 0; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
  .section { padding: 60px 0; }
  .page-hero { padding: 60px 0 52px; }
  .card--pad { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
