/* ==========================================================================
   Club de Pescadores · Estilos del sitio público
   ========================================================================== */

:root {
  --brand: #0e7c86;
  --brand-dark: #0a5a62;
  --brand-darker: #063a40;
  --accent: #c1440e;
  --accent-dark: #9c350a;
  --ink: #16262d;
  --muted: #64757e;
  --bg: #f2f6f7;
  --surface: #ffffff;
  --surface-alt: #eef4f5;
  --border: #e0e9eb;
  --shadow-sm: 0 1px 2px rgba(9, 43, 48, .06);
  --shadow: 0 8px 24px rgba(9, 43, 48, .09);
  --shadow-lg: 0 22px 50px rgba(6, 30, 34, .22);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1200px;
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
time { font-size: .82rem; }
.muted { color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot-sep { color: var(--border); }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px; border: 0;
  font-size: .95rem; font-weight: 600; cursor: pointer; text-align: center;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand-dark); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn--block { display: block; width: 100%; }
.btn--sm { padding: 8px 15px; font-size: .86rem; }
.btn--danger { background: #c0392b; color: #fff; }
.btn--danger:hover { background: #96281b; color: #fff; }

.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase;
}
.badge--ghost { background: rgba(255, 255, 255, .2); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.5); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--brand-darker); color: #cfe3e6; font-size: .82rem;
}
.topbar__inner { display: flex; align-items: center; gap: 18px; height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__social { margin-left: auto; display: flex; gap: 16px; }
.topbar__social a { color: #cfe3e6; font-weight: 600; }
.topbar__social a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: 20px; padding: 12px 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__logo { color: var(--brand); display: inline-flex; }
.brand__img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.brand__img--footer { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; }
.brand__text small { color: var(--muted); font-size: .74rem; }
.brand:hover { color: var(--ink); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px;
  font-weight: 600; font-size: .95rem; color: var(--ink); border-radius: 999px;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.is-active { background: var(--surface-alt); color: var(--brand-dark); }
.main-nav .nav-acceso { background: var(--brand); color: #fff; }
.main-nav .nav-acceso:hover, .main-nav .nav-acceso.is-active { background: var(--brand-dark); color: #fff; }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all .18s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 7px; font-size: .9rem; color: var(--ink); font-weight: 500; }
.dropdown a:hover { background: var(--surface-alt); color: var(--brand-dark); }

.nav-search { display: flex; align-items: center; background: var(--surface-alt); border-radius: 999px; padding: 3px 3px 3px 14px; }
.nav-search input { border: 0; background: transparent; outline: 0; width: 140px; font-family: inherit; font-size: .88rem; color: var(--ink); }
.nav-search button { border: 0; background: var(--brand); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.nav-search button:hover { background: var(--brand-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: 0; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .2s; }

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 16px; }
.flash { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: .93rem; }
.flash--success { background: #e6f6ec; color: #125c2b; border: 1px solid #b6e2c6; }
.flash--error { background: #fdecea; color: #8a1c12; border: 1px solid #f3c1ba; }
.flash--info { background: #e8f1fb; color: #1b4d7e; border: 1px solid #bcd7f2; }

/* ---------- Secciones ---------- */
.section { padding: 42px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-title { font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; gap: 10px; margin: 0; letter-spacing: -.01em; }
.section-sub { color: var(--muted); margin: 4px 0 0; font-size: .93rem; }
.section-link { font-weight: 700; font-size: .9rem; color: var(--brand-dark); white-space: nowrap; }
.section-link::after { content: ' →'; }
.section--categoria { background: linear-gradient(180deg, var(--surface-alt), var(--bg)); border-top: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero { padding-top: 28px; }
.hero__card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 480px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); background: #0b3b46;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,28,32,.94) 8%, rgba(5,28,32,.55) 45%, rgba(5,28,32,.05) 80%); }
.hero__content { position: relative; padding: 42px; max-width: 780px; color: #fff; }
.hero__tags { display: flex; gap: 8px; margin-bottom: 14px; }
.hero__title { color: #fff; font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.hero__title a { color: #fff; }
.hero__excerpt { color: #dbeaec; font-size: 1.05rem; max-width: 640px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #a9c7cb; font-size: .85rem; margin-bottom: 20px; }

/* ---------- Carrusel principal (hero) ---------- */
.hero-slider { position: relative; }
.hero-slide { display: none; }
.hero-slide.is-active { display: flex; animation: heroFade .55s ease; }
@keyframes heroFade {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, .82); color: #0a3b42;
  display: grid; place-items: center; cursor: pointer; z-index: 6; transition: .15s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.hero-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hero-nav--prev { left: 16px; }
.hero-nav--next { right: 16px; }
.hero-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 6;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, .5); cursor: pointer; transition: .2s;
}
.hero-dots button.is-active { background: #fff; width: 28px; border-radius: 999px; }

/* ---------- Slider ---------- */
.slider-nav { display: flex; gap: 8px; }
.slider-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: .15s;
}
.slider-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.slider { position: relative; }
.slider__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 320px; scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.slide__media { position: relative; display: block; aspect-ratio: 16 / 10; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__media .badge { position: absolute; left: 12px; top: 12px; }
.slide__body { padding: 16px 18px 20px; }
.slide__body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.slide__body h3 a { color: var(--ink); }
.slide__body h3 a:hover { color: var(--brand-dark); }
.slide__body p { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.slide__body time { color: var(--muted); }
.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.slider__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; padding: 0; transition: .2s; }
.slider__dots button.is-active { background: var(--brand); width: 26px; border-radius: 999px; }

/* ---------- Layout principal + sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.layout__main { min-width: 0; }

/* ---------- Grilla de noticias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.news-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__media .badge { position: absolute; left: 12px; top: 12px; }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.12rem; margin-bottom: 8px; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand-dark); }
.card__excerpt { color: var(--muted); font-size: .9rem; margin-bottom: 14px; flex: 1; }
.card__meta { color: var(--muted); font-size: .82rem; display: flex; align-items: center; gap: 7px; }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.widget__title { font-size: 1.05rem; font-weight: 800; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--surface-alt); position: relative; }
.widget__title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 46px; height: 2px; background: var(--brand); }

.search-inline { display: flex; gap: 8px; }
.search-inline input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 999px; font-family: inherit; font-size: .9rem; outline: 0; }
.search-inline input:focus { border-color: var(--brand); }
.search-inline button { border: 0; background: var(--brand); color: #fff; padding: 0 18px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.search-inline button:hover { background: var(--brand-dark); }

.widget-recientes__item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--surface-alt); color: var(--ink); }
.widget-recientes li:last-child .widget-recientes__item { border-bottom: 0; }
.widget-recientes__item:hover { color: var(--brand-dark); }
.widget-recientes__item img { width: 74px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.widget-recientes__body { display: flex; flex-direction: column; }
.widget-recientes__body strong { font-size: .9rem; font-weight: 600; line-height: 1.35; }
.widget-recientes__body small { color: var(--muted); font-size: .76rem; margin-top: 3px; }

.widget-categorias a { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--surface-alt); color: var(--ink); font-weight: 500; font-size: .92rem; }
.widget-categorias li:last-child a { border-bottom: 0; }
.widget-categorias a:hover { color: var(--brand-dark); }
.widget-categorias .count { margin-left: auto; background: var(--surface-alt); color: var(--muted); font-size: .74rem; padding: 2px 9px; border-radius: 999px; font-weight: 700; }

.widget-eventos li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--surface-alt); }
.widget-eventos li:last-child { border-bottom: 0; }
.widget-eventos .fecha { flex: none; width: 48px; text-align: center; background: var(--surface-alt); border-radius: 9px; padding: 5px 0; font-size: .66rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.widget-eventos .fecha b { display: block; font-size: 1.15rem; color: var(--brand-dark); }
.widget-eventos .detalle { display: flex; flex-direction: column; }
.widget-eventos .detalle strong { font-size: .9rem; }
.widget-eventos .detalle small { color: var(--muted); font-size: .78rem; }

.widget--cta { background: linear-gradient(150deg, var(--brand), var(--brand-darker)); color: #fff; border: 0; }
.widget--cta .widget__title { color: #fff; border-color: rgba(255,255,255,.2); }
.widget--cta .widget__title::after { background: #7fd6dd; }
.widget--cta p { color: #d7ecef; font-size: .9rem; }
.widget--cta .btn--primary { background: #fff; color: var(--brand-dark); }
.widget--cta .btn--primary:hover { background: #eaf7f8; color: var(--brand-dark); }

.widget-info li { font-size: .88rem; padding: 6px 0; color: var(--muted); }
.widget-info strong { color: var(--ink); }

/* ---------- Artículo (noticia individual) ---------- */
.article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.article__media { aspect-ratio: 16 / 8; }
.article__media img { width: 100%; height: 100%; object-fit: cover; }
.article__body { padding: 34px 40px 40px; }
.article__title { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .87rem; margin-bottom: 22px; }
.article__content { font-size: 1.06rem; color: #26383f; }
.article__content p { margin-bottom: 1.15em; }
.article__content h2 { font-size: 1.4rem; margin-top: 1.4em; }
.article__content img { border-radius: var(--radius-sm); margin: 1em 0; }

/* Imágenes dentro de una nota (entre párrafos) */
.nota-img { margin: 22px 0; }
.nota-img img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }
.nota-img figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }

/* Video dentro de una nota */
.nota-video { margin: 22px 0; }
.nota-video__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.nota-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }
.nota-video video { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; background: #000; }

.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 7px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-dark); }

.share { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.share span { font-weight: 600; font-size: .88rem; color: var(--muted); }
.share a { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-alt); display: grid; place-items: center; color: var(--brand-dark); }
.share a:hover { background: var(--brand); color: #fff; }

/* ---------- Avisos / sin resultados ---------- */
.notice { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; }
.notice h2 { color: var(--brand-dark); }
.empty { text-align: center; padding: 40px; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---------- Paginación ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; color: var(--ink);
}
.pagination .is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination a:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- Tablas de datos ---------- */
.tabla-datos { width: 100%; border-collapse: collapse; margin: 1em 0; }
.tabla-datos th, .tabla-datos td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.tabla-datos th { background: var(--surface-alt); font-weight: 700; width: 45%; }

/* ---------- Formularios ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--surface); outline: 0;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,124,134,.12); }
.form-row textarea { min-height: 140px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-help { font-size: .8rem; color: var(--muted); margin-top: 5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-darker); color: #b9d3d7; margin-top: 50px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; padding: 46px 20px; }
.site-footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.brand--footer { margin-bottom: 14px; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__logo { color: #4fb3bd; }
.site-footer .muted { color: #8fb2b7; font-size: .9rem; }
.footer-contact li, .footer-links li { margin-bottom: 9px; font-size: .9rem; }
.footer-links a { color: #b9d3d7; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.footer-social a { color: #b9d3d7; font-size: .88rem; font-weight: 600; }
.footer-social a:hover { color: #fff; }
.footer-hours li { display: flex; justify-content: space-between; font-size: .88rem; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.admin-lite { color: inherit; text-decoration: none; cursor: pointer; }
.admin-lite:hover { color: inherit; }
.site-footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: .82rem; }

/* ---------- Volver arriba ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: .25s; z-index: 60;
}
.back-to-top:hover { background: var(--accent); color: #fff; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .news-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--surface);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0 20px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease; margin-left: 0;
  }
  .main-nav.is-open {
    max-height: 620px; overflow-y: auto; padding: 14px 20px 22px;
    border-top: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a { border-radius: 8px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; max-height: 0; overflow: hidden; }
  .has-dropdown:hover .dropdown { max-height: 0; }
  .has-dropdown.is-open .dropdown { max-height: 400px; }
  .main-nav .nav-search { margin-top: 14px; }
  .nav-search input { width: 100%; }
  .section-title { font-size: 1.35rem; }
  .hero__title { font-size: 1.9rem; }
  .hero__content { padding: 28px; }
  .hero__card { min-height: 400px; }
  .article__body { padding: 26px; }
  .article__title { font-size: 1.6rem; }
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .news-grid, .news-grid--3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 1.55rem; }
  .hero__excerpt { font-size: .95rem; }
  .slide { flex-basis: 84%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .topbar__item:first-child { display: none; }
  .section { padding: 30px 0; }
}

/* ==========================================================================
   Ajustes finos para celular
   ========================================================================== */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .site-header__inner { padding: 10px 16px; }
  .brand__img { width: 42px; height: 42px; }

  .hero { padding-top: 16px; }
  .hero__card { min-height: 360px; border-radius: 12px; }
  .hero__content { padding: 22px 18px 34px; max-width: 100%; }
  .hero__title { font-size: clamp(1.35rem, 6.2vw, 1.8rem); }
  .hero__excerpt { font-size: .95rem; margin-bottom: 12px; }
  .hero__meta { font-size: .78rem; gap: 6px; margin-bottom: 16px; }
  .hero-nav { width: 38px; height: 38px; }
  .hero-nav--prev { left: 8px; }
  .hero-nav--next { right: 8px; }
  .hero-dots { bottom: 12px; }

  .section { padding: 28px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-title { font-size: 1.3rem; }
  .slider-nav { align-self: flex-end; }
  .slider-btn { width: 36px; height: 36px; }

  .article__body { padding: 22px 18px 26px; }
  .article__title { font-size: clamp(1.4rem, 6vw, 1.7rem); }
  .article__content { font-size: 1rem; }
  .article__content img { width: 100%; }
  .article__content table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .breadcrumbs { font-size: .8rem; }

  .widget { padding: 18px; }
  .btn { padding: 12px 20px; }
}

@media (max-width: 480px) {
  .brand__text small { display: none; }
  .brand__text strong { font-size: 1.05rem; }
  .topbar { font-size: .78rem; }
  .topbar__inner { gap: 10px; }
  .topbar__social a { font-size: .76rem; }
  .topbar__item:first-child { display: none; }
  .hero__card { min-height: 320px; }
  .hero__content { padding: 18px 15px 30px; }
  .hero__tags { margin-bottom: 10px; }
  .hero__excerpt { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-dots button { width: 8px; height: 8px; }
  .card__title { font-size: 1.05rem; }
  .widget-recientes__item img { width: 64px; height: 48px; }
  .share { flex-wrap: wrap; }
}
