/*
Theme Name: Salient Child - Autoescuela Universitas
Description: Child theme de Salient para Autoescuela Universitas (Zaragoza). Paleta roja/negra, botones redondeados, botón flotante de WhatsApp y footer oscuro a 4 columnas.
Template: salient
Version: 1.0.0
Text Domain: salient-child-universitas
*/

/* =========================================================
   1. Variables de marca
   ========================================================= */
:root {
	--uni-accent: #E30613;
	--uni-accent-dark: #b70510;
	--uni-dark: #1A1A1A;
	--uni-light: #F5F5F5;
	--uni-dark-2: #2D2D2D;
	--uni-radius: 8px;
}

/* =========================================================
   2. Botones redondeados
   ========================================================= */
a.nectar-button,
button.nectar-button,
input.nectar-button,
.nectar-button,
.wpb_button,
.wpb_btn-inverse,
input[type="submit"],
.nectar-post-grid a.more-link,
.woocommerce a.button,
.woocommerce button.button {
	border-radius: var(--uni-radius) !important;
	-webkit-border-radius: var(--uni-radius) !important;
}

a.nectar-button.accent-color,
.nectar-button.accent-color {
	background-color: var(--uni-accent) !important;
	border-color: var(--uni-accent) !important;
}

a.nectar-button.accent-color:hover,
.nectar-button.accent-color:hover {
	background-color: var(--uni-accent-dark) !important;
	border-color: var(--uni-accent-dark) !important;
}

/* =========================================================
   3. Footer oscuro a 4 columnas
   ========================================================= */
#footer-outer,
#footer-outer.dark {
	background-color: var(--uni-dark) !important;
}

#footer-outer .footer-widget-row {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

#footer-outer .column {
	color: #cccccc;
}

#footer-outer h3,
#footer-outer .widget-title,
#footer-outer .heading-font {
	color: #ffffff !important;
	font-weight: 600;
}

#footer-outer a {
	color: #cccccc;
	transition: color .2s ease;
}

#footer-outer a:hover {
	color: var(--uni-accent);
}

#footer-outer input,
#footer-outer textarea {
	border-radius: var(--uni-radius);
}

#copyright-bar,
#copyright-bar.dark {
	background-color: var(--uni-dark-2) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#copyright-bar .container div,
#copyright-bar a {
	color: #aaaaaa;
}

#copyright-bar a:hover {
	color: var(--uni-accent);
}

@media only screen and (max-width: 768px) {
	#footer-outer .footer-widget-row {
		flex-direction: column;
		gap: 10px;
	}
	#footer-outer .column {
		width: 100% !important;
		margin-bottom: 25px;
	}
}

/* =========================================================
   4. Botón flotante de WhatsApp
   ========================================================= */
.uni-whatsapp-float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9999;
	width: 60px;
	height: 60px;
	background-color: #25D366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	transition: transform .2s ease, box-shadow .2s ease;
}

.uni-whatsapp-float:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.uni-whatsapp-float svg {
	width: 32px;
	height: 32px;
	fill: #ffffff;
}

@media only screen and (max-width: 768px) {
	.uni-whatsapp-float {
		right: 16px;
		bottom: 16px;
		width: 52px;
		height: 52px;
	}
	.uni-whatsapp-float svg {
		width: 28px;
		height: 28px;
	}
}

/* =========================================================
   5. Compartir / teléfono (shortcodes uni_share / uni_phone)
   ========================================================= */
.uni-share {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 20px 0;
}

.uni-share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--uni-dark);
	color: #ffffff !important;
	transition: background-color .2s ease, transform .2s ease;
}

.uni-share a:hover {
	background-color: var(--uni-accent);
	transform: translateY(-2px);
}

.uni-share svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.uni-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--uni-dark);
	text-decoration: none;
}

.uni-phone:hover {
	color: var(--uni-accent);
}

.uni-phone svg {
	width: 18px;
	height: 18px;
	fill: var(--uni-accent);
}

