/*
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%; }

.frontera-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;}
.frontera-hero__poster,.frontera-hero__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;}
.frontera-hero__video{opacity:0;object-position:50% 50%;}
.frontera-hero.is-playing .frontera-hero__video{opacity:1;}
.frontera-hero:after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.48);z-index:-1;}
.frontera-hero__content{max-width:980px;padding:4rem 1.5rem;}
.frontera-hero h1{font-size:clamp(2.5rem,5vw,4.5rem);line-height:1.1;color:#fff;}
.frontera-hero__content>p{font-size:clamp(1.2rem,2vw,1.5rem);max-width:850px;margin:1.5rem auto;}
.frontera-hero__buttons .wp-element-button{display:inline-block;background:#fff;color:#21402b;padding:1rem 1.5rem;}
.frontera-video-toggle{position:absolute;right:1rem;bottom:1rem;border:1px solid #fff;border-radius:6px;background:#0009;color:white;padding:.6rem 1rem;cursor:pointer;}
.frontera-video-toggle[hidden]{display:none;}

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

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

.frontera-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;}}
