/*
Theme Name: Bexon Child
Description: Tema hijo para Bexon
Author: Refineria
Template: bexon
Version: 1.0.1
*/
/*barra scroll - color y ajustar espacio para cuando se abre el menu no haya salto*/


* {
    scrollbar-width: thin;
    scrollbar-color: #cf122d var(--tj-color-common-white);
}


.site-main, html {
    position: relative;
    scrollbar-gutter: stable;
}

#grid-equipo .elementor-grid {
    align-items: stretch !important;
}

#grid-equipo .e-loop-item {
    align-self: stretch;
}

#grid-equipo .elementor-element-87e123f {
    height: 100% !important;
    --container-widget-height: 100% !important;
}

/* Mostrar/ocultar botones según sesión */
body:not(.logged-in) .btn-gaceta-priv { display: none !important; }
body.logged-in .btn-gaceta { display: none !important; }

/*Formulario cambiar contraseña del acceso privado*/
.form-csedano__campo { margin-bottom: 16px; }

.form-csedano__campo input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #1a1a1a;
    border-radius: 0;
    background: #fff;
    padding: 8px 0;
    box-shadow: none;
    font-size: 17px;
	font-family: 'Kumbh Sans', sans-serif;
	padding: 10px 15px !important;
    color: #000 !important;
}

.form-csedano__campo input::placeholder {
    font-size: 17px;
    font-family: 'Kumbh Sans', sans-serif;
}

.form-csedano__campo:last-child {
    text-align: center;
}

.form-csedano__campo input:focus {
    outline: none;
    border-bottom-color: #c8102e;
}

.form-csedano__campo button {
    background-color: #c8102e;
    border-radius: 30px;
    border: none;
    padding: 12px 30px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}

.form-csedano__campo button:hover {
    background-color:#131214;
}

.form-csedano__campo--pass {
    position: relative;
}

.form-csedano__campo--pass input {
    padding-right: 45px !important;
}

.form-csedano__ojo {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.form-csedano__campo input[type="password"],
.form-csedano__campo input[type="text"] {
    font-size: 17px;
    font-family: 'Kumbh Sans', sans-serif;
}

.form-csedano__campo input[type="text"] {
    letter-spacing: normal;
}

/* WPML Language Switcher */
body .wpml-switcher-simple {
    position: relative;
    display: inline-block;
    font-family: inherit;
}

body .wpml-switcher-simple .current-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    border-radius: 50%;
    background-color: #F3F3F3;
    cursor: pointer;
    transition: border-color 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

body .wpml-switcher-simple.square .current-lang {
    width: 60px;
    height: 40px;
    border-radius: 8px;
}

body .wpml-switcher-simple .current-lang:hover {
    border-color: #CF122D;
}

body .wpml-switcher-simple .current-lang span {
    line-height: 0.8;
    margin: 0;
    padding: 0;
    letter-spacing: -0.5px;
}

body .wpml-switcher-simple .lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

body .wpml-switcher-simple.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
}

body .wpml-switcher-simple .lang-dropdown li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body .wpml-switcher-simple .lang-dropdown a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    border-radius: 50%;
    background-color: #F3F3F3;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.3s ease;
    margin: 0;
    padding: 0;
    line-height: 0.8;
    box-sizing: border-box;
    z-index:1000;
}

body .wpml-switcher-simple .lang-dropdown a:hover {
    border-color: #CF122D;
}

body .wpml-switcher-simple .lang-dropdown a span {
    line-height: 0.8;
    margin: 0;
    padding: 0;
    letter-spacing: -0.5px;
}

body .wpml-switcher-simple .flag-icon {
    width: 16px;
    height: 12px;
    margin-right: 4px;
    border-radius: 2px;
}

/*Añadir popup de correo en nuestro equipo*/

.icono-correo-equipo {
    overflow: visible !important;
}

.icono-correo-equipo .elementor-icon {
    position: relative;
}

.icono-correo-equipo .elementor-icon::after {
    content: attr(title);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
	z-index:9999;
}

.icono-correo-equipo .elementor-icon:hover::after {
    opacity: 1;
}

