/* Torres Core */

/* ---------- Header sobre el contenido (transparente) ---------- */
.torres-site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
}
.admin-bar .torres-site-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .torres-site-header { top: 46px; }
}

/* Hello agrega márgenes al contenido de páginas sin Elementor; en las de Elementor no. */
.torres-site-footer { position: relative; }

/* ---------- Menú lateral ---------- */
.torres-menu { display: flex; align-items: center; }
.torres-menu__toggle {
	--torres-toggle-color: #fff;
	border-radius: 0 !important;
	--torres-toggle-size: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--torres-toggle-size) + 16px);
	height: calc(var(--torres-toggle-size) + 16px);
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	cursor: pointer;
}
.torres-menu__bars,
.torres-menu__bars::before,
.torres-menu__bars::after {
	display: block;
	width: var(--torres-toggle-size);
	height: 2px;
	background: var(--torres-toggle-color);
	transition: transform .3s, background-color .3s;
}
.torres-menu__bars { position: relative; }
.torres-menu__bars::before,
.torres-menu__bars::after { content: ""; position: absolute; left: 0; }
.torres-menu__bars::before { top: -7px; }
.torres-menu__bars::after { top: 7px; }

.torres-menu__overlay {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(0, 0, 0, .5);
	opacity: 0;
	transition: opacity .3s;
}
.torres-menu.is-open .torres-menu__overlay { opacity: 1; }

.torres-menu__panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	width: 300px;
	max-width: 85vw;
	padding: 90px 40px 40px;
	overflow-y: auto;
	background: #1f1f1f;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .35s ease, visibility 0s linear .35s;
}
.torres-menu.is-open .torres-menu__panel {
	transform: none;
	visibility: visible;
	transition: transform .35s ease;
}
.admin-bar .torres-menu__panel { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .torres-menu__panel { top: 46px; }
}

.torres-menu__close {
	position: absolute;
	top: 28px;
	left: 34px;
	padding: 0 !important;
	border-radius: 0 !important;
	font-size: 34px !important;
	width: 40px;
	height: 40px;
	line-height: 1;
	color: #979797;
	background: none !important;
	border: 0 !important;
	cursor: pointer;
}
.torres-menu__list,
.torres-menu__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}
.torres-menu__list li {
	position: relative;
	border-bottom: 1px solid #3a3a3a;
}
.torres-menu__list .sub-menu {
	display: none;
	padding-left: 15px;
}
.torres-menu__list .sub-menu li { border: 0; }
.torres-menu__list li.is-open > .sub-menu { display: block; }
.torres-menu__panel a {
	display: block;
	padding: 17px 30px 17px 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	line-height: 1.4;
	text-transform: uppercase;
	text-decoration: none;
	color: #979797;
	transition: color .2s;
}
.torres-menu__sub-toggle {
	position: absolute;
	top: 8px;
	right: -10px;
	width: 36px;
	height: 36px;
	padding: 0 !important;
	border-radius: 0 !important;
	color: #979797;
	background: none !important;
	border: 0 !important;
	cursor: pointer;
}
.torres-menu__sub-toggle::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .2s;
}
.torres-menu__list li.is-open > .torres-menu__sub-toggle::before { transform: rotate(45deg); }
.torres-menu__close:hover, .torres-menu__close:focus, .torres-menu__sub-toggle:hover, .torres-menu__sub-toggle:focus { color: #fff; }
body.torres-menu-open { overflow: hidden; }

/* ---------- Slider de portada ---------- */
.torres-hero {
	position: relative;
	height: 900px;
	overflow: hidden;
	background: #232323;
}
.torres-hero__track,
.torres-hero__slide,
.torres-hero__bg {
	position: absolute;
	inset: 0;
}
.torres-hero__slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 0s linear 1s;
}
.torres-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 1s ease;
}
.torres-hero__bg {
	background-position: center;
	background-size: cover;
	transform: scale(1.06);
	transition: transform 9s ease-out;
}
.torres-hero__slide.is-active .torres-hero__bg { transform: none; }
.torres-hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.torres-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 120px 20px 60px;
	text-align: center;
}
.torres-hero__heading {
	margin: 0 0 30px;
	line-height: 1;
}
.torres-hero__title,
.torres-hero__subtitle {
	display: block;
	font-family: Oswald, sans-serif;
	text-transform: uppercase;
	letter-spacing: 2px;
	line-height: 1.12;
}
.torres-hero__title { font-size: 145px; font-weight: 400; }
.torres-hero__subtitle { font-size: 102px; font-weight: 300; }
.torres-hero__text {
	max-width: 760px;
	font-size: 18px;
	line-height: 1.5;
}
.torres-hero__text p { margin: 0; }
.torres-hero__slide .torres-hero__heading,
.torres-hero__slide .torres-hero__text,
.torres-hero__slide .torres-hero__button {
	opacity: 0;
	transform: scale(.92);
	transition: opacity .9s ease, transform .9s ease;
}
.torres-hero__slide.is-active .torres-hero__heading { opacity: 1; transform: none; transition-delay: .4s; }
.torres-hero__slide.is-active .torres-hero__text { opacity: 1; transform: none; transition-delay: .8s; }
.torres-hero__slide.is-active .torres-hero__button { opacity: 1; transform: none; transition-delay: 1s; }
.torres-hero__button { margin-top: 30px; }
.torres-hero__dots {
	--torres-dot-color: #fff;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 35px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 10px;
}
.torres-hero__dot {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	min-height: 0;
	padding: 0 !important;
	border-radius: 50% !important;
	border: 0 !important;
	background: color-mix(in srgb, var(--torres-dot-color) 40%, transparent) !important;
	box-shadow: inset 0 0 0 2px transparent;
	cursor: pointer;
	transition: box-shadow .3s, background-color .3s;
}
.torres-hero__dot.is-active {
	background: transparent !important;
	box-shadow: inset 0 0 0 2px var(--torres-dot-color);
	position: relative;
}
.torres-hero__dot.is-active::after {
	content: "";
	position: absolute;
	inset: 5px;
	border-radius: 50%;
	background: var(--torres-dot-color);
}
@media (max-width: 1024px) {
	.torres-hero__title { font-size: 128px; }
}
@media (max-width: 767px) {
	.torres-hero__title { font-size: 72px; }
	.torres-hero__subtitle { font-size: 52px; }
	.torres-hero__text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.torres-hero__slide, .torres-hero__bg, .torres-hero__slide * { transition: none !important; }
}

