/* =========================================
   VARIABLES Y COLORES BASE
========================================= */
:root {
    --color-guia: #BB0410;
    --sombra-suave: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* =========================================
   ORADORES - GRID Y TARJETAS
========================================= */
.grid-oradores {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.orador-card {
    width: 160px;
    text-align: center;
    cursor: pointer;
    border-radius: 12px;
    background: #fff;
    padding: 1rem 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
	max-width: 45%;
	border: 1px solid #e5e7eb;
}

.orador-card:hover {
    transform: scale(1.05);
    box-shadow: var(--sombra-suave);
}

.orador-card img {
    width: 100%;
	max-width: 110px !important;
    aspect-ratio: 1;
    border-radius: 100px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.orador-card .foto-container .avatar,
.charla-modal .charla-orador .charla-foto{
	background-color: #f9fafb;
}

.orador-nombre {
    font-weight: bold;
    line-height: 1;
    margin-bottom: 4px;
}

.orador-cargo,
.orador-empresa {
    font-size: 12px;
    color: #555;
    margin-bottom: 2px;
	line-height: 1.3;
}

.orador-cargo{
	color: #aaa;
}

.foto-container {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	margin-bottom: 10px;
}

/*.foto-container img {
	border-radius: 50%;
	width: 120px;
	height: 120px;
	object-fit: cover;
}*/

.bandera-tooltip {
	position: absolute;
	bottom: 0;
	/*right: 0;*/
	transform: translate(30%, 30%);
	width: 28px;
	height: 28px;
	/*border-radius: 4px;*/
	overflow: hidden;
	/*box-shadow: 0 0 0 2px white;
	cursor: default;*/
}

.bandera-tooltip img {
	width: 100%;
	height: 100%;
	/*object-fit: cover;*/
	display: block;
	border-radius: 0 !important;
}

.bandera-tooltip .tooltip-text {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	bottom: 100%;
	right: 50%;
	transform: translateX(50%);
	background: #333;
	color: #fff;
	padding: 5px 8px;
	border-radius: 4px;
	font-size: 12px;
	white-space: nowrap;
	transition: 0.2s ease-in-out;
	pointer-events: none;
}

.bandera-tooltip:hover .tooltip-text {
	visibility: visible;
	opacity: 1;
}

/* =========================================
   MODAL DE ORADORES
========================================= */
.orador-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%;
	height: calc(var(--vh, 1vh) * 100) !important;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 40px;
    overflow: hidden;
	align-content: center;
}

.orador-modal .modal-content {
    background: #fff;
    padding: 30px 0 30px;
	width: 95%;
    max-width: 600px;
	max-height: 95%;
    margin: 50px auto;
    border-radius: 10px;
    overflow: hidden;
	display: flex;
    flex-direction: column;
    animation: fadeInModal 0.3s ease-out;
}

.orador-modal .modal-scroll {
  padding: 0 30px 0;
  overflow-y: auto;
}

.orador-modal-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.orador-avatar {
    width: 120px;
    height: 120px;
    border-radius: 100px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.orador-modal-header h2 {
    font-size: 22px;
    margin: 0;
}

.orador-modal-header img.orador-bandera {
  width: auto;
  height: 14px;
  top: 2px;
  position: relative;
  margin-right: 5px;
}

.orador-modal-header img.orador-social {
  width: auto;
  height: 24px;
  margin-top: 10px;
}
.orador-modal-header a{
	text-transform: none;
}

.resumen,
.pais {
    font-size: 12px;
    line-height:1.3;
	color: #555;
    margin: 0;
}

.orador-modal-body h4 {
    font-size: 21px;
    margin: 50px 0 10px;
}

.orador-modal-body p {
    font-size: 14px;
}

.orador-modal-body .charlas-grid .charla-resumen{
	display: none;
}

.badge-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.badge-wrapper::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.8);
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.badge-wrapper::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 6px);
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 9;
}

.badge-wrapper:hover::after,
.badge-wrapper:hover::before {
  opacity: 1;
}

.badge-track {
  display: inline-block;
  padding: 1px 10px;
  margin: 2px 4px 0 0;
  font-size: 12px;
  border-radius: 4px;
  color: white;
  /*font-weight: bold;*/
  text-transform: uppercase;
}

