/*
Theme Name: Turismo Rural
Description: Tema hijo de Twenty Twenty-Five para sitios de emprendimientos locales (turismo, servicios, productos) que venden por WhatsApp. Framework sitios-turismo-rural. Paleta y tipografías en theme.json; aquí solo utilidades.
Author: lfernan
Template: twentytwentyfive
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: turismo-rural
*/

/* Badge de tipo de experiencia (aventura / naturaleza / astronomía / a medida) */
.tr-badge {
	display: inline-block;
	padding: 0.2em 0.75em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Tarjeta de experiencia (inicio y hub) */
.tr-card {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(31, 42, 30, 0.08);
	height: 100%;
}
.tr-card__foto img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}
.tr-card h3 a {
	text-decoration: none;
}

/* Franja de datos clave de la ficha */
.tr-datos-clave {
	border-radius: 10px;
	border-left: 6px solid var(--wp--preset--color--accent-1);
}

/* Botón flotante de WhatsApp (se inserta desde parts/footer.html) */
.tr-whatsapp {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--wp--preset--color--whatsapp);
	color: var(--wp--preset--color--accent-5);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}
.tr-whatsapp:hover {
	transform: scale(1.06);
	color: var(--wp--preset--color--accent-5);
}
@media print {
	.tr-whatsapp { display: none; }
}

/* Grilla de tarjetas (inicio y hub): 2 columnas en escritorio, 1 en móvil */
.tr-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}
.tr-grid > * {
	margin-block-start: 0 !important;
}
@media (max-width: 640px) {
	.tr-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Breadcrumb (Yoast emite spans sin contenedor) */
.tr-breadcrumb {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--accent-6);
	margin-bottom: 1rem;
}

/* Tabla de precios en fichas */
.tr-precios table {
	border-collapse: collapse;
	width: 100%;
}
.tr-precios th,
.tr-precios td {
	border: 1px solid var(--wp--preset--color--accent-4);
	padding: 0.6em 0.9em;
	text-align: left;
}
.tr-precios thead th {
	background: var(--wp--preset--color--accent-4);
}

/* Mapa embebido en contacto */
.tr-mapa {
	display: block;
	max-width: 100%;
}

.tr-card .wp-block-image{margin:0;width:100%}.tr-card .wp-block-image img{width:100%;height:260px;object-fit:cover;display:block}.wp-block-site-logo img{width:160px;height:auto}.wp-block-site-title{max-width:240px}@media(max-width:600px){.wp-block-site-logo img{width:110px}.wp-block-site-title{max-width:180px}}

/* Enlaces legibles sobre el fondo oscuro del pie, incluidos los visitados. */
.tr-footer a, .tr-footer a:visited {
 color: var(--wp--preset--color--accent-4);
 text-decoration: underline;
 text-underline-offset: 0.18em;
 overflow-wrap: anywhere;
}
.tr-footer a:hover, .tr-footer a:focus-visible {
 color: var(--wp--preset--color--accent-5);
}
.tr-footer a:focus-visible {
 outline: 2px solid currentColor;
 outline-offset: 4px;
 border-radius: 2px;
}

.tr-card .tr-card__foto a { display:block; width:100%; }

