/**
 * Theme Name:        agjWpTheme
 * Theme URI:         https://agj.madrid
 * Description:       Tema exclusivo para la abogacía General de la Comunidad de Madrid.
 * Version:           1.0.7
 * Author:            Ignacio Pomar Ballestero
 * License: © 2024 Alternative Experience. All rights reserved.
 * Tested up to:      6.5
 * Requires at least: 6.5
 * Requires PHP:      7.2
 */
 
/* ------------------------------------------------- */
/*       Fuentes (deben estar al principio)          */
/* ------------------------------------------------- */


@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,700&display=swap');



 
/* ------------------------------------------------- */
/*              Estilos Generales                    */
/* ------------------------------------------------- */

html, body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    height: 100%;
    font-size: 14px;
    margin: 0px;
    background-color: #FAF7F2;
    color: #000000;
}

html { scroll-behavior: smooth;}

.subpages h1 { font-size: xxx-large;}


/* Reset box-sizing para facilitar el manejo de paddings y bordes */
*, *::before, *::after {
  box-sizing: border-box;
}


/* ------------------------------------------------- */
/*                      Header                       */
/* ------------------------------------------------- */

/* Variables (ajusta si lo necesitas) */
:root {
  --header-height: 60px;
  --topbar-height: 40px;
  --bg-color: #000;
  --text-color: #fff;
  --font-size: 18px;
  --container-max-width: 1200px;
  --gutter: 16px;
}


header ul {
  list-style: none;
}

header a {
  color: inherit;
  text-decoration: none;
}


/* Header y Topbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  width: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  /*height: var(--header-height);*/
  padding: 10px;
}
main {
  padding-top: var(--header-height); /* o 40px si no usas variable */
}

/* barra superior (mnuBg) */
#mnuBg {
  height: var(--topbar-height);
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* contenedor interno */
#mnuContainer {
  width: 100%;
  max-width: var(--container-max-width);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*  Brand (logo + texto)  */
#brand {
  display: flex;
  align-items: flex-end; /* alinea por la base del SVG */
}

.site-logo {
  max-height:  var(--topbar-height); 
  height: auto;
  width: auto;
  display: inline-block;
}

.logoTxt {
  font-size: var(--font-size);
  margin-left: 0.5em;
  line-height: 1;
  color: var(--text-color);
}



nav .headMnu {
  display: flex;
  gap: 1.5em;
}

nav .headMnu li a {
  font-size: var(--font-size);
  color: var(--text-color);
  transition: opacity 0.2s ease-in-out;
}

nav .headMnu li a:hover {
  opacity: 0.7;
}

/* Botón hamburguesa y toggle */
.menu-toggle {
  display: none;
}

.mnuLbl {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
  user-select: none;
  color: var(--text-color);
  margin-left: auto;
}

/* Responsive: móvil */
@media (max-width: 1100px) {
  /* mostrar hamburguesa */
  .mnuLbl {
    display: block;
  }

  /* ocultar menú por defecto */
  nav .headMnu {
    position: absolute;
    top: var(--topbar-height);
    right: 0;
    background-color: var(--bg-color);
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    padding: 1em;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  /* al activar checkbox, mostrar menú */
  .menu-toggle:checked + #brand + nav .headMnu,
  .menu-toggle:checked ~ nav .headMnu {
    display: flex;
  }

  /* opcional: ajustar enlaces en móvil */
  nav .headMnu li {
    margin-bottom: 0.75em;
  }

  nav .headMnu li:last-child {
    margin-bottom: 0;
  }
  
  /* Hacer que el menu hamburguesa esté a la derecha */
  header #mnuContainer {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* ya no space-between */
  }
  header #brand {order: 1;}
  header nav {order: 2;}
  header .mnuLbl {order: 3;}
  header .mnuLbl {margin-left: auto;}
}


/* ------------------------------------------------- */
/*                 subpages flow                     */
/* ------------------------------------------------- */

.subpages {
  width: 100%;
  padding: 0px;
  margin: 0px;
}

/* Estilos base para cada sección */
main .container {
  width: 100%;
  padding: 60px 0px;  /* espacio interior generoso */
  background-color: #FAF7F2; /* color crema por defecto (pares) */
  color: #333;         /* texto oscuro por defecto */
  text-align: justify;
  font-size: large;
  overflow: hidden; 
}

main .container .content,
.subpages .container .subpages{
  width: 100%;
  max-width: 960px;    /* ancho máximo para centrar el texto */
  margin: 0 auto;      /* centra horizontalmente */
  }

.subpages .content > h1,
.subpages .content > p {
  padding: 0 40px;
}

/* Secciones impares: fondo oscuro y texto claro */
main > .subpages > .container:nth-child(odd) {
  background-color: #e7e7e7;  /* gris oscuro */
  /*color: #FAF7F2;           texto crema */
}

/* Encabezados centrados */
.subpages .container h1,
.subpages .container h2 {
  text-align: center;
  margin-top: 0;
}

.subpages .container  figure.wp-block-image {
  margin: 0 auto; /* centra la imagen */
  max-width: 100%; /* asegura que no se salga del contenedor */
}
.subpages .container .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}