/* ---------- Flip box ---------- */
.torres-flip {
	display: block;
	height: 300px;
	perspective: 1200px;
	color: inherit;
	text-decoration: none;
	outline-offset: 3px;
}
.torres-flip__inner {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform .7s cubic-bezier(.3, .8, .3, 1);
}
.torres-flip:hover .torres-flip__inner,
.torres-flip:focus-within .torres-flip__inner,
.torres-flip:focus .torres-flip__inner { transform: rotateY(180deg); }
.torres-flip__face {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background-color: #0a0a0a;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
.torres-flip__back { transform: rotateY(180deg); }
.torres-flip__bg {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
}
.torres-flip__back .torres-flip__bg { opacity: .4; }
.torres-flip__content {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	padding: 10px 40px 35px;
	text-align: center;
}
.torres-flip__front .torres-flip__content { justify-content: flex-end; }
.torres-flip__title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}
.torres-flip__text { font-size: 13px; line-height: 1.6; color: #cecece; }
.torres-flip__text p { margin: 0 0 10px; }
.torres-flip__text p:last-child { margin-bottom: 0; }

/* ---------- Grilla de entrenadores ---------- */
.torres-people {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 50px 18px;
}
.torres-person { text-align: center; }
.torres-person__thumb {
	overflow: hidden;
	margin-bottom: 36px;
}
.torres-person__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform .4s ease, opacity .4s ease;
}
.torres-person:hover .torres-person__thumb img { transform: scale(1.08); opacity: .85; }
.torres-person__name {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.torres-person__name a { color: inherit; text-decoration: none; }
.torres-person__position {
	font-size: 14px;
	font-style: italic;
	line-height: 1.5;
}
.torres-person__divider {
	display: block;
	width: 45px;
	height: 2px;
	margin: 22px auto 0;
}

/* ---------- Listado de entradas ---------- */
.torres-posts { display: grid; gap: 40px; }
.torres-posts--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.torres-posts--list .torres-post {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 30px;
	align-items: center;
}
.torres-posts--grid .torres-post__thumb { margin-bottom: 20px; }
.torres-post__thumb { display: block; overflow: hidden; }
.torres-post__thumb img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform .4s ease;
}
.torres-post:hover .torres-post__thumb img { transform: scale(1.05); }
.torres-post__meta { margin-bottom: 8px; font-size: 13px; font-style: italic; }
.torres-post__title { margin: 0 0 12px; font-size: 22px; }
.torres-post__title a { text-decoration: none; }
.torres-post__more {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .8px;
	color: #e54444;
}
.torres-posts__pagination { margin-top: 40px; text-align: center; }
.torres-posts__pagination .page-numbers { display: inline-block; padding: 6px 12px; margin: 0 2px; }
.torres-posts__pagination .current { background: #e54444; color: #fff; }
@media (max-width: 767px) {
	.torres-posts--list .torres-post { grid-template-columns: 1fr; }
}

/* ---------- Utilidades globales ---------- */
/* Botón "outline" del sitio original. */
.torres-btn-outline .elementor-button {
	border: 2px solid currentColor;
	background: transparent;
}
/* Listas con viñeta roja (instalaciones). */
.torres-list ul { margin: 0 0 20px; padding-left: 18px; }
.torres-list li { margin: 0; }
/* Mapas embebidos a ancho completo. */
.torres-map iframe { display: block; width: 100%; border: 0; }
/* Formularios de Contact Form 7 con el estilo del sitio. */
.torres-form .wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.torres-form .wpcf7 select,
.torres-form .wpcf7 textarea {
	width: 100%;
	padding: 15px 22px;
	font-size: 14px;
	color: #4e4e4e;
	background: #fff;
	border: 1px solid #d7d7d7;
	border-radius: 0;
}
.torres-form .wpcf7 textarea { height: 180px; }
.torres-form .wpcf7 p { margin: 0 0 20px; }
.torres-form .wpcf7 input[type=submit] {
	padding: 15px 33px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: #fff;
	background: #e54444;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}
.torres-form .wpcf7 input[type=submit]:hover { background: #c93434; }

/* Newsletter (plugin Newsletter, formulario minimal) */
.torres-newsletter .tnp-subscription-minimal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 535px;
	margin: 0 auto;
}
.torres-newsletter .tnp-subscription-minimal form { display: contents; }
.torres-newsletter .tnp-subscription-minimal input.tnp-email {
	flex: 1 1 260px;
	width: auto;
	height: 58px;
	padding: 0 20px;
	font-size: 15px;
	color: #fff;
	background: #e54444;
	border: 0;
	border-radius: 0;
}
.torres-newsletter .tnp-subscription-minimal input.tnp-email::placeholder { color: rgba(255, 255, 255, .85); }
.torres-newsletter .tnp-subscription-minimal input.tnp-submit {
	flex: 0 0 160px;
	height: 58px;
	padding: 0 20px;
	font-size: 15px;
	color: #fff;
	background: #000;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}
.torres-newsletter .tnp-subscription-minimal input.tnp-submit:hover { background: #333; }

/* Botón volver arriba */
.torres-to-top {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	padding: 0 !important;
	color: #fff !important;
	background: rgba(120, 120, 120, .5) !important;
	border: 0 !important;
	border-radius: 50% !important;
	opacity: 0;
	visibility: hidden;
	cursor: pointer;
	transition: opacity .3s, visibility .3s, background-color .3s;
}
.torres-to-top.is-visible { opacity: 1; visibility: visible; }
.torres-to-top:hover { background: #e54444 !important; }
.torres-to-top::before {
	content: "";
	width: 9px;
	height: 9px;
	margin-top: 4px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: rotate(45deg);
}
@media (max-width: 767px) {
	.torres-to-top { right: 15px; bottom: 15px; }
}

/* Párrafos con el espaciado del theme original */
.elementor-widget-text-editor p { margin: 0 0 20px; }
.elementor-widget-text-editor p:last-child { margin-bottom: 20px; }
.elementor-widget-text-editor ul:last-child { margin-bottom: 0; }

/* Contact Form 7: campos a todo el ancho y opciones en columna */
.torres-form .wpcf7-form-control-wrap { display: block; }
.torres-form .wpcf7-radio .wpcf7-list-item,
.torres-form .wpcf7-checkbox .wpcf7-list-item { display: block; margin: 6px 0 0 20px; }
.torres-form .wpcf7 label { display: block; }

/* Carrusel de imágenes con flechas en círculo */
.torres-carousel .elementor-swiper-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	font-size: 18px;
	color: #fff;
	background: rgba(0, 0, 0, .55);
	border-radius: 50%;
}
.torres-carousel .elementor-swiper-button svg { width: 14px; height: 14px; fill: #fff; }

/* Íconos inline dentro de textos */
.torres-inline-icon { display: inline-block; width: 1em; height: 1em; margin-left: 3px; vertical-align: -0.125em; fill: currentColor; }

/* Header móvil/tablet: barra clara fija arriba, como el theme original */
@media (max-width: 1024px) {
	.torres-site-header {
		position: sticky;
		top: 0;
	}
	.admin-bar .torres-site-header { top: 32px; }
	.torres-header-main {
		background-color: #e5e5e5;
		box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
	}
	.torres-header-main .torres-menu__toggle { --torres-toggle-color: #404040 !important; }
}
@media (max-width: 782px) {
	.admin-bar .torres-site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .torres-site-header { top: 0; }
}

/* Páginas sin Elementor (entradas, 404, búsqueda): header sobre fondo oscuro, sin superponerse */
body:not(.elementor-page) .torres-site-header {
	position: relative;
	background-color: #232323;
}
body:not(.elementor-page) #content.site-main { padding-top: 60px; padding-bottom: 60px; }

/* Carruseles con fotos de distinto tamaño: misma proporción */
.torres-carousel .swiper-slide-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Franja de imágenes a todo el ancho (Elite) */
.torres-strip .swiper-slide-image { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Datos de contacto de los locales */
.torres-info-text p { margin-bottom: 0 !important; }
.torres-info-text a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
