/*
Theme Name: SOCHI Cabeza y Cuello 2026
Description: Tema institucional de la Sociedad Chilena de Cirugía de Cabeza y Cuello & Plástica Máxilo-Facial. Tema de bloques, sin dependencias de ACF.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: sochi-2026
*/

:root { --sochi-curva: linear-gradient(90deg, var(--wp--preset--color--azul) 0 50%, var(--wp--preset--color--rojo) 50% 100%); }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .15em; }

/* Cabecera */
.sochi-header { border-bottom: 1px solid var(--wp--preset--color--perla); }
.sochi-marca { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--wp--preset--color--marino); }
.sochi-marca img { width: 64px; height: 64px; }
.sochi-marca__texto { border-left: 3px solid var(--wp--preset--color--rojo); padding-left: 12px; line-height: 1.15; }
.sochi-marca__texto strong { display: block; font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
.sochi-marca__texto span { display: block; font-size: 13px; color: var(--wp--preset--color--gris); max-width: 300px; }
.sochi-header .wp-block-navigation { font-family: var(--wp--preset--font-family--montserrat); font-weight: 600; font-size: 15px; }
.sochi-header .wp-block-navigation .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--perla) !important; box-shadow: 0 10px 30px rgba(6,33,63,.12); padding: 6px 0; }
@media (max-width: 600px) { .sochi-marca__texto span { display: none; } .sochi-marca img { width: 52px; height: 52px; } }

/* Franja tricolor */
.sochi-franja { height: 4px; background: var(--sochi-curva); }
.sochi-linea { width: 72px; height: 4px; background: var(--wp--preset--color--rojo); border: 0; margin-left: 0; }

/* Portada */
.sochi-hero { position: relative; overflow: hidden; }
.sochi-hero::after { content: ""; position: absolute; right: -140px; top: -120px; width: 620px; height: 620px; border-radius: 50%; border: 2px solid rgba(255,255,255,.08); box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 140px rgba(255,255,255,.02); pointer-events: none; }
.sochi-hero .sochi-hero__emblema img { border-radius: 50%; box-shadow: 0 20px 60px rgba(0,0,0,.35); background: #fff; }
.sochi-dato { border-left: 3px solid var(--wp--preset--color--rojo); padding-left: 16px; }
.sochi-tarjeta { transition: transform .15s ease, box-shadow .15s ease; }
.sochi-tarjeta:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(6,33,63,.10); }
.sochi-tarjeta a { text-decoration: none; }
.sochi-acceso { border-top: 4px solid var(--wp--preset--color--azul); }
.sochi-acceso:hover { border-top-color: var(--wp--preset--color--rojo); }
.sochi-noticias .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--marino); }
.sochi-noticias .wp-block-post-title a:hover { color: var(--wp--preset--color--azul); }
.sochi-noticias .wp-block-post-featured-image img { aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.sochi-lista-enlaces a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--perla); text-decoration: none; color: var(--wp--preset--color--marino); font-weight: 600; }
.sochi-lista-enlaces a::after { content: "→"; color: var(--wp--preset--color--rojo); }
.sochi-lista-enlaces a:hover { color: var(--wp--preset--color--azul); }