/* Adaptación responsive */
@media (max-width: 768px) {
  .subpages .container {
    padding: 40px 15px;
  }
}

@media (max-width: 480px) {
  .subpages .container {
    padding: 30px 10px;
  }
}

/* ------------------------------------------------- */
/*                      Hero                       */
/* ------------------------------------------------- */



#hero {
  position: relative;
  overflow: hidden;
  /* opcional: altura fija o proporcional */
  min-height: 60vh;
  max-width: 100%;
}

/* esconder la etiqueta img y usarla como background */
#hero .featured-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
#hero .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: top center;
}

/* 2) Caja de contenido en grande: arriba-izquierda */
#hero .content {
  width: fit-content;
  background-color: rgba(222, 0, 41, 0.8);
  padding: 1.5rem;
  line-height: 1.4;
  
  z-index: 10;
  position: relative;
  margin: 50px;
  color: #fff;
}

.subpages #hero h1 {font-size: revert;}
#hero h1 em { opacity: 0.5;}


/* ------------------------------------------------- */
/*                  Cuando y donde                  */
/* ------------------------------------------------- */


#cuando-y-donde .mapouter,
#cuando-y-donde .gmap_canvas {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 310px;
  overflow: hidden;
}

/* El iframe debe ocupar todo el ancho del wrapper */
#cuando-y-donde .gmap_canvas iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* ------------------------------------------------- */
/*                    Ponentes                       */
/* ------------------------------------------------- */

.ponente-info-left {
  /* Opcional: centra la imagen dentro de la columna */
  text-align: center;
}

.ponente-info-image {
  width: 180px;
  height: 180px;
  object-fit: cover;       /* recorta la imagen si no es cuadrada */
  border-radius: 50%;      /* la convierte en círculo */
  display: inline-block;   /* para respetar width/height */
}

.ponente div {
    display: inline-block;
    vertical-align: top;
}

.ponente-info-right {
    width: 260px;
    padding-left: 20px;
}

.ponente {
    display: inline-block;
    width: 470px;
    vertical-align: top;
}

.ponente .ponente-info-left { max-width: 180px;}


/* ------------------------------------------------- */
/*                    Footer                       */
/* ------------------------------------------------- */


/* Footer general */
.contact-footer {
  background-color: #c00;      /* rojo intenso */
  color: #fff;                 /* texto blanco para contraste */
  text-align: center;          /* centra todos los textos e inline elements */
  padding: 40px 20px;          /* espacio interior generoso */
  font-size: 0.9rem;           /* tamaño de texto un poco más pequeño */
  line-height: 1.6;            /* buena legibilidad */
}

/* Footer en front page (si necesitas un estilo distinto) */
.contact-footer.frontpage {
  /* Por ejemplo, menos padding en la portada */
  padding: 30px 15px;
}

/* Párrafos dentro del footer */
.contact-footer p {
  margin: 0.5em 0;
}

/* Enlaces */
.contact-footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.5em;
  transition: opacity 0.2s ease-in-out;
}

.contact-footer a:hover,
.contact-footer a:focus {
  opacity: 0.8;
}

/* Separador entre enlaces */
.contact-footer .separator {
  display: inline-block;
  margin: 0 0.5em;
  color: rgba(255,255,255,0.6);
}

/* Responsive: reduce padding en móviles muy pequeños */
@media (max-width: 480px) {
  .contact-footer {
    padding: 20px 10px;
  }
}


#politica-de-cookies table { border-collapse: collapse;  width: 100%;  margin-bottom: 1.5rem;}

#politica-de-cookies th,
#politica-de-cookies td { border: 1px solid #ccc; padding: 0.75em 1em; text-align: left; vertical-align: top;}
#politica-de-cookies th { background-color: #000000; color:#fff; font-weight: 600;}


/* ------------------------------------------------- */
/*                    Programa                       */
/* ------------------------------------------------- */

.jornada {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #222;
  background: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  max-width: 900px;
  margin: 2rem auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.jornada tr, .jornada td { border: none; }

.jornada h2 strong{display: inline-block; color: #c00; margin-right: 15px;}
.jornada h2 em{display: inline-block; color: #B6B6B6;}

.jornada td {width:fit-content; padding: 0.5rem 1rem; vertical-align: top; font-size: small;}
.jornada tr td:first-child {white-space: nowrap; word-break: keep-all; color: #B6B6B6; font-weight: 700; border-right: 1px solid #eee;}
.jornada td strong {display: block; font-weight: 700; margin-bottom: 0.2rem; font-size: medium;}


.jornada table em strong {color: #DE0029; font-size: x-large; font-style: normal; font-weight: 600; display: block;}
.jornada table strong em {display: inline-block; font-size: small;}
.jornada table em sup {font-size: small;}

.jornada table {border-top: 1px solid #eee; width: 100%; border-collapse: collapse; margin-top: 1rem; }
.jornada table em { color: #B6B6B6; font-size: large; font-weight: 600; margin-bottom: 0px;  display: block;}