.track-apex { background: #005F9E; }     /* azul Oracle APEX */
.track-dba { background: #9B1C1C; }      /* rojo fuerte DBA */
.track-ai { background: #A832A6; }       /* violeta para AI */
.track-analytics { background: #0C5C44; }/* verde oscuro */
.track-cloud { background: #0078D7; }    /* celeste OCI */
.track-capp { background: #C2410C; }     /* naranja quemado para Cloud Applications */
.track-devops { background: #4B5563; }   /* gris neutro */
.track-forms { background: #BB0404; }    /* rojo oscuro */
.badge-sala { background: #D58E0B; }     /* naranja dorado, llama la atención sin ser chillón */
.badge-idioma { background: #6B21A8; }   /* púrpura profundo */

/* =========================================
   CHARLAS - GRILLA Y TARJETAS
========================================= */
.charlas-grid {
    display: grid;
    gap: 1rem;
    margin-top: 10px;
}

.ougpy-horario {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bloque-horario-flex {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.hora-col {
    min-width: 80px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: right;
}

.charlas-col {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex-grow: 1;
	width: 100%;
}

.charla-card {
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid var(--color-guia);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

.charla-card:hover {
    transform: scale(1.01);
    box-shadow: var(--sombra-suave);
}

.charla-card strong {
    display: block;
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.5rem;
}

.charla-card .charla-titulo {
    line-height: 1.3;
}

.charla-card .charla-resumen,
.charla-card .charla-meta {
    display: none !important;
}

.charla-card .badge-track {
  margin-top: 0 !important;
  font-size: 10px !important;
  padding: 2px 8px !important;
  line-height: 1.3;
}

.charla-card .badge-track.badge-sala {
  padding: 2px 5px !important;
  border-radius: 50px;
  min-width: 17px;
  text-align: center;
}

.charla-card .badge-track.badge-idioma {
  padding: 2px 4px !important;
}

.charla-card .charla-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #555;
	margin-bottom: 0;
}

.charla-card .charla-datos{
	display: none;
}

.charla-meta i {
    margin-right: 5px;
}

.charla-card .badge-wrapper::after {
  bottom: 130%;
}

.charla-card .badge-wrapper::before {
  bottom: calc(130% - 6px);
}

/* =========================================
   MODAL DE CHARLA (DETALLE)
========================================= */
.charla-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%;
	height: calc(var(--vh, 1vh) * 100) !important;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 40px;
    overflow: hidden;
	align-content: center;

/*
	display: none;
    position: fixed;
    z-index: 10000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
*/
}
.charla-modal .modal-content {
/*
	background: #fff;
    max-width: 500px;
    width: 90%;
    border-radius: 10px;
    padding: 25px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: fadeInModal 0.3s ease-out;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
*/


  background: #fff;
  padding: 30px 0 30px;
  width: 95%;
  max-width: 600px;
  max-height: 95%;
  margin: 50px auto;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeInModal 0.3s ease-out;

}

.charla-modal .modal-scroll {
  padding: 0 30px 0;
  overflow-y: auto;
}

.charla-modal h4{
  padding-right: 25px;
}

.charla-titulo {
    font-size: 20px;
    color: #222;
    margin-top: 0;
    margin-bottom: 5px;
}

.charla-resumen {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    text-align: justify;
}

.charla-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
}

.charla-meta i {
    margin-right: 5px;
}

.charla-orador {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 10px;
}

.charla-foto {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.charla-datos {
  display: flex;
  flex-direction: column;
}

.charla-nombre {
  font-weight: bold;
}

.charla-pais {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
  font-size: 12px;
}

.charla-bandera {
  width: 22px;
  height: 15px;
  object-fit: cover;
}

.charla-modal .badge-sala,
.charla-modal .badge-idioma{
	display: none;
}

.charla-modal .badge-wrapper::after {
  bottom: 130%;
}

.charla-modal .badge-wrapper::before {
  bottom: calc(130% - 6px);
}

/* =========================================
   ELEMENTOS DE CIERRE MODAL
========================================= */
.cerrar-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 26px;
    color: #888;
    background: #f2f2f2;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cerrar-modal:hover {
    background: #ddd;
    color: #000;
}

/* =========================================
   ANIMACIONES
========================================= */
@keyframes fadeInModal {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}



/* Mejora de modal para dispositivos pequeños */
@media (max-width: 600px) {
  #wpadminbar{display:none !important} html{margin-top:0 !important;}
  .orador-modal,
  .charla-modal{
    padding: 10px;
  }
  .orador-modal .modal-content,
  .charla-modal .modal-content{
    width: 95%;
    max-height: 95%;
    margin: auto;
    padding: 20px 0 20px;
    /*overflow-y: auto;*/
  }

  .orador-modal .modal-scroll,
  .charla-modal .modal-scroll{
    padding: 0 20px 0;
    overflow-y: auto;
  }

  .orador-modal-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .orador-modal-header h2 {
    font-size: 20px;
  }

  .orador-modal-header img.orador-avatar {
    width: 100px;
    height: 100px;
  }

  .orador-modal-header .resumen,
  .orador-modal-header .pais {
    font-size: 13px;
  }

  .charla-card {
    font-size: 14px;
  }

  .cerrar-modal {
    font-size: 36px;
    top: 12px;
    right: 12px;
  }
  .hora-col {
    min-width: 40px;
	font-size: 13px;
  }
  .bloque-horario-flex {
    gap: 10px;
  }
  .charla-card {
    border-radius: 16px;
    padding: .8rem;
    border-left: 2px solid var(--color-guia);
  }
  .charla-card .charla-titulo{
    font-size: 16px;
    font-weight: normal;
  }
  .charla-modal h4{
    font-size: 18px;
  }
  .charla-modal .charla-meta {
    gap: 1rem;
  }
}


/* =========================================
   CORRECCIÓN PARA CONTENEDORES PADRE
   (Evita que el overflow o stacking context bloquee el modal)
========================================= */
body .orador-modal,
body .charla-modal {
    position: fixed !important;
    inset: 0;
    z-index: 9999;
}

body .orador-modal .modal-content,
body .charla-modal .modal-content {
    position: relative;
    z-index: 10000;
}
html.modal-abierto{
	overflow:hidden;
}