/* =========================================================
   6. Hero (shortcode uni_hero)
   ========================================================= */
.uni-hero {
	position: relative;
	width: 100%;
	height: auto;
	min-height: 750px;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	color: #fff;
	display: flex;
	flex-direction: column;
}

.uni-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	animation: uniHeroKenBurns var(--uni-kb-duration, 18s) ease-in-out infinite alternate;
}

@keyframes uniHeroKenBurns {
	from { transform: scale(1); }
	to { transform: scale(var(--uni-kb-scale, 1.08)); }
}

.uni-hero__gradient {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.4) 35%, rgba(0,0,0,0) 65%);
	pointer-events: none;
}

.uni-hero__pattern {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.uni-hero__content {
	position: relative;
	z-index: 2;
	max-width: 1240px;
	width: 100%;
	margin: 0 auto;
	padding: 90px 80px 130px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	box-sizing: border-box;
}

.uni-hero__badge {
	color: var(--uni-accent);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 20px;
	opacity: 0;
	animation: uniHeroFadeLeft .6s ease .1s forwards;
}

.uni-hero__badge svg { width: 16px; height: 16px; fill: var(--uni-accent); flex-shrink: 0; }

.uni-hero__title {
	margin: 0 0 20px;
	font-size: 90px;
	font-weight: 900;
	line-height: 0.95;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0,0,0,.45);
	opacity: 0;
	animation: uniHeroFadeLeft .6s ease .25s forwards;
}

.uni-hero__title .line-1 {
	display: block;
}

.uni-hero__title .line-2 {
	display: block;
	color: var(--uni-accent);
	font-size: 110px;
	font-style: italic;
	opacity: 0;
	animation: uniHeroFadeLeft .6s ease .4s forwards;
}

/* Efectos de texto del título (controlados desde el Personalizador) */
.uni-hero__title.uni-hero__title--shadow3d {
	text-shadow: 2px 2px 0 rgba(0,0,0,.5), 4px 4px 0 rgba(0,0,0,.35), 6px 6px 10px rgba(0,0,0,.3);
}

.uni-hero__title.uni-hero__title--outline {
	text-shadow: none;
	-webkit-text-stroke: 2px rgba(0,0,0,.6);
}

.uni-hero__title.uni-hero__title--none {
	text-shadow: none;
}

.uni-hero__divider {
	width: 60px;
	height: 4px;
	background: var(--uni-accent);
	margin: 0 0 20px;
	opacity: 0;
	animation: uniHeroFadeIn .5s ease .5s forwards;
}

.uni-hero__subtitle {
	width: 450px;
	max-width: 100%;
	font-size: 16px;
	line-height: 1.5;
	color: #fff;
	margin: 0 0 24px;
	opacity: 0;
	animation: uniHeroFadeIn .6s ease .6s forwards;
}

.uni-hero__icons {
	width: 460px;
	max-width: 100%;
	display: flex;
	background: rgba(255,255,255,0.9);
	border-radius: 12px;
	padding: 10px;
	margin: 0 0 24px;
	opacity: 0;
	animation: uniHeroFadeIn .6s ease .75s forwards;
}

.uni-hero__icons .item {
	flex: 1;
	text-align: center;
	padding: 6px 4px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--uni-dark);
	line-height: 1.25;
}

.uni-hero__icons.has-separators .item:not(:first-child) {
	border-left: 1px solid rgba(0,0,0,.15);
}

.uni-hero__icons .item svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: var(--uni-accent);
	margin: 0 auto 6px;
}

.uni-hero__cta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin: 0;
	opacity: 0;
	animation: uniHeroFadeUp .6s ease .9s forwards;
}

.uni-hero__btn-primary,
.uni-hero__btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 35px;
	border-radius: 30px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .3px;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .2s ease, background-color .2s ease;
}

.uni-hero__btn-primary {
	background: var(--uni-accent);
	color: #fff !important;
}

.uni-hero__btn-primary:hover { background: var(--uni-accent-dark); transform: translateY(-2px); }

