/* ==========================================================================
   Planet Gol — mejoras de diseño y experiencia (2026-11-30)
   Se carga AL FINAL (includes/header.php). Para deshacer todo, basta con quitar su <link>.
   Paleta: SOLO la que ya usa el sitio — azul #1072ba, negro #000, amarillo #f7d40a, gris texto #525b6e,
   fondo #f2f3f5, blanco y los azules claros #e4f1f6 / #dde9ec. Los tonos extra son sombras/transparencias de esos mismos.
   No cambia imágenes, logotipos, íconos ni textos.
   ========================================================================== */

:root {
    --pgw-azul: #1072ba;
    --pgw-negro: #000;
    --pgw-amarillo: #f7d40a;
    --pgw-gris: #525b6e;
    --pgw-fondo: #f2f3f5;
    --pgw-borde: #dde9ec;
    --pgw-radio: 8px;
    --pgw-sombra: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
    --pgw-sombra-alta: 0 8px 20px rgba(0, 0, 0, .12);
    --pgw-trans: 180ms ease-out;
    --pgw-espacio: 40px;           /* ritmo vertical entre secciones */
}

/* ---- Fondo decorativo: una sola vez arriba, sin repetirse sobre el contenido ---- */
#main-wrapper {
    background-repeat: no-repeat;
    background-position: right top;
}

/* ---- Tipografía y ritmo vertical ---- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p { line-height: 1.6; }
.section-title {
    margin: 0 0 24px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--pgw-gris);
}
.section-title span { display: inline-block; padding-bottom: 2px; }
.section { margin-bottom: var(--pgw-espacio); }
.section.mb0, .mb0 { margin-bottom: 0; }
.entry-title { line-height: 1.3; }
.post-content p, .about-us p, .widget p, address p { line-height: 1.6; }

/* ---- Carrusel de noticias: texto legible sobre la foto ---- */
#home-slider .feature-post .post-content {
    left: 0; right: 0;
    padding-top: 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .7) 55%, rgba(0, 0, 0, 0) 100%);
    border-radius: 0 0 var(--pgw-radio) var(--pgw-radio);
}
#home-slider .entry-title, #home-slider .entry-title a { text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
#home-slider .entry-title { font-size: 22px; font-weight: 600; }
#home-slider .entry-meta { font-size: 14px; line-height: 1.55; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
#home-slider .entry-meta i { font-style: normal; }
#home-slider .entry-thumbnail, #home-slider .feature-post { border-radius: var(--pgw-radio); overflow: hidden; }
/* Todas las fotos del carrusel con la misma proporción: el carrusel ya no cambia de alto ni deja huecos abajo */
#home-slider .entry-thumbnail { aspect-ratio: 16 / 9; height: auto !important; }
#home-slider .entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 479px) { #home-slider .entry-thumbnail { aspect-ratio: 4 / 3; } }
/* Puntos del carrusel justo debajo de la foto */
#home-slider .owl-controls { margin-top: 12px; text-align: center; position: static; }

/* Puntos de carruseles: más pequeños y que se acomoden en renglones si son muchos */
.owl-theme .owl-controls .owl-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.owl-theme .owl-controls .owl-page span { transition: background-color var(--pgw-trans), transform var(--pgw-trans); }
.owl-theme .owl-controls .owl-page:hover span { transform: scale(1.2); }

/* ---- Tarjetas (planteles, noticias, widgets) ---- */
#latest-news .post,
.medium-post,
.list-post,
#breaking-news,
.widget .post,
.marco_mapa {
    border-radius: var(--pgw-radio);
    box-shadow: var(--pgw-sombra);
}
#latest-news .post, .medium-post { overflow: hidden; border: 1px solid var(--pgw-borde); transition: box-shadow var(--pgw-trans), transform var(--pgw-trans); }
#latest-news .post:hover, .medium-post:hover { box-shadow: var(--pgw-sombra-alta); transform: translateY(-2px); }
#latest-news .entry-thumbnail img, .medium-post .entry-thumbnail img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* Misma altura de tarjeta aunque el nombre ocupe uno o dos renglones */
#latest-news .entry-title { min-height: 2.6em; margin-bottom: 8px; }
#latest-news .post-content { padding: 16px 18px 18px; }
.entry-meta .publish-date { color: var(--pgw-gris); }

