/* ===========================================================
   Cosmética Social — hoja de estilos compartida
   Paleta "Terracota refinado": crema cálido + teal profundo + acento terracota
   Tipografía: Fraunces (display) + Mulish (texto)
   =========================================================== */

:root {
  --bg:        #f6f1ea;
  --surface:   #ffffff;
  --ink:       #20292c;
  --ink-soft:  #46555a;
  --teal:      #18605c;
  --teal-dark: #103f3c;
  --terra:     #b04c37;
  --terra-soft:#e2a18f;
  --line:      #e6ddd0;
  --shadow:    0 10px 30px rgba(16, 63, 60, 0.10);
  --radius:    14px;
  --maxw:      1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Mulish", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--terra); }

/* Foco visible para teclado (accesibilidad) */
a:focus-visible,
.btn:focus-visible,
.nav__toggle:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip-link: oculto hasta recibir foco por teclado */
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 1000;
  background: var(--teal); color: #fff; font-weight: 700;
  padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow);
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 65ch; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--terra);
  margin-bottom: 12px;
}

/* ---------- Top banner (sustituye al de Wix; opcional) ---------- */
.topbar {
  background: var(--teal-dark);
  color: #dff0ee;
  text-align: center;
  font-size: .82rem;
  padding: 7px 16px;
  letter-spacing: .02em;
}

/* ---------- Header / navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px; max-width: var(--maxw); margin: 0 auto;
}
.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 42px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; list-style: none; }
.nav__links a {
  display: block; padding: 8px 11px; border-radius: 8px; white-space: nowrap;
  color: var(--ink); font-weight: 600; font-size: .9rem;
}
.nav__links a:hover { background: rgba(24, 96, 92, 0.10); color: var(--teal-dark); }
.nav__links a[aria-current="page"] {
  color: var(--terra); font-weight: 800;
  box-shadow: inset 0 -2px 0 var(--terra);
}

.nav__social { display: flex; gap: 6px; align-items: center; }
.nav__social a { display: inline-flex; padding: 6px; border-radius: 50%; color: var(--teal); }
.nav__social a:hover { color: var(--terra); background: rgba(24, 96, 92, 0.10); }
.social-icon { width: 21px; height: 21px; display: block; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; color: var(--teal-dark); line-height: 1;
}

@media (max-width: 920px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav__social { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(176,76,55,.12), transparent 55%),
    radial-gradient(110% 80% at 0% 100%, rgba(24,96,92,.14), transparent 50%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero .container { padding-top: 72px; padding-bottom: 72px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; font-size: .95rem;
  box-shadow: var(--shadow); transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--teal-dark); border: 1.5px solid var(--teal); box-shadow: none; }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--terra { background: var(--terra); }
.btn--terra:hover { background: #9a4230; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease;
}
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card__body { padding: 20px 22px; }
.card__body h3 { margin-bottom: 6px; }
.card__body p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lista de ponencias ---------- */
.speakers { display: grid; gap: 14px; }
.speaker {
  background: var(--surface); border-left: 4px solid var(--terra);
  border-radius: 10px; padding: 16px 20px; box-shadow: var(--shadow);
}
.speaker strong { display: block; font-family: var(--font-display); font-size: 1.08rem; color: var(--teal-dark); }
.speaker span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Bloque alterno misión/visión ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin-bottom: 56px; }
.feature:nth-child(even) .feature__media { order: 2; }
.feature img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 320px; object-fit: cover; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature__media { order: 0; } }

/* ---------- Revista ---------- */
.issues { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
@media (max-width: 700px) { .issues { grid-template-columns: 1fr; } }
.issue { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.issue img { margin: 0 auto 18px; border-radius: 8px; box-shadow: var(--shadow); max-height: 360px; width: auto; }

/* ---------- Videos ---------- */
.video-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .video-list { grid-template-columns: 1fr; } }
.video-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 22px; box-shadow: var(--shadow); font-weight: 700; color: var(--teal-dark);
  display: flex; align-items: center; gap: 10px;
}

/* ---------- Formulario de contacto ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font-family: var(--font-body); font-size: 1rem; background: var(--surface);
}
.form-field input:focus-visible, .form-field textarea:focus-visible {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(24, 96, 92, .30);
}
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: #cfe5e2; margin-top: 24px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding: 36px 24px; }
.site-footer a { color: #eaf6f4; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a { display: inline-flex; padding: 8px; border-radius: 50%; color: #eaf6f4; }
.site-footer__social a:hover { color: #fff; background: rgba(255, 255, 255, 0.10); }
.site-footer__social .social-icon { width: 24px; height: 24px; }
.site-footer small { color: #9cc4c0; }

/* ---------- Utilidades ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.stack > * + * { margin-top: 16px; }
.fade-up { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