.uni-hero__btn-secondary {
	background: transparent;
	border: 2px solid #fff;
	color: #fff !important;
	line-height: 1.2;
}

.uni-hero__btn-secondary:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.uni-hero__btn-secondary small {
	display: block;
	font-size: 11px;
	font-weight: 400;
	opacity: .85;
}

.uni-hero__btn-secondary svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }

.uni-hero__stats {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	background: rgba(0,0,0,.55);
	display: flex;
	z-index: 2;
	opacity: 0;
	animation: uniHeroFadeUp .6s ease 1.05s forwards;
}

.uni-hero__stats .stat {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px 24px;
	border-left: 2px solid var(--uni-accent);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
}

.uni-hero__stats .stat:first-child { border-left: none; }

.uni-hero__stats .stat svg { width: 36px!important; height: 36px!important; fill: var(--uni-accent); flex-shrink: 0; }

.uni-hero__stats .stat span {
	display: block;
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
	margin-top: 2px;
}

/* Alineación del contenido (controlada desde el Personalizador) */
.uni-hero--valign-top { justify-content: flex-start; }
.uni-hero--valign-center { justify-content: center; }
.uni-hero--valign-bottom { justify-content: flex-end; }

.uni-hero--align-center .uni-hero__content { align-items: center; text-align: center; }
.uni-hero--align-center .uni-hero__cta { justify-content: center; }

.uni-hero--align-right .uni-hero__content { align-items: flex-end; text-align: right; }
.uni-hero--align-right .uni-hero__cta { justify-content: flex-end; }

@keyframes uniHeroFadeLeft {
	from { opacity: 0; transform: translateX(-24px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes uniHeroFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes uniHeroFadeUp {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Laptop */
@media only screen and (max-width: 1240px) {
	.uni-hero { min-height: 700px; }
	.uni-hero__content { padding: 80px 50px 140px; }
	.uni-hero__title { font-size: 75px; }
	.uni-hero__title .line-2 { font-size: 90px; }
}

/* Tablet */
@media only screen and (max-width: 1024px) {
	.uni-hero { min-height: 0; }
	.uni-hero__content { padding: 60px 50px 40px; }
	.uni-hero__title { font-size: 60px; }
	.uni-hero__title .line-2 { font-size: 72px; }
	.uni-hero__subtitle { width: 400px; }
	.uni-hero__icons { width: 420px; }
	.uni-hero__stats { position: static; flex-wrap: wrap; }
	.uni-hero__stats .stat { flex: 1 1 50%; border-left: none; border-top: 2px solid var(--uni-accent); padding: 14px 24px; }
	.uni-hero__stats .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.15); }
}

/* Mobile */
@media only screen and (max-width: 778px) {
	.uni-hero { min-height: 0; }
	.uni-hero__content { padding: 24px 24px 32px; }
	.uni-hero__badge { font-size: 12px; }
	.uni-hero__title { font-size: 42px; line-height: 1; }
	.uni-hero__title .line-2 { font-size: 50px; }
	.uni-hero__subtitle { width: auto; font-size: 14px; }
	.uni-hero__icons { width: 100%; flex-wrap: wrap; gap: 0; }
	.uni-hero__icons .item { flex: 1 1 50%; }
	.uni-hero__icons.has-separators .item:not(:first-child) { border-left: none; }
	.uni-hero__icons.has-separators .item:nth-child(odd) { border-right: 1px solid rgba(0,0,0,.15); }
	.uni-hero__icons.has-separators .item:nth-child(n+3) { border-top: 1px solid rgba(0,0,0,.15); }
	.uni-hero__cta { flex-direction: column; width: 100%; }
	.uni-hero__btn-primary, .uni-hero__btn-secondary { justify-content: center; width: 100%; }
	.uni-hero__stats { position: static; flex-wrap: wrap; }
	.uni-hero__stats .stat { flex: 1 1 50%; border-left: none; border-top: 2px solid var(--uni-accent); padding: 14px 20px; font-size: 11px; }
}