@media (max-width: 1024px) {
    body .wpml-switcher-simple .current-lang,
    body .wpml-switcher-simple .lang-dropdown a {
        width: 30px;
        height: 30px;
        font-size: 14px;
        color:#CF122D;
        border: 2px solid #CF122D;
    }
    
    body .wpml-switcher-simple.square .current-lang {
        width: 30px;
        height: 30px;
        border: 2px solid #CF122D;
        color:#CF122D;
    }
}

/*menu en movil*/

@media (max-width: 767px) {
.elementor-nav-menu, .elementor-nav-menu li{
display:flex!important;
flex-direction:column!important;
align-items:center!important;
}
.elementor-nav-menu li a{
text-align:center;
}
}
/*bordes interiores del hero principal de inicio*/

.banner-content .banner-desc-area{
border-top: 1px dashed #fff !important;
    border-bottom: 1px dashed #fff !important;
    }
 .banner-content .banner-link{
 border-inline-end: 1px dashed #fff !important;
}

/*altura de botones para que se vean enteros*/
.tj-primary-btn .btn-text span{
line-height:2 !important;
}

/* imagen que rota en el hero */

.rotating-badge{
  position:relative;
  width:200px;
  max-width:100%;
  aspect-ratio:1 / 1;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Kumbh Sans', sans-serif;
}

.rotating-img{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:contain;
  animation:rotateBadge 12s linear infinite;
}

.badge-text{
  position:relative;
  text-align:center;
  line-height:1;
}

.number-line{
  display:flex;
  justify-content:center;
  align-items:flex-start;
}

.badge-text .plus{
  color:#CF122D !important;
  font-weight:900;
  font-size:56px;
  margin-right:2px;
}

.badge-text .number{
  color:#0C1E21;
  font-weight:900;
  font-size:56px;
}

.badge-text .label{
  display:block;
  margin-top:6px;
  font-size:18px;
  font-weight:600;
  color:#0C1E21;
  letter-spacing:0.5em;
}

@keyframes rotateBadge{
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}

/*bloque de contenido de páginas legales*/
.entry-content ul,
.elementor-widget-theme-post-content ul {
    padding-left: 25px;
}

.entry-content li,
.elementor-widget-theme-post-content li {
    margin-bottom: 8px;
}
.entry-content h3,
.elementor-widget-theme-post-content h3 {
    margin-top: 35px;
    margin-bottom: 20px;
}

/*estilos tablas*/
/* Contenedor general para evitar desbordamientos */
.tabla-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
}

.tabla-responsive table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 14px;
}

