/* ============================================================
   JKTORNEL CONTIGO — main.css
   Paleta: azul #142c40 · dorado #bc974f · blanco #ffffff
   ============================================================ */

:root {
  /* Paleta */
  --blue: #142c40;
  --blue-deep: #0d1e2d;
  --gold: #bc974f;
  --gold-light: #d4af6a;
  --gold-gradient: linear-gradient(135deg, #bc974f 0%, #d4af6a 100%);
  --white: #ffffff;
  --ink: #172331;
  --muted: #637083;
  --line: #e7ecf1;
  --surface: #f7f9fb;
  --surface-warm: #fdfcf9;

  /* Sombras multicapa */
  --shadow-sm: 0 2px 8px rgba(20, 44, 64, 0.04), 0 4px 20px rgba(20, 44, 64, 0.04);
  --shadow-md: 0 4px 16px rgba(20, 44, 64, 0.06), 0 16px 48px rgba(20, 44, 64, 0.08);
  --shadow-lg: 0 8px 24px rgba(20, 44, 64, 0.07), 0 28px 72px rgba(20, 44, 64, 0.13);
  --shadow-gold: 0 8px 32px rgba(188, 151, 79, 0.22), 0 2px 8px rgba(188, 151, 79, 0.12);

  /* Formas */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Layout */
  --container: min(1140px, calc(100% - 48px));

  /* Transiciones */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 180ms;
  --t-normal: 300ms;
  --t-slow: 520ms;
}

/* ──────────────────────────────── Reset & Base ──────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 90px;
}

#contacto {
  scroll-margin-top: 40px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

/* ──────────────────────────────── Header / Nav ──────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f1eadc;
  border-bottom: 1px solid rgba(20, 44, 64, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow var(--t-normal) var(--ease-out),
              background var(--t-normal) var(--ease-out);
}

.site-header.is-scrolled {
  background: #f1eadc;
  box-shadow: 0 1px 0 rgba(20, 44, 64, 0.06), 0 8px 40px rgba(20, 44, 64, 0.07);
}

.nav-shell {
  width: var(--container);
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-fast) var(--ease-out);
}

.brand:hover .brand-mark {
  transform: scale(1.07);
  box-shadow: 0 0 0 5px rgba(188, 151, 79, 0.14);
}

.brand > span:last-child {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-normal) var(--ease-out);
}

.nav-links a:hover {
  color: var(--blue);
  background: rgba(20, 44, 64, 0.04);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-links a.is-active {
  color: var(--blue);
}

.nav-login {
  color: var(--white) !important;
  background: var(--blue) !important;
  border-radius: var(--radius-pill) !important;
  padding: 9px 16px !important;
  margin-left: 6px;
  transition: background var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out) !important;
}

.nav-login::after {
  display: none !important;
}

.nav-login:hover {
  background: var(--gold) !important;
  box-shadow: var(--shadow-gold) !important;
}

.nav-login--desktop {
  text-decoration: none;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--blue);
  background: var(--blue);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  gap: 0;
  transition: border-color var(--t-fast) ease,
              box-shadow var(--t-fast) ease;
}

.nav-toggle:hover {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  margin: 3px 0;
  background: var(--white);
  border-radius: 1px;
  transition: transform var(--t-normal) var(--ease-out),
              opacity var(--t-fast) ease;
}

@media (min-width: 1201px) {
  .nav-toggle {
    display: none;
  }
  .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-login--mobile {
    display: none !important;
  }
}

@media (max-width: 1200px) {
  .nav-login--desktop {
    display: none !important;
  }
}

/* ──────────────────────────────── Hero ──────────────────────────────── */

.hero {
  position: relative;
  min-height: clamp(580px, 88vh, 860px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 1200ms var(--ease-out) forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 30, 45, 0.95) 0%,
    rgba(20, 44, 64, 0.82) 40%,
    rgba(20, 44, 64, 0.45) 70%,
    rgba(20, 44, 64, 0.18) 100%
  );
}

.hero-content {
  position: relative;
  width: var(--container);
  margin: 0 auto;
  max-width: 780px;
  color: var(--white);
  padding-top: 66px;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero p {
  max-width: 580px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  font-weight: 400;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero.hero-banner {
  min-height: auto;
  display: block;
  align-items: initial;
  background: var(--white);
}

.hero-picture {
  display: block;
  width: 100%;
  background: var(--white);
}

@media (min-width: 900px) {
  .hero-picture {
    width: var(--container);
    margin: 20px auto 0;
    border-radius: var(--radius);
    overflow: hidden;
  }
}

.hero-banner-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--white);
  animation: heroZoom 1000ms var(--ease-out) forwards;
}