/* Imágenes de las tarjetas del pie (tabla, empresas, planteles) */
.footer-widget .widget img { border-radius: var(--pgw-radio); transition: transform var(--pgw-trans), box-shadow var(--pgw-trans); }
.footer-widget .widget a:hover img { transform: translateY(-2px); box-shadow: var(--pgw-sombra-alta); }

/* ---- Botones: mismo redondeo, transición y estado hover derivado del mismo azul ---- */
.btn { border-radius: 6px; font-weight: 600; letter-spacing: .01em; transition: filter var(--pgw-trans), box-shadow var(--pgw-trans), transform var(--pgw-trans); }
.btn:hover { filter: brightness(.9); box-shadow: var(--pgw-sombra); }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-primary:hover, .btn-primary:focus { background-color: var(--pgw-azul); border-color: var(--pgw-azul); color: #fff; }

/* ---- Contraste: grises claros del pie y textos secundarios al gris del sitio ---- */
.footer-widget address p,
.footer-widget address a,
.widget address p,
.widget address a { color: var(--pgw-gris); }

/* ---- Enlaces: transición suave ---- */
a { transition: color var(--pgw-trans), background-color var(--pgw-trans), border-color var(--pgw-trans); }

/* ---- Foco visible al navegar con teclado ---- */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--pgw-azul);
    outline-offset: 2px;
    border-radius: 4px;
}
/* Sobre fondo negro (menú y pie) el contorno va en amarillo para que se vea */
#navigation a:focus-visible, #mainmenu a:focus-visible, .footer-bottom a:focus-visible, .footer-top a:focus-visible,
#breaking-news span:focus-visible, .navbar-toggle:focus-visible {
    outline-color: var(--pgw-amarillo);
}

/* ---- Menú principal: indicador sutil al pasar el mouse ---- */
#mainmenu .navbar-nav > li > a { transition: color var(--pgw-trans), box-shadow var(--pgw-trans); }
#mainmenu .navbar-nav > li > a:hover { box-shadow: inset 0 -3px 0 var(--pgw-amarillo); }
#mainmenu .navbar-nav > li.active > a { box-shadow: inset 0 -3px 0 var(--pgw-amarillo); }

/* ---- Mapa de cada plantel: mismo borde y redondeo que las tarjetas ---- */
#gmap {
    border: 1px solid var(--pgw-borde);
    border-radius: var(--pgw-radio);
    box-shadow: var(--pgw-sombra);
    overflow: hidden;
}

/* ---- Galerías de instalaciones ---- */
.w100 { border-radius: var(--pgw-radio); }

/* ---- Tablas (posiciones) ---- */
table { border-collapse: collapse; }
.table > tbody > tr { transition: background-color var(--pgw-trans); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    :root { --pgw-espacio: 32px; }
}

@media (max-width: 767px) {
    :root { --pgw-espacio: 24px; }
    /* El adorno queda chico, arriba a la derecha, detrás del contenido */
    #main-wrapper { background-size: 70% auto; background-position: right -30px top 40px; }
    .section-title { font-size: 21px; margin-bottom: 16px; }
    #home-slider .feature-post .post-content { padding: 48px 18px 18px; }
    #home-slider .entry-title { font-size: 18px; margin: 0 0 6px; }
    #home-slider .entry-meta { font-size: 13px; }
    /* En el teléfono el resumen largo se corta a 3 renglones para no tapar la foto */
    #home-slider .entry-meta i:last-of-type {
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }
    #latest-news .post { margin-right: 0; }
    .owl-theme .owl-controls .owl-page span { width: 8px; height: 8px; margin: 4px 3px; }
    /* Botón de menú (☰) con área táctil cómoda */
    .navbar-toggle { min-width: 44px; min-height: 44px; }
    .footer-widget { padding: 40px 0 32px; }
}

