/* Estilos general de todos los sitios USAL  */

/* HEADER */
header { 
	position: sticky; 
	
	/*position: fixed !important;  
	width: 100%;
	transition: top 1s;
	*/ 
	transition: top 0.5s;
	
	top: 0; 
	z-index: 999;
	box-shadow: 0px 2px 5px 0px #053123 !important;
}
  
/* BARRA NOMBRE DEL SITIO */
#barra_sitio_desktop,#barra_sitio_mobile {
	background-color: #08473B;
	border-bottom-left-radius: 20px;
	box-shadow: 0px 2px 5px 0px #08473B !important;
	margin-left: 15px !important;
	display: flex;
	justify-content: space-between;
	align-items: center;
}


/* Asegura que el título del sitio no tenga estilo */
header #barra_sitio_desktop h1 a, header #barra_sitio_mobile h1 a {
	text-decoration: none !important;
	letter-spacing: -1px;
	margin-right: 10px;
}

/* Achica la letra del nombre del sitio en mobile */
@media (max-width: 550px) {
	#barra_sitio_desktop h1, #barra_sitio_mobile h1 { 
		font-size: var(--wp--preset--font-size--x-small) !important;
	}
}


/* HEADERS */ 

#header-desktop .custom-logo img {
	width: 160px !important;
	margin-left: 5px;
	margin-right: 5px;
	/*max-width: fit-content;*/
}

#header-mobile .custom-logo img {
	width: 90px !important;
	margin-left: 5px;
	margin-right: 5px;
	/*max-width: fit-content;*/
}

/* HEADERS SIN BARRA DE TITULO */ 

#header-desktop.sin-barra-titulo #barra_sitio_desktop,
#header-mobile.sin-barra-titulo #barra_sitio_mobile {
	display: none !important;
}


/* Selector de Idioma */
.selector-idioma {
	font-size: var(--wp--preset--font-size--x-small) !important;
	background: var(--wp--preset--color--secondary) !important;
	color: var(--wp--preset--color--base) !important;
	padding: 3px;
	border: 0;
}

/* Menu mobile */


.wp-block-navigation__responsive-container-content {
	margin-left: 5px;
}

.wp-block-navigation__responsive-container-content ul {
	margin-top: 0px;
	padding-top: 0px;
}

/* SIDEBAR BOTONES */
.sidebar-botones {
    top: 10em;
    position: sticky;
}
.sidebar-botones a {
	text-decoration: none;
}

.flotante {
	position: fixed;
	bottom: 80px;
	right: 20px; 
	z-index: 1000;
}

.flotante_btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
}


@media (max-width: 780px) {
	.sidebar-botones {
		flex-direction: row !important;
		font-size: 10px;
		flex-flow: wrap !important;
		display: flex;
		justify-content: center !important;
		margin-top: 15px !important;
		gap: 5px;
	}
}

.boton-main {
	box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.32);
	border-radius: 3px;
	display: grid;
	align-items: center;
	max-width: 200px;
	min-width: 150px;
}

.boton-menu {
	box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.32);
	border-radius: 3px;
}

@media (max-width: 780px) {
	.boton-main {
		width: 200px;
		height: 50px;
		font-size: 1.2em !important;
	}
	.boton-menu svg {
		max-height: 100px;
	}	
	    
}



/* HOME */
.portada-video {
	aspect-ratio: 2.6; 
    min-height: unset;
	box-shadow: 0px 0px 11px 0px rgba(0, 0, 0, 1) !important;
}
.portada-video .caja-busqueda-home {
	position: absolute;
	bottom: 5px;
    margin: auto;
    left: 0;
    right: 0;
    max-width: 400px;
}

@media (max-width: 550px) {
	.portada-video {
		aspect-ratio: 2.25; 
	}
	.portada-video .caja-busqueda-home {
		bottom: 0px;
		margin-left: 5px;
		margin-right: 5px;
	}
	.portada-video .caja-busqueda-home button {
		padding: 5px;
	}
	p, pre, li, td {
		font-size: smaller !important;
	}
	/*
	h1 { font-size: 1.3em; }
	h2 { font-size: 1.1em; }
	h3 { font-size: 0.9em; }
	*/
}

/* las leyendas sobre las imagenes de portada */
.titulo-portada {
/*	-webkit-text-stroke: 1px black; */
   text-shadow: 0px 0px 10px black;
	font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 2.285), 3rem) !important;
}



header nav button.wp-block-navigation__responsive-container-open {
	background: #065240;
    padding: 5px;
    border-radius: 5px;
}

header nav button.wp-block-navigation__responsive-container-open svg {
	color: white !important;
}

header nav ul {
	gap: 0.5em !important;
}

/* */

.fondo-especial-fill img {
	object-fit: fill !important;
}

.linea-base-titulo {
	height: 1px !important;
	border-radius: 3px !important;
	margin-top: 5px !important;
	margin-bottom: 10px !important;
}


#banner-home, .wp-block-post-featured-image {
    box-shadow: 0px 2px 5px 0px #999999 !important;
}