/* ──────────────────────────────── Botones ──────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-normal) var(--ease-out),
              background var(--t-fast) ease,
              color var(--t-fast) ease;
  will-change: transform;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 80ms;
}

.button-primary {
  background: var(--gold-gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(188, 151, 79, 0.22);
}

.button-primary:hover {
  box-shadow: var(--shadow-gold);
}

.button-outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(188, 151, 79, 0.65);
  color: var(--white);
  backdrop-filter: blur(4px);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(188, 151, 79, 0.14);
}

.post-detail .button-outline,
.pdf-download .button-outline {
  color: var(--blue);
  background: var(--white);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.post-detail .button-outline:hover,
.pdf-download .button-outline:hover {
  background: rgba(188, 151, 79, 0.05);
  box-shadow: var(--shadow-gold);
}

/* ──────────────────────────────── Secciones generales ──────────────────────────────── */

.section-pad {
  padding: clamp(90px, 11vw, 136px) 0;
}

.section-heading {
  width: var(--container);
  margin: 0 auto 60px;
  max-width: 700px;
  text-align: center;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.section-heading p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.info-grid,
.post-grid,
.contact-layout,
.footer-inner,
.post-detail {
  width: var(--container);
  margin: 0 auto;
}

/* ──────────────────────────────── Tarjetas info ──────────────────────────────── */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card,
.post-card,
.empty-state,
.contact-form {
  border: 1px solid #ededed;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-normal) var(--ease-out),
              box-shadow var(--t-normal) var(--ease-out),
              border-color 0.5s ease-out 0.5s,
              border-width 0.5s ease-out 0.5s;
}

.info-card {
  padding: 36px 30px;
  margin-bottom: 0;
}

.info-card:hover {
  box-shadow: var(--shadow-lg);
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(188, 151, 79, 0.12), rgba(188, 151, 79, 0.06));
  color: var(--gold);
  transition: transform var(--t-fast) var(--ease-spring),
              background var(--t-fast) ease;
}

.info-card:hover .card-icon {
  transform: scale(1.1) rotate(-4deg);
  background: linear-gradient(135deg, rgba(188, 151, 79, 0.2), rgba(188, 151, 79, 0.1));
}

.info-card h3,
.post-card h3,
.post-card h2 {
  margin: 0 0 12px;
  color: var(--blue);
  line-height: 1.2;
  font-size: 1.05rem;
  font-weight: 700;
}

.info-card p,
.post-card p,
.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ──────────────────────────────── Publicaciones ──────────────────────────────── */

.posts-section {
  background: var(--surface);
  background-image:
    radial-gradient(circle at 18% 55%, rgba(188, 151, 79, 0.04) 0%, transparent 48%),
    radial-gradient(circle at 82% 18%, rgba(20, 44, 64, 0.025) 0%, transparent 40%);
  padding-top: clamp(40px, 6vw, 60px);
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1080px;
}

.post-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 220px;
}

