/*
Theme Name: CDC — Colegio Dentistas Concepción
Description: Tema propio del portal del Consejo Regional Concepción. Diseño desde la maqueta aprobada (2026-10).
Author: Conexiala
Version: 0.1.3
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: cdc
*/

@font-face { font-family: Inter; src: url(assets/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Montserrat; src: url(assets/fonts/montserrat.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0B2A66; --navy-d: #061738; --cel: #1EA7E1; --cel-bg: #E6F5FC;
  --yel: #F5D90A; --ink: #14213D; --soft: #5B6475; --line: #E2E6EE; --bg: #F5F7FB; --card: #fff;
  --ok: #15803D; --ok-bg: #DCFCE7;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
body { min-height: 100vh; display: flex; flex-direction: column; }
#contenido { flex: 1; }
h1, h2, h3, h4, .mont { font-family: Montserrat, sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip:focus { position: fixed; left: 12px; top: 12px; z-index: 99; background: #fff; padding: 10px 14px; border-radius: 8px; width: auto; height: auto; clip: auto; }
:focus-visible { outline: 3px solid var(--cel); outline-offset: 2px; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.site-header .logo img { height: 52px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; align-items: center; list-style: none; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_parent > a { background: var(--cel-bg); color: var(--navy); }
.main-nav .cta > a { background: var(--yel); color: var(--navy-d); margin-left: 8px; padding: 9px 16px; border-radius: 10px; font-weight: 700; }
.main-nav .sub-menu { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; white-space: nowrap; font-family: inherit; }
.btn.y { background: var(--yel); color: var(--navy-d); }
.btn.c { background: var(--cel); }
.btn.o { background: transparent; border: 2px solid currentColor; }
.burger { display: none; margin-left: auto; background: none; border: 0; font-size: 28px; color: var(--navy); cursor: pointer; }

/* secciones */
section { padding: 56px 0; }
.sh { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sh h2 { font-size: 28px; color: var(--navy); }
.sh p { color: var(--soft); }
.sh a { color: var(--cel); font-weight: 700; white-space: nowrap; }
.kick { text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; font-weight: 700; color: var(--cel); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px #0b2a6612; border: 1px solid var(--line); display: flex; flex-direction: column; }
a.card:hover { box-shadow: 0 6px 20px #0b2a6626; }
.tag { display: inline-block; background: var(--cel-bg); color: var(--navy); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.tag.y { background: #FFF8C4; color: #6B5B00; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }

/* hero */
.hero { background: linear-gradient(120deg, var(--navy-d), var(--navy) 60%, #12408f); color: #fff; padding: 56px 0; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 44px; margin: 12px 0 14px; }
.hero p.lead { font-size: 18px; color: #C9D6EE; max-width: 560px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 28px; }
.facts div { background: #ffffff14; border: 1px solid #ffffff26; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.facts b { display: block; font-size: 16px; }
.hero .poster { border-radius: 16px; box-shadow: 0 20px 50px #0008; max-height: 460px; width: auto; margin-left: auto; }
.count { display: flex; gap: 10px; margin-top: 18px; color: #C9D6EE; font-size: 14px; align-items: center; }
.count span { background: #ffffff1a; border-radius: 8px; padding: 4px 10px; font-weight: 700; color: #fff; }

/* tarjeta evento */
.ev .img { aspect-ratio: 4/3; background: var(--navy-d) center/contain no-repeat; position: relative; }
.ev .date { position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 12px; text-align: center; padding: 6px 12px; box-shadow: 0 4px 12px #0003; }
.ev .date b { display: block; font-family: Montserrat; font-size: 24px; color: var(--navy); line-height: 1.05; }
.ev .date small { font-size: 12px; font-weight: 700; color: var(--cel); text-transform: uppercase; }
.ev .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ev h3 { font-size: 18px; color: var(--navy); }
.ev .meta { font-size: 14px; color: var(--soft); }
.prices { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.prices div { flex: 1 1 90px; background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.prices div:first-child { background: var(--cel-bg); }
.prices b { display: block; font-size: 16px; color: var(--navy); }
.ev .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cupos { font-size: 13px; color: var(--soft); }
.bar { height: 6px; background: var(--line); border-radius: 9px; overflow: hidden; margin-top: 4px; width: 120px; }
.bar i { display: block; height: 100%; background: var(--cel); }

/* franja colégiate */
.cta-band { background: var(--cel); color: #fff; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.cta-band h2 { font-size: 34px; }
.cta-band p { color: #EAF7FD; margin-top: 10px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.perks div { background: #fff; color: var(--ink); border-radius: 14px; padding: 18px; font-size: 14px; }
.perks b { display: block; font-family: Montserrat; color: var(--navy); font-size: 16px; margin: 6px 0 4px; }
.perks .ic { font-size: 26px; }

/* galerías */
.gal { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--navy-d) center/cover; display: block; }
.gal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, #061738dd); }
.gal div { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; z-index: 1; }
.gal b { font-family: Montserrat; font-size: 18px; display: block; }
.gal small { color: #C9D6EE; }
.gal.big { grid-row: span 2; aspect-ratio: auto; }
.galgrid { grid-template-columns: 1.4fr 1fr 1fr; }

/* noticias */
.nw .img { aspect-ratio: 16/10; background: #DDE3EE center/cover; }
.nw .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.nw h3 { font-size: 17px; color: var(--navy); }
.nw p { font-size: 14.5px; color: var(--soft); }
.nw time { font-size: 13px; color: var(--soft); }

/* beneficios */
.bn { padding: 22px; gap: 8px; }
.bn .ic { font-size: 30px; }
.bn h3 { font-size: 17px; color: var(--navy); }
.bn p { font-size: 14px; color: var(--soft); }

/* boletín */
.news { background: var(--navy-d); color: #fff; border-radius: 20px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.news h2 { font-size: 28px; }
.news p { color: #C9D6EE; margin-top: 8px; }

/* pie */
.site-footer { background: var(--navy-d); color: #C9D6EE; padding: 48px 0 24px; margin-top: 56px; font-size: 14.5px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin-bottom: 10px; }
.site-footer li { list-style: none; margin: 6px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { background: #fff; border-radius: 12px; padding: 10px; display: inline-block; margin-bottom: 12px; }
.site-footer .logo img { height: 46px; width: auto; }
.site-footer .legal { border-top: 1px solid #ffffff1f; margin-top: 30px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* páginas internas */
.phead { background: linear-gradient(120deg, var(--navy-d), var(--navy)); color: #fff; padding: 44px 0; }
.phead h1 { font-size: 36px; margin-top: 6px; }
.phead p { color: #C9D6EE; margin-top: 8px; max-width: 700px; }
.crumbs { font-size: 13px; color: #9FB3D9; }
.crumbs a:hover { color: #fff; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filters a { padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.filters a.on, .filters a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.box > h2 { font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.note { font-size: 13px; color: var(--soft); }
.hint { background: #FFF8C4; border-radius: 10px; padding: 12px 14px; font-size: 14px; color: #5A4D00; }
.sticky-col { position: sticky; top: 96px; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps > div { display: flex; gap: 14px; align-items: start; }
.steps > div::before { counter-increment: s; content: counter(s); flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: Montserrat; }
.quote { background: var(--cel-bg); border-radius: 16px; padding: 22px; font-size: 16px; color: var(--navy); }
.quote small { display: block; margin-top: 8px; color: var(--soft); }
.empty { text-align: center; color: var(--soft); padding: 40px 0; }
.box.empty { padding: 32px; }
.photos { columns: 3 260px; column-gap: 14px; }
.photos a { display: block; margin-bottom: 14px; break-inside: avoid; }
.photos img { width: 100%; border-radius: 12px; }
.hp { position: absolute; left: -9999px; }
.boletin-form { display: flex; gap: 10px; flex-wrap: wrap; }
.boletin-form input:not([type=checkbox]) { flex: 1 1 200px; padding: 13px 16px; border-radius: 10px; border: 0; font: inherit; }
.boletin-form .acepto, form.ins .acepto { width: 100%; font-size: 13px; font-weight: 400; display: flex !important; gap: 8px; align-items: flex-start; }
.news .acepto { color: #C9D6EE; }
.news .acepto a { color: #fff; }
.news .aviso { margin-bottom: 12px; }
form.ins { display: grid; gap: 12px; }
form.ins label { font-size: 14px; font-weight: 600; display: grid; gap: 5px; }
form.ins input:not([type=radio]) { font-weight: 400; padding: 11px 13px; border: 1px solid #CBD2DE; border-radius: 10px; font: inherit; width: 100%; }
form.ins fieldset { border: 0; font-size: 14px; font-weight: 600; }
form.ins legend { margin-bottom: 5px; }
.radio { display: flex; gap: 8px; }
.radio label { flex: 1; display: block !important; }
.radio input { position: absolute; opacity: 0; }
.radio span { display: block; border: 2px solid var(--line); border-radius: 10px; padding: 10px 6px; text-align: center; cursor: pointer; }
.radio input:checked + span { border-color: var(--cel); background: var(--cel-bg); color: var(--navy); }
.radio input:focus-visible + span { outline: 3px solid var(--cel); outline-offset: 2px; }
form.ins .btn { width: 100%; }
.aviso { border-radius: 10px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 12px; }
.aviso.ok { background: var(--ok-bg); color: var(--ok); }
.aviso.error { background: #FDE8E8; color: #9B1C1C; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-family: Montserrat; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cel); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .entry { padding: 0 18px 18px; font-size: 15px; }
.solo-movil { display: none; }
.speakers { display: flex; gap: 16px; flex-wrap: wrap; }
.speakers > div { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.speakers i { flex: 0 0 46px; height: 46px; border-radius: 50%; background: var(--cel-bg); color: var(--navy); display: grid; place-items: center; font-style: normal; font-weight: 800; font-family: Montserrat; }

/* contenido de entradas y páginas (editor clásico) */
.entry { color: #39445A; font-size: 16.5px; }
.entry > * + * { margin-top: 1em; }
.entry h2, .entry h3, .entry h4 { color: var(--navy); margin-top: 1.6em; }
.entry h2 { font-size: 24px; } .entry h3 { font-size: 19px; }
.entry a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--cel); text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 22px; }
.entry img { border-radius: 10px; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.entry .alignleft { float: left; margin: 0 20px 12px 0; }
.entry .alignright { float: right; margin: 0 0 12px 20px; }
.entry::after { content: ""; display: table; clear: both; }
.entry iframe, .entry video { max-width: 100%; }
.entry blockquote { border-left: 4px solid var(--cel); padding-left: 16px; color: var(--navy); }
.entry .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.entry .gallery br { display: none; }
.entry .gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.entry .wp-caption { max-width: 100%; }
.entry .wp-caption-text { font-size: 13px; color: var(--soft); }
.entry table { border-collapse: collapse; width: 100%; }
.entry td, .entry th { border: 1px solid var(--line); padding: 8px; }
.post-hero { border-radius: 14px; margin-bottom: 24px; width: 100%; }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; font-size: 14px; color: var(--soft); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; font-weight: 600; color: var(--navy); }
.elementor-page-body { padding: 0 0 20px; }

/* formularios (CF7, buscador) */
.wpcf7 form, .search-form { display: grid; gap: 12px; }
.wpcf7 label { font-size: 14px; font-weight: 600; display: grid; gap: 5px; }
.wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]), .wpcf7 textarea, .wpcf7 select, .search-form input[type=search] { width: 100%; padding: 11px 13px; border: 1px solid #CBD2DE; border-radius: 10px; font: inherit; background: #fff; }
.wpcf7 input[type=submit], .search-form button { justify-self: start; }
.search-form { grid-template-columns: 1fr auto; }

/* paginación */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.pagination .current, .pagination a.page-numbers:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* responsive */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 76px; left: 0; right: 0; background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); }
  .main-nav.open ul { flex-direction: column; align-items: stretch; }
  .main-nav.open .cta > a { margin: 8px 0 0; text-align: center; }
  .burger { display: block; }
  .hero .wrap, .cta-band .wrap, .two, .news { grid-template-columns: 1fr; }
  .hero .poster { margin: 0 auto; max-height: 360px; }
  .hero h1 { font-size: 32px; }
  .g3, .g4, .perks { grid-template-columns: 1fr 1fr; }
  .galgrid { grid-template-columns: 1fr 1fr; }
  .gal.big { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .sticky-col { position: static; }
  .solo-movil { display: block; padding-top: 20px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 66px; }
  .site-header .logo img { height: 42px; }
  .main-nav.open { top: 66px; }
  section { padding: 40px 0; }
  .g2, .g3, .g4, .perks, .galgrid { grid-template-columns: 1fr; }
  .gal.big { grid-column: auto; }
  .sh { flex-direction: column; align-items: start; }
  .sh h2 { font-size: 24px; }
  .hero { padding: 36px 0; }
  .hero h1 { font-size: 28px; }
  .cta-band h2 { font-size: 26px; }
  .news { padding: 26px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .phead h1 { font-size: 28px; }
  .box { padding: 20px; }
  .entry .alignleft, .entry .alignright { float: none; margin: 0 0 12px; }
}