/* Páginas interiores */
.sochi-cabecera-pagina { border-bottom: 1px solid var(--wp--preset--color--perla); }
.wp-block-table.is-style-cyc-cargos table { border-collapse: collapse; width: 100%; }
.wp-block-table.is-style-cyc-cargos td, .wp-block-table.is-style-cyc-cargos th { border: 0; border-bottom: 1px solid var(--wp--preset--color--perla); padding: 12px 10px; text-align: left; }
.wp-block-table.is-style-cyc-cargos th { font-family: var(--wp--preset--font-family--montserrat); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--azul); border-bottom: 2px solid var(--wp--preset--color--marino); }
.wp-block-table.is-style-cyc-cargos td:first-child { color: var(--wp--preset--color--azul); font-weight: 600; width: 40%; }
.wp-block-table.is-style-cyc-cargos td:first-child:empty::before { content: ""; }
.wp-block-details { border: 1px solid var(--wp--preset--color--perla); border-radius: 8px; padding: 14px 20px; margin-block: 10px; }
.wp-block-details summary { font-family: var(--wp--preset--font-family--montserrat); font-weight: 700; color: var(--wp--preset--color--marino); cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: 12px; color: var(--wp--preset--color--azul); }
.cyc-recursos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cyc-recurso { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--wp--preset--color--perla); border-radius: 10px; padding: 20px; }
.cyc-recurso img { width: 84px; height: auto; flex: none; object-fit: contain; }
.cyc-recurso h3 { margin: 0 0 6px; font-size: 18px; }
.cyc-recurso p { margin: 4px 0; }
.sochi-evento-meta { background: var(--wp--preset--color--perla); border-left: 4px solid var(--wp--preset--color--azul); border-radius: 6px; padding: 16px 20px; margin-bottom: 24px; }
.sochi-evento-meta p { margin: 4px 0; }
.sochi-evento-fecha { font-family: var(--wp--preset--font-family--montserrat); font-weight: 700; color: var(--wp--preset--color--rojo); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.sochi-aviso-socios { background: var(--wp--preset--color--perla); border-radius: 8px; padding: 24px; }

/* Pie */
.sochi-footer a { color: #fff; text-decoration: none; }
.sochi-footer a:hover { text-decoration: underline; }
.sochi-footer .sochi-marca { color: #fff; }
.sochi-footer .sochi-marca__texto span { color: #b9c6d6; }

/* Ajustes tras la primera revisión */
.sochi-franja { margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px)); margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px)); }
.sochi-cabecera-pagina h1::after { content: ""; display: block; width: 72px; height: 4px; background: var(--wp--preset--color--rojo); margin-top: 18px; }
.sochi-acceso h3 { font-size: 1.25rem !important; }
.sochi-hero .has-large-font-size { font-size: 1.2rem !important; line-height: 1.6; }
.sochi-hero .sochi-hero__emblema img { width: 220px; height: 220px; }

/* Calendario científico */
.sochi-cal-nota { color: var(--wp--preset--color--gris); margin-bottom: 8px; }
.sochi-cal-grupo { margin-top: 48px; }
.sochi-cal-grupo__titulo { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--wp--preset--color--perla); padding-bottom: 12px; margin-bottom: 28px; }
.sochi-cal-grupo__titulo span { font-size: .85rem; background: var(--wp--preset--color--azul); color: #fff; border-radius: 999px; padding: 2px 10px; }
.sochi-cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.sochi-cal-tarjeta { border-top: 3px solid var(--wp--preset--color--azul); padding: 18px 0 22px; display: flex; flex-direction: column; gap: 8px; }
.sochi-cal-tipo { align-self: flex-start; font-family: var(--wp--preset--font-family--montserrat); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; background: var(--wp--preset--color--perla); color: var(--wp--preset--color--marino); }
.sochi-cal-tipo--curso { background: #fdecef; color: var(--wp--preset--color--rojo); }
.sochi-cal-titulo { font-size: 1.15rem; margin: 4px 0 0; }
.sochi-cal-titulo a { color: var(--wp--preset--color--marino); text-decoration: none; }
.sochi-cal-titulo a:hover { color: var(--wp--preset--color--azul); }
.sochi-cal-resumen { font-size: .98rem; margin: 0; }
.sochi-cal-tarjeta .sochi-evento-meta p { margin: 0 0 4px; }
.sochi-cal-pasados { margin-top: 56px; border-top: 1px solid var(--wp--preset--color--perla); padding-top: 20px; }
.sochi-cal-pasados summary { cursor: pointer; font-family: var(--wp--preset--font-family--montserrat); font-weight: 700; color: var(--wp--preset--color--marino); }
.sochi-cal-pasados li { margin: 6px 0; }
.sochi-cal-grid .sochi-tarjeta:hover { transform: none; box-shadow: none; }