li figure.wp-block-post-featured-image {
    box-shadow: none !important;
}

/* Portada solo para pagina ID 5 (best) */
.page-id-5 .wp-block-post-featured-image {
	aspect-ratio: 2400 / 450;
}

.page-id-5 .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top center;
}

li.category-novedades {
	padding: 5px;
	box-shadow: 0px 2px 5px 0px #999999 !important;
}

.usal-hidden { display: none; }

/* Linea de tiempo central */
.usal-timeline {
	--timeline-gap: 2rem;
	--timeline-line: 2px;
	--timeline-dot: 12px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: var(--wp--preset--spacing--30) 0;
}

.usal-timeline::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: var(--timeline-line);
	background: var(--wp--preset--color--secondary);
	transform: translateX(-50%);
}

.usal-timeline__item {
	position: relative;
	width: calc(50% - (var(--timeline-gap) / 2));
	align-self: flex-start;
	text-align: right;
	padding-right: calc(var(--timeline-gap) / 2 + 0.75rem);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 500ms ease, transform 500ms ease;
}

.usal-timeline__item:nth-child(even) {
	align-self: flex-end;
	text-align: left;
	padding-right: 0;
	padding-left: calc(var(--timeline-gap) / 2 + 0.75rem);
}

.usal-timeline__item::before {
	content: "";
	position: absolute;
	top: 0.6rem;
	width: var(--timeline-dot);
	height: var(--timeline-dot);
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 4px var(--wp--preset--color--base);
	right: calc(-1 * (var(--timeline-gap) / 2) - (var(--timeline-dot) / 2));
}

.usal-timeline__item:nth-child(even)::before {
	right: auto;
	left: calc(-1 * (var(--timeline-gap) / 2) - (var(--timeline-dot) / 2));
}

.usal-timeline__item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.usal-timeline__item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

@media (max-width: 782px) {
	.usal-timeline {
		--timeline-gap: 1.5rem;
	}

	.usal-timeline::before {
		left: calc(var(--timeline-gap) / 2);
	}

	.usal-timeline__item,
	.usal-timeline__item:nth-child(even) {
		width: 100%;
		align-self: stretch;
		text-align: left;
		padding-right: 0;
		padding-left: calc(var(--timeline-gap) / 2 + 0.75rem);
	}

	.usal-timeline__item::before,
	.usal-timeline__item:nth-child(even)::before {
		right: auto;
		left: calc((var(--timeline-gap) / 2) - (var(--timeline-dot) / 2));
	}
}

/* Mostrar items en el editor */
.editor-styles-wrapper .usal-timeline__item {
	opacity: 1;
	transform: none;
}

/* Compactar espacios que agrega CF7 */
.cf7-beneficios p {
	margin: 0;
}

.cf7-beneficios br {
	display: none;
}

.cf7-beneficios .wpcf7-form-control-wrap {
	display: block;
	margin-top: 4px;
}

/* Beneficios Formularios */
.cf7-beneficios {
	max-width: 720px;
	margin: 0 auto;
	padding: 20px 22px 18px;
	background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
	border: 1px solid #dbe7e4;
	border-radius: 18px;
	box-shadow: 0 12px 28px rgba(8, 59, 48, 0.06);
}

.cf7-beneficios__intro {
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e3ece9;
}

.cf7-beneficios__intro p {
	font-size: 14px;
	line-height: 1.45;
}

.cf7-beneficios__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 14px;
	row-gap: 10px;
	margin-bottom: 10px;
}

.cf7-beneficios label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	color: #0c3f35;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
}

.cf7-beneficios__full {
	margin-bottom: 10px;
}

.cf7-beneficios .cf7-beneficios__control {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #c7d8d3;
	border-radius: 10px;
	background: #fff;
	color: #183b34;
	font-size: 14px;
	outline: none;
	box-sizing: border-box;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.cf7-beneficios .cf7-beneficios__textarea {
	height: auto;
	min-height: 100px;
	padding: 10px 12px;
	resize: vertical;
}

.cf7-beneficios .cf7-beneficios__control:focus {
	border-color: #0f6b5b;
	box-shadow: 0 0 0 3px rgba(15, 107, 91, 0.11);
}

.cf7-beneficios__actions {
	display: flex;
	justify-content: flex-start;
	margin-top: 2px;
}

.cf7-beneficios .cf7-beneficios__submit {
	min-width: 180px;
	padding: 11px 16px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #0f6b5b 0%, #125b4f 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(15, 107, 91, 0.15);
	transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.cf7-beneficios .wpcf7-not-valid-tip {
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.25;
}

.cf7-beneficios .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.4;
}

@media (max-width: 782px) {
	.cf7-beneficios {
		padding: 16px 14px;
		border-radius: 14px;
	}

	.cf7-beneficios__grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.cf7-beneficios .cf7-beneficios__control {
		height: 40px;
	}

	.cf7-beneficios .cf7-beneficios__textarea {
		min-height: 96px;
	}

	.cf7-beneficios .cf7-beneficios__submit {
		width: 100%;
		min-width: 0;
	}
}