/* ---- Menos animación si el usuario lo pidió ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
    #latest-news .post:hover, .medium-post:hover, .footer-widget .widget a:hover img, .btn:active { transform: none; }
}

/* ==========================================================================
   Fase 2 — modernización (2026-11-30). Misma paleta; los tonos extra son transparencias de esos colores.
   ========================================================================== */
:root { --pgw-radio-g: 12px; }
html { scroll-behavior: smooth; }

/* ---- Barra superior (fecha) más discreta ---- */
.topbar { font-size: 13px; color: var(--pgw-gris); }

/* ---- Menú: se queda fijo arriba al bajar (escritorio); el logotipo se va con el scroll ---- */
@media (min-width: 992px) {
    #main-wrapper > div#navigation { position: sticky; top: -114px; z-index: 1000; }
    #main-wrapper > div#navigation #menubar { box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
}
#mainmenu .navbar-nav > li > a { font-weight: 600; letter-spacing: .02em; padding-left: 16px; padding-right: 16px; }
#mainmenu .navbar-nav > li > a:hover, #mainmenu .navbar-nav > li > a:focus { color: var(--pgw-amarillo); background: transparent; }

/* ---- Títulos de sección: más peso y acento de color de marca ---- */
.section-title { font-size: 26px; font-weight: 700; color: var(--pgw-negro); letter-spacing: -.01em; }
.section-title:before { background-color: var(--pgw-azul) !important; height: 4px; border-radius: 2px; }
.bottom-widgets .section-title { color: #fff; font-size: 18px; letter-spacing: .04em; }
.bottom-widgets .section-title:before { background-color: var(--pgw-amarillo) !important; }

/* ---- Tarjetas más modernas: radio mayor y la foto se acerca un poco al pasar el mouse ---- */
#latest-news .post, .medium-post, .post.feature-post, #home-slider .feature-post, #home-slider .entry-thumbnail,
.lifestyle-section .post, .post.small-post, .noticias-lista .post { border-radius: var(--pgw-radio-g); }
.entry-thumbnail, .img_noticia { overflow: hidden; }
.entry-thumbnail img, .img_noticia img { transition: transform 400ms ease-out; }
.post:hover .entry-thumbnail img, .post:hover .img_noticia img { transform: scale(1.04); }
#home-slider .post:hover .entry-thumbnail img { transform: none; }

/* Columna derecha (Planet Gol, Últimas noticias, Oficinas): tarjetas blancas */
.col-md-3 .widget > .row, .col-md-3 .widget .post, .col-md-3 .widget > div:not(.row):not(.section-title) {
    border-radius: var(--pgw-radio-g);
}
.col-md-3 .widget .post.small-post { background: #fff; box-shadow: var(--pgw-sombra); border: 1px solid var(--pgw-borde); margin-bottom: 12px; padding: 12px; }
.col-md-3 .widget .post.small-post:hover { box-shadow: var(--pgw-sombra-alta); }
.img_noticia img { border-radius: var(--pgw-radio); }

/* ---- Barra «Más información»: estilo pastilla ---- */
#breaking-news { border-radius: 999px; box-shadow: var(--pgw-sombra); border: 1px solid var(--pgw-borde); }
#breaking-news span { border-radius: 999px 0 0 999px; letter-spacing: .04em; }

/* ---- Tarjetas del pie (Tabla, Empresas, Busca tu plantel) ---- */
.footer-widget { background: #fff; }
.footer-widget .col-sm-4 > .widget > .widget {
    background: #fff; border: 1px solid var(--pgw-borde); border-radius: var(--pgw-radio-g);
    box-shadow: var(--pgw-sombra); padding: 0 0 20px; overflow: hidden;
    transition: box-shadow var(--pgw-trans), transform var(--pgw-trans);
}
.footer-widget .col-sm-4 > .widget > .widget:hover { box-shadow: var(--pgw-sombra-alta); transform: translateY(-3px); }
.footer-widget .col-sm-4 > .widget > .widget > *:not(.pb20) { margin-left: 20px; margin-right: 20px; }
.footer-widget .col-sm-4 > .widget > .widget .pb20 { padding-bottom: 16px; }
.footer-widget .col-sm-4 > .widget > .widget .pb20 img { border-radius: 0; width: 100%; }
.footer-widget .col-sm-4 > .widget > .widget:hover .pb20 img { transform: none; box-shadow: none; }

/* ---- Pie negro: enlaces con hover amarillo ---- */
.bottom-widgets { padding-top: 48px; padding-bottom: 32px; }
.bottom-widgets .widget ul li a { color: #fff; opacity: .85; transition: opacity var(--pgw-trans), color var(--pgw-trans); }
.bottom-widgets .widget ul li a:hover { opacity: 1; color: var(--pgw-amarillo); }
.footer-top { padding: 24px 0; }

/* ---- Formularios (contacto, selectores de la tabla) ---- */
.form-control {
    height: 44px; border-radius: var(--pgw-radio) !important; border: 1px solid var(--pgw-borde);
    box-shadow: none; transition: border-color var(--pgw-trans), box-shadow var(--pgw-trans);
}
textarea.form-control { height: auto; min-height: 120px; }
.form-control:focus { border-color: var(--pgw-azul); box-shadow: 0 0 0 3px rgba(16, 114, 186, .18); }
.btn_md, .btn_pg { padding: 10px 22px; }

/* ---- Tabla de posiciones ---- */
table { border: 1px solid var(--pgw-borde); border-radius: var(--pgw-radio-g); overflow: hidden; border-collapse: separate; border-spacing: 0; }
table thead tr { background-color: var(--pgw-negro); }
table tr th { font-weight: 700; letter-spacing: .04em; padding: 12px 10px; border: 0; }
table tr td { padding: 10px; border: 0; border-top: 1px solid var(--pgw-borde); font-size: 14px; }
table tr:nth-of-type(even) { background: rgba(247, 212, 10, .18); }   /* amarillo del sitio, aclarado */
table tbody tr:hover { background: var(--pgw-fondo); }

/* ---- Encabezado con foto de Contacto y bloques de mapa ---- */
.marco_mapa { border-radius: var(--pgw-radio-g); }

@media (max-width: 767px) {
    .section-title { font-size: 22px; }
    #breaking-news { border-radius: var(--pgw-radio-g); }
    .footer-widget .col-sm-4 { margin-bottom: 24px; }
    table tr td, table tr th { padding: 8px 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .post:hover .entry-thumbnail img, .post:hover .img_noticia img, .footer-widget .col-sm-4 > .widget > .widget:hover { transform: none; }
}
/* Cuadro «Planet Gol» de la columna derecha */
.about-us-content { border-radius: var(--pgw-radio-g); box-shadow: var(--pgw-sombra); border: 1px solid var(--pgw-borde); }
/* Las tres tarjetas del pie con la misma altura y el botón alineado abajo */
@media (min-width: 768px) {
    .footer-widget .row { display: flex; flex-wrap: wrap; }
    .footer-widget .row > .col-sm-4 { display: flex; }
    .footer-widget .col-sm-4 > .widget { display: flex; flex-direction: column; width: 100%; }
    .footer-widget .col-sm-4 > .widget > .widget { flex: 1; display: flex; flex-direction: column; }
    .footer-widget .col-sm-4 > .widget > .widget > .btn, .footer-widget .col-sm-4 > .widget > .widget > a.btn { margin-top: auto; align-self: flex-start; }
}
/* Teléfono y tableta: separación entre el contenido y la columna lateral */
@media (max-width: 991px) { .col-md-3 { margin-top: 28px; } }

/* ==========================================================================
   Fase 3 (2026-11-30): páginas interiores, menú del teléfono, galerías y animaciones de entrada.
   ========================================================================== */
::selection { background: var(--pgw-azul); color: #fff; }

/* ---- Páginas de texto (Quiénes somos, noticia): lectura cómoda ---- */
.about-us-content { padding: 32px 36px; }
.about-us-content p { font-size: 16px; line-height: 1.75; max-width: 72ch; color: var(--pgw-negro); margin-bottom: 1em; }
.about-us-content h2 { font-size: 22px; font-weight: 700; margin: 28px 0 12px; color: var(--pgw-negro); }
.about-us-content h2:first-child { margin-top: 0; }
.about-us-content h2::before { content: ""; display: inline-block; width: 6px; height: 1em; margin-right: 10px; vertical-align: -2px;
    background: var(--pgw-amarillo); border-radius: 3px; }

/* ---- Columna «Últimas noticias»: fecha y título más legibles ---- */
.noticias_sidebar { font-size: 14px !important; line-height: 1.35; }
.noticias_sidebar .gris { font-size: 12px; color: var(--pgw-gris); }

/* ---- Lista de noticias ---- */
.lifestyle-section .post .entry-title, .post .entry-title.mb10 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.post .entry-content p { color: var(--pgw-gris); }
.post .entry-title a:hover { color: var(--pgw-azul); }

/* ---- Galería de cada plantel: miniaturas más grandes, flechas redondas ---- */
.photo-gallery .carousel { border-radius: var(--pgw-radio-g); overflow: hidden; box-shadow: var(--pgw-sombra); background: #fff; }
.gallery-indicators { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.gallery-indicators li, .gallery-indicators li.active { width: 64px; height: 44px; border-radius: var(--pgw-radio); margin: 0; overflow: hidden;
    transition: opacity var(--pgw-trans), box-shadow var(--pgw-trans); }
.gallery-indicators li img { width: 100%; height: 100%; object-fit: cover; }
.gallery-indicators li.active { box-shadow: 0 0 0 2px var(--pgw-azul); }
.gallery-turner a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
    background: #fff; color: var(--pgw-negro); box-shadow: var(--pgw-sombra); transition: background-color var(--pgw-trans), color var(--pgw-trans); }
.gallery-turner a:hover { background: var(--pgw-azul); color: #fff; }

/* ---- Tarjetas de instalaciones y contacto del plantel ---- */
.info_contacto { border-radius: var(--pgw-radio-g); overflow: hidden; box-shadow: var(--pgw-sombra); border: 1px solid var(--pgw-borde); }
.info_contacto h3 { font-weight: 700; }
.info_contacto li, .info_contacto tr { transition: background-color var(--pgw-trans); }
.info_contacto li:hover, .info_contacto tr:hover { background: var(--pgw-fondo); }

/* ---- Menú del teléfono: renglones grandes, alineados a la izquierda ---- */
@media (max-width: 767px) {
    #mainmenu.navbar-collapse { padding: 6px 0; border-top: 3px solid var(--pgw-amarillo); }
    #mainmenu .navbar-nav { margin: 0; text-align: left; }
    #mainmenu .navbar-nav > li > a { display: flex; align-items: center; min-height: 48px; padding: 12px 20px; font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid transparent; }
    #mainmenu .navbar-nav > li > a:hover, #mainmenu .navbar-nav > li.active > a { border-left-color: var(--pgw-amarillo); box-shadow: none; }
    .about-us-content { padding: 20px; }
    .about-us-content p { font-size: 15px; }
}

/* ---- Botón «volver arriba» (lo crea js/mejoras.js) ---- */
.pgw-arriba { position: fixed; right: 18px; bottom: 18px; z-index: 1001; width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: var(--pgw-negro); color: var(--pgw-amarillo); font-size: 22px; box-shadow: var(--pgw-sombra-alta); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity var(--pgw-trans), transform var(--pgw-trans), visibility var(--pgw-trans); }
.pgw-arriba.visible { opacity: 1; visibility: visible; transform: none; }
.pgw-arriba:hover { background: var(--pgw-azul); color: #fff; }

/* ---- Entrada suave al bajar (sólo si js/mejoras.js marcó la página; sin JS todo se ve normal) ---- */
.pgw-anim .pgw-entra { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.pgw-anim .pgw-entra.pgw-visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .pgw-anim .pgw-entra { opacity: 1; transform: none; transition: none; }
    .pgw-arriba { transition: none; }
}