.tabla-responsive th, 
.tabla-responsive td {
  padding: 12px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.tabla-responsive th {
  background-color: #f8f9fa;
  font-weight: bold;
}

/* --- MAGIA RESPONSIVE --- */
@media screen and (max-width: 768px) {
  
  /* Ocultamos el encabezado original */
  .tabla-responsive table thead {
    display: none;
  }

  /* Convertimos cada fila en una "tarjeta" */
  .tabla-responsive table, 
  .tabla-responsive tbody, 
  .tabla-responsive tr, 
  .tabla-responsive td {
    display: block;
    width: 100%;
  }

  .tabla-responsive tr {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

  .tabla-responsive td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid #eee;
  }

  /* Insertamos los títulos de las columnas mediante :before */
  .tabla-responsive td:before {
    content: attr(data-label); /* Usamos un atributo de datos para el nombre */
    position: absolute;
    left: 12px;
    width: 45%;
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
    color: #333;
  }

  .tabla-responsive td:last-child {
    border-bottom: 0;
    text-align: left; /* El contenido largo de '+ Info' mejor a la izquierda */
    padding-left: 12px;
    padding-top: 35px; /* Espacio para el título superior */
  }
  
  .tabla-responsive td:last-child:before {
    top: 12px;
  }
}

/* Repeater Contenedor general de bloques */
.contenidos-seccion-2 {
    display: flex;
    flex-direction: column;
    gap: 40px; /* espacio uniforme entre bloques */
}

/* Cada bloque individual */
.contenido-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.contenido-icono {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.contenido-textos {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Título */
.contenido-titulo {
    font-weight: 600;
    font-size: 22px;
    line-height: 26px;
    color: #364E52;
    margin: 0;
}

/* Texto WYSIWYG */
.contenido-texto-wrapper {
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: #364E52;
}

.info-servicio .contenido-texto-wrapper, .valores-sedano-home .tj-el-desc{
	text-align:justify;
}


/* Reset márgenes de los <p> internos generados por WYSIWYG */
.contenido-texto-wrapper p {
    margin: 0;
}

.loop-partners .elementor-loop-container {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive móvil */
@media (max-width: 767px) {
    .contenidos-seccion-2 {
        gap: 40px;
    }

    .contenido-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contenido-icono {
        margin-bottom: 10px;
    }

    .contenido-textos {
        align-items: center;
    }
}

/*estilos de bloque de fecha en el loop item de entradas de blog*/
.rw-fecha-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    aspect-ratio: 1 / 1; 
   width: clamp(56px, 3.2vw, 68px);
	padding: 8px 4px;
    
    box-sizing: border-box;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.2);
}

.related .rw-fecha-box {
    width: clamp(52px, 4.5vw, 60px);
	padding: 8px 4px;
}
.related span.rw-dia {
    font-size: clamp(14px, 1.2vw, 18px);
}
span.rw-dia {
    font-size: clamp(18px, 22px, 26px);
    font-weight: 600;
    line-height: 1;
}
.related span.rw-mes {
    font-size: clamp(14px, 1vw, 18px);
}
span.rw-mes {
    font-size: clamp(16px, 20px, 22px);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
}

/*Responsive portatiles*/
@media (max-width: 1814px) and (min-width: 1367px) {
	.equipo-cat .e-filter-item , .actualidad-cat .e-filter-item, .servicios-list .elementor-heading-title{
		font-size:14px !important;
	}
	.equipo{
		padding-left: 0px !important;
		padding-right:0px !important;
	}

	.elementor-23 .elementor-element.elementor-element-67617b7{
		width:26%!important;
	}

}

/*Responsive al dividir ventana en monitores panoramicos*/
@media (max-width: 1515px) and (min-width: 1367px) {
	.mainmenu a , .elementor-element-d4da47c .elementor-icon-list-text{
		font-size:16px !important;
	}
	
	.elementor-element-02a4e2f .btn-text span{
		font-size:14px !important;
	}
	
	.elementor-6597 .elementor-element.elementor-element-8e9b494{
		column-gap:10px !important;
	}
	

}


/*Blog*/
.single-post .elementor-widget-theme-post-content p,
.single-privado .elementor-widget-theme-post-content p{
    margin-bottom: 1.2em;
}

.single-post .elementor-widget-theme-post-content h3,
.single-privado .elementor-widget-theme-post-content h3{
    margin-top: 2em;
    margin-bottom: 0.8em;
	font-size: 25px;
}

.single-post .elementor-widget-theme-post-content ul,
.single-post .elementor-widget-theme-post-content ol,
.single-privado .elementor-widget-theme-post-content ul,
.single-privado .elementor-widget-theme-post-content ol{
    margin-bottom: 1.2em;
    padding-left: 1.5em;
}

.single-post .elementor-widget-theme-post-content td, 
.single-privado .elementor-widget-theme-post-content td {
    border-width:1px;
}

.single-post .elementor-widget-theme-post-content table,
.single-privado .elementor-widget-theme-post-content table {
    min-width: 100%;
}

/*Banner cookies*/
.cky-btn-reject, .cky-btn-accept{
	background-color:#CF122D !important;
	border-color: #CF122D !important;
	color: #fff !important;
}

.cky-btn-customize, .cky-btn-preferences{
	border-color: #CF122D !important;
	color: #CF122D !important;
}

/* Alinear tarjetas del equipo - solo en tablet y escritorio */
@media (min-width: 768px) {

  /* Altura mínima uniforme para nombre/cargo/disponibilidad */
  .elementor-element-ecf4895 {
    min-height: 112px !important;
  }

  /* Caja de contacto siempre al fondo con altura uniforme */
  .elementor-element-d2f3e0c {
    margin-top: auto !important;
    min-height: 142px !important;
  }

}