.tricahue-hero{position:relative;isolation:isolate;min-height:540px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#20312e;margin:0 calc(50% - 50vw);width:100vw;text-align:center;color:#fff;}
.tricahue-hero__poster,.tricahue-hero__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;}
.tricahue-hero__video{opacity:0;object-position:50% 50%;}
.tricahue-hero.is-playing .tricahue-hero__video{opacity:1;}
.tricahue-hero:after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.48);z-index:-1;}
.tricahue-hero__content{max-width:980px;padding:4rem 1.5rem;}
.tricahue-hero h1{font-size:clamp(2.5rem,5vw,4.5rem);line-height:1.1;color:#fff;}
.tricahue-hero__content>p{font-size:clamp(1.2rem,2vw,1.5rem);max-width:850px;margin:1.5rem auto;}
.tricahue-hero__buttons .wp-element-button{display:inline-block;background:#fff;color:#21402b;padding:1rem 1.5rem;}
.tricahue-video-toggle{position:absolute;right:1rem;bottom:1rem;border:1px solid #fff;border-radius:6px;background:#0009;color:white;padding:.6rem 1rem;cursor:pointer;}
.tricahue-video-toggle[hidden]{display:none;}

.tricahue-hero.alignfull {max-width:none;width:auto;margin-left:0;margin-right:0;}
.tricahue-hero__buttons {display:flex;justify-content:center;gap:1rem;flex-wrap:wrap;}
.tricahue-hero__buttons .tricahue-hero__reserve {background:var(--wp--preset--color--whatsapp);color:white;}
.tricahue-video-toggle:focus-visible {outline:3px solid white;outline-offset:3px;}
@media(max-width:640px){.tricahue-hero{min-height:600px;}}
@media(prefers-reduced-motion:reduce){.tricahue-hero__video{display:none;}}

.tricahue-hero.alignfull {margin-left:calc(-1 * var(--wp--style--root--padding-left));margin-right:calc(-1 * var(--wp--style--root--padding-right));}

.tricahue-video-toggle {right:5.5rem;}

/* Logo oficial incorporado desde biblioteca. */
header .wp-block-site-logo img{width:120px;height:auto;}
@media(max-width:600px){header .wp-block-site-logo img{width:95px;}}

header .has-accent-5-background-color{background:#fff!important} .wp-block-site-logo img{object-fit:contain;}

header .wp-block-site-logo img{width:160px;} @media(max-width:600px){header .wp-block-site-logo img{width:110px;}}

header .wp-block-site-logo img{width:110px;border-radius:50%;} @media(max-width:600px){header .wp-block-site-logo img{width:85px;}}
.altos-hero h1,.altos-hero p{color:#fff;}

header .wp-block-site-logo img{width:100px;height:100px;object-fit:cover;object-position:center;border-radius:50%;} @media(max-width:600px){header .wp-block-site-logo img{width:80px;height:80px;}}

/* Fotos del cliente: evitar panorámicas demasiado ampliadas y tiras verticales. */
main > .wp-block-post-featured-image.alignfull{max-width:1120px;margin-left:auto!important;margin-right:auto!important;border-radius:10px;overflow:hidden;}
main > .wp-block-post-featured-image img{object-position:50% 60%;}
.wp-block-gallery.has-nested-images figure.wp-block-image{aspect-ratio:4/3;flex-grow:0!important;}
.wp-block-gallery.has-nested-images figure.wp-block-image a{display:block;width:100%;height:100%;}
.wp-block-gallery.has-nested-images figure.wp-block-image img{width:100%!important;height:100%!important;object-fit:cover;aspect-ratio:4/3;}
.tr-card__foto img,.wp-block-gallery img,.wp-block-post-featured-image img{filter:brightness(1.04) saturate(1.06);}
@media(max-width:600px){main > .wp-block-post-featured-image.alignfull{height:300px!important;}}

.punta-hero{position:relative;isolation:isolate;min-height:550px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:white;text-align:center;background:#17374c;}
.punta-hero>img,.punta-hero>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;}.punta-hero>video{opacity:0;}.punta-hero.is-playing>video{opacity:1;}.punta-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0e293bd9,#102c3c65);z-index:-1;}.punta-hero__content{max-width:1000px;padding:4rem 1.5rem;}.punta-hero h1{color:white;font-size:clamp(2.7rem,5vw,4.7rem);line-height:1.1;}.punta-hero p{color:white;font-size:1.25rem;}.punta-hero__buttons{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;}.punta-hero__buttons a{display:inline-block;padding:1rem 1.5rem;border-radius:5px;background:white;color:#174966;text-decoration:none;font-weight:600;}.punta-hero__buttons a:first-child{background:#075E54;color:white;}.punta-hero button{position:absolute;right:5.5rem;bottom:1rem;border:1px solid white;background:#0008;color:white;padding:.6rem 1rem;border-radius:5px;cursor:pointer;}.punta-hero button:focus-visible{outline:3px solid white;}.punta-hero button[hidden]{display:none;}header .wp-block-site-title a{text-decoration:none;color:#174966;font-weight:700;}@media(max-width:640px){.punta-hero{min-height:570px;}header .wp-block-site-title{max-width:190px;}.wp-block-gallery.has-nested-images figure.wp-block-image{width:calc(50% - .5rem)!important;}}@media(prefers-reduced-motion:reduce){.punta-hero video{display:none;}}

/* Logo original, sin deformación ni recorte circular. */
header .wp-block-site-logo img{width:160px!important;height:auto!important;object-fit:contain;border-radius:0;}@media(max-width:600px){header .wp-block-site-logo img{width:120px!important;height:auto!important;}}