.post-card.has-media {
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.post-card-media {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
  border-right: 1px solid var(--line);
}

.post-card-media img {
  width: 100%;
  max-height: 310px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 12px;
  transition: transform var(--t-slow) var(--ease-out);
}

.post-card:hover .post-card-media img {
  transform: scale(1.02);
}

.post-card-body {
  padding: clamp(26px, 4vw, 38px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-card time,
.post-meta {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-meta span {
  display: block;
  margin-top: 5px;
}

.post-card h2,
.post-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.post-card p {
  max-width: 68ch;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.7;
}

.post-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.post-indicators span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(188, 151, 79, 0.4);
  background: rgba(188, 151, 79, 0.1);
  color: var(--blue);
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--t-fast) ease, gap var(--t-fast) var(--ease-out);
}

.text-link::after {
  content: "\2192";
  transition: transform var(--t-fast) var(--ease-out);
}

.text-link:hover {
  color: var(--gold);
  gap: 9px;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 36px;
  text-align: center;
  border-top: 3px solid var(--line);
}

.empty-state h2,
.empty-state h3 {
  margin: 0 0 10px;
  color: var(--blue);
}

/* ──────────────────────────────── Contacto ──────────────────────────────── */

.contact-section {
  background: var(--surface-warm);
  background-image: radial-gradient(circle at 90% 85%, rgba(188, 151, 79, 0.05) 0%, transparent 40%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 52px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 100px;
}

.contact-form {
  padding: 36px;
}

.contact-form:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.contact-form label {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
}

.contact-form label input,
.contact-form label textarea {
  flex-basis: 100%;
  margin-top: 8px;
}

.contact-form .required-asterisk {
  display: inline;
}

.contact-form .button {
  display: block;
  margin: 0 auto;
  width: auto;
}

.contact-form input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}

.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}

.contact-form input:hover:not(:focus),
.contact-form textarea:hover:not(:focus) {
  border-color: rgba(20, 44, 64, 0.22);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(188, 151, 79, 0.12);
}

.contact-form label.is-focused {
  color: var(--gold);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.alert {
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.93rem;
}

.alert p {
  margin: 0;
}

.alert-success {
  background: #ecf8f2;
  color: #165e33;
  border-left: 3px solid #2ecc71;
}

.alert-error {
  background: #fff1f1;
  color: #8f1c1c;
}

.required-asterisk {
  color: var(--gold);
  font-weight: 700;
}

.required-note {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ──────────────────────────────── Page Hero (blog, privacidad) ──────────────────────────────── */

.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  padding: clamp(110px, 16vw, 160px) 0 clamp(70px, 10vw, 110px);
}

.page-hero-inner {
  width: var(--container);
  margin: 0 auto;
  max-width: 860px;
}

.compact-hero {
  padding: clamp(30px, 4vw, 50px) 0 clamp(20px, 3vw, 30px);
}

.compact-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.compact-hero p {
  max-width: 640px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.65;
}

.privacy-section {
  background: var(--white);
  padding: clamp(40px, 5vw, 60px) 0 clamp(80px, 9vw, 118px) 0;
}

.privacy-card {
  width: min(900px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(38px, 5.5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.8s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.privacy-card h2 {
  color: var(--gold);
  line-height: 1.25;
}

.privacy-card h3 {
  color: var(--blue);
  line-height: 1.25;
}

.privacy-card h2 {
  margin: 42px 0 14px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.01em;
}

.privacy-card h2:first-child {
  margin-top: 0;
}

.privacy-card h3 {
  margin: 26px 0 10px;
  font-size: 1.02rem;
}

.privacy-card p,
.privacy-card li {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.85;
  text-align: justify;
}

.privacy-card strong,
.privacy-card a {
  color: var(--gold);
}

.privacy-card p {
  margin: 0 0 16px;
}

.privacy-card ul {
  margin: 2px 0 22px;
  padding-left: 24px;
}

.privacy-card a {
  color: var(--blue);
  font-weight: 700;
  text-underline-offset: 3px;
}

.privacy-updated {
  margin-top: 38px !important;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
}

/* ──────────────────────────────── Post detalle ──────────────────────────────── */

.post-detail {
  max-width: 960px;
  padding: clamp(90px, 12vw, 130px) 0 clamp(80px, 10vw, 120px);
}

.post-detail-header .text-link {
  font-size: 0.84rem;
  margin-bottom: 24px;
  margin-top: 0;
  color: var(--gold);
}

.post-detail-header .text-link:hover {
  color: var(--blue);
}

.post-detail-header h1 {
  margin: 16px 0;
  color: var(--blue);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.post-featured-image {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 36px 0;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.post-content {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.82;
}

.post-content a {
  color: var(--blue);
  font-weight: 700;
  text-underline-offset: 3px;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  color: var(--blue);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* Quill output */
.ql-size-small { font-size: 0.82em; }
.ql-size-large { font-size: 1.28em; }
.ql-size-huge  { font-size: 1.7em; }
.ql-align-center  { text-align: center; }
.ql-align-right   { text-align: right; }
.ql-align-justify { text-align: justify; }

.video-frame {
  margin: 36px 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue);
  box-shadow: var(--shadow-md);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.pdf-download {
  margin-top: 32px;
}

/* ──────────────────────────────── Footer ──────────────────────────────── */

.site-footer {
  background: var(--blue-deep);
  color: var(--white);
  padding: 72px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 52px;
  align-items: start;
}

.footer-brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--white);
}

.footer-brand p {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

.footer-email:hover {
  color: var(--gold-light);
}

.footer-nav-title {
  display: block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color var(--t-fast) ease, padding-left var(--t-fast) var(--ease-out);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal p {
  margin: 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.8rem;
}

/* ──────────────────────────────── Scroll to top ──────────────────────────────── */

.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(20, 44, 64, 0.25);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--gold);
}

/* ──────────────────────────────── Reveal / Animaciones ──────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.02); }
}


/* ──────────────────────────────── Responsive 1200px ──────────────────────────────── */

@media (max-width: 1200px) {
  .nav-shell {
    padding-right: 56px;
  }

  .nav-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 100;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--t-fast) ease, transform var(--t-fast) ease;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-login {
    justify-content: center;
    text-align: center;
    padding: 8px 12px !important;
    font-size: 0.72rem !important;
    width: fit-content;
    margin: 0 auto;
  }

  .contact-copy {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ──────────────────────────────── Responsive 900px ──────────────────────────────── */

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-card.has-media {
    grid-template-columns: 1fr;
  }

  .post-card-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .post-card-media img {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-copy p {
    text-align: justify;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
}

/* ──────────────────────────────── Responsive 560px ──────────────────────────────── */

@media (max-width: 560px) {
  :root {
    --container: min(1140px, calc(100% - 28px));
  }

  .brand > span:last-child {
    max-width: 145px;
    line-height: 1.15;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 600px;
  }

  .hero.hero-banner {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }

  .hero p {
    font-size: 0.97rem;
    max-width: 30ch;
  }

  .hero-overlay {
    background: linear-gradient(160deg, rgba(13, 30, 45, 0.94), rgba(20, 44, 64, 0.65));
  }

  .hero-actions,
  .admin-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .info-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: 28px 24px;
  }

  .contact-form {
    padding: 24px;
  }

  .privacy-card {
    width: min(100% - 28px, 900px);
    padding: 28px 22px;
  }

  .post-card-body {
    padding: 20px 22px 24px;
  }
}

/* ──────────────────────────────── prefers-reduced-motion ──────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
