/* ===== Encabezado azul (igual al actual) ===== */
.site-header {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	transition: background-color 0.35s ease;
}
/* Fijo arriba: se aplica al contenedor de la parte de plantilla para que funcione */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:first-child {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}
/* Al bajar por la página: fondo oscuro transparente */
/* Al bajar: oscuro transparente y nítido (sin desenfoque) */
.site-header.is-scrolled {
	background-color: rgba(10, 10, 20, 0.5);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.site-header.is-scrolled .site-nav a { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.site-header.is-scrolled .site-header__inner { min-height: 64px; }
.site-header__inner { transition: min-height 0.35s ease; }
.site-header__inner {
	width: min(80%, 1520px);
	margin-inline: auto;
	min-height: 80px;
	gap: 2rem;
}
.site-header .wp-block-site-logo img { height: auto; max-width: 270px; }
.site-nav { font-size: calc(1.125rem - 2px); font-weight: 600; gap: 2rem; }
.site-nav a { color: var(--wp--preset--color--white); text-decoration: none; }
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav [aria-current="page"] { color: var(--wp--preset--color--gold); }
.site-nav a:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 4px; }
.site-nav .wp-block-navigation__responsive-container-open svg { fill: var(--wp--preset--color--white); width: 32px; height: 32px; }

@media (max-width: 781px) {
	.site-header__inner { width: 90%; min-height: 72px; }
	.site-header .wp-block-site-logo img { max-width: 230px; }
	.site-nav .wp-block-navigation__responsive-container.is-menu-open { font-size: 1.375rem; }
}

/* ===== Portada ===== */
/* La portada siempre ocupa todo el ancho de la pantalla, sin importar el contenedor */
body { overflow-x: clip; }
.wp-site-blocks > main { margin-block-start: 0; }
.hero.wp-block-cover {
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	margin-top: 0 !important;
}
.hero.wp-block-cover {
	min-height: 620px !important;
	height: 620px;
	padding-top: 40px;
}
.hero .wp-block-cover__inner-container { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 5vw; box-sizing: border-box; }
.hero__title,
.hero__subtitle {
	color: var(--wp--preset--color--white);
	text-shadow: 0.06em 0.06em 0.12em rgba(0, 0, 0, 0.55);
	margin: 0;
}
.hero__title {
	font-size: var(--wp--preset--font-size--hero);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.05;
}
.hero__subtitle {
	font-size: clamp(1.5rem, 2.6vw, 2.75rem);
	font-weight: 600;
	margin-top: 0.6em;
}

/* ===== Tours ===== */
.tours-section { padding-block: 0 2rem; }
/* 25 px entre la portada y el título de abajo */
.hero.wp-block-cover + * { margin-top: 25px !important; }
.tours-section > .section-title:first-child { margin-top: 0; }
/* Tours a casi todo el ancho de la pantalla en PC */
/* Columna principal: 80% de la pantalla, máximo 1280 px */
.is-layout-constrained > .tours-section,
.is-layout-constrained > .tours-section.alignwide,
.is-layout-constrained > .intro-section {
	width: 80vw;
	max-width: 1280px;
	margin-left: auto !important;
	margin-right: auto !important;
}
@media (max-width: 980px) {
	.is-layout-constrained > .tours-section,
	.is-layout-constrained > .tours-section.alignwide,
	.is-layout-constrained > .intro-section { width: 100%; }
}
@media (min-width: 1200px) {
	.tours-grid { gap: 2.5rem; }
	.tour-card__title { font-size: 1.25rem; }
}
.section-title { margin-bottom: 2.5rem; }
.tours-grid { gap: 2rem; margin-bottom: 2rem; }
.tour-card,
.tours-grid > .wp-block-column {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--white);
	border: 1px solid #CFCFD6;
	box-shadow: 0 6px 18px rgba(3, 0, 117, 0.16), 0 1px 3px rgba(0, 0, 0, 0.10);
}
.tour-card__img { margin: 0 !important; }
/* Sin espacio entre la foto y la barra azul */
.tour-card > *,
.tours-grid > .wp-block-column > * { margin-block: 0 !important; }
.tour-card__img img { display: block; vertical-align: top; width: 100%; background: var(--wp--preset--color--mist); }
.tour-card .tour-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0;
	gap: 0;
}
.tour-card .tour-card__body > * { margin: 0 !important; }
/* Barra azul con el nombre del tour */
.tour-card .tour-card__title {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	font-size: calc(1.1rem - 2px);
	font-weight: 700;
	line-height: 1.35;
	padding: 0.7rem 1.1rem;
}
.tour-card .tour-card__title { text-transform: uppercase; }
.tour-card__kind { font-weight: 700; text-transform: none; }
/* Barra celeste con el precio */
.tour-card .tour-card__price {
	background: var(--wp--preset--color--sky);
	color: var(--wp--preset--color--white);
	font-size: 1.1rem;
	font-weight: 700;
	padding: 0.7rem 1.1rem;
}
.tour-card .tour-card__route {
	padding: 1.1rem 1.6rem;
	color: #555;
	border-bottom: 1px solid #E5E5E5;
}
.tour-card .tour-card__details { list-style: none; padding: 0; font-size: 0.95rem; color: #555; }
.tour-card__details li {
	position: relative;
	padding: 0.7rem 1.6rem 0.7rem 3.6rem;
	border-bottom: 1px solid #E5E5E5;
}
.tour-card__details li::before {
	content: "";
	position: absolute;
	left: 1.6rem;
	top: 0.85rem;
	width: 1.1rem;
	height: 1.1rem;
	background: var(--wp--preset--color--sky);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12M6 22h12M7 2v4l5 6-5 6v4M17 2v4l-5 6 5 6v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12M6 22h12M7 2v4l5 6-5 6v4M17 2v4l-5 6 5 6v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tour-card__details li:nth-child(2)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E"); }
.tour-card__details li:nth-child(3)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.tour-card .tour-card__cta { margin-top: auto; padding: 1.2rem 1.6rem 1.5rem; justify-content: center; }
/* Botones: celeste, naranja al pasar o hacer clic, texto siempre blanco */
.wp-block-button__link,
.wp-block-button__link:visited { color: #FFF; transition: background-color 0.2s ease; }
.wp-block-button__link { background-color: var(--wp--preset--color--navy); }
.wp-block-button__link:hover,
.wp-block-button__link:active,
.wp-block-button__link:focus { background-color: var(--wp--preset--color--sky); color: #FFF; }

/* ===== Texto sobre Trujillo ===== */
.intro-section { padding-block: 2rem 2rem; }
/* Menos espacio antes del pie de página */
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child { margin-block-start: 0 !important; }
.wp-block-post-content > :last-child { margin-bottom: 0 !important; }
.intro-section > :last-child { margin-bottom: 0 !important; }
/* El texto usa todo el ancho de la columna */
.intro-section > *,
.intro-section p { max-width: 100% !important; }
.intro-section .wp-block-media-text__content { padding-inline: 0 0; }
.intro-section .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { padding-inline: 0 2.5rem; }
.intro-section .wp-block-media-text:not(.has-media-on-the-right) .wp-block-media-text__content { padding-inline: 2.5rem 0; }
/* 150 px a cada lado del texto en PC */
@media (min-width: 981px) {
	.intro-section > p,
	.intro-section > h2,
	.intro-section > h3,
	.intro-section > ul,
	.intro-section > ol { padding-inline: 150px; }
}
@media (min-width: 601px) and (max-width: 980px) {
	.intro-section > p,
	.intro-section > h2,
	.intro-section > h3,
	.intro-section > ul,
	.intro-section > ol { padding-inline: 40px; }
}
/* Separación entre el título y el primer párrafo */
.wp-block-post-content h2 + p,
.wp-block-post-content h3 + p,
.wp-block-media-text__content h2 + p { margin-top: 0.6rem !important; }
.intro-section h2 { margin-bottom: 0; }
@media (max-width: 600px) {
	.intro-section .wp-block-media-text .wp-block-media-text__content { padding: 1.25rem 0 0; }
}

/* ===== Páginas internas ===== */
.page-main { padding-block: 3rem 4rem; }

/* ===== Pie de página ===== */
.site-footer {
	background: var(--wp--preset--color--navy);
	color: #D9D9EE;
	padding-block: 1.75rem 0.9rem;
	font-size: 0.95rem;
}
.site-footer h3 { color: var(--wp--preset--color--gold); font-size: 1.05rem; margin-top: 0; margin-bottom: 0.5rem; }
.site-footer > :first-child { margin-top: 0 !important; }
.site-footer,
.site-footer p,
.site-footer li,
.site-footer a { font-weight: 600; }
.site-footer ul.wp-block-list { list-style: none; padding: 0; margin: 0; line-height: 2; }
.site-footer a,
.site-footer a:hover,
.site-footer a:focus,
.site-footer a:active,
.site-footer a:visited { color: var(--wp--preset--color--white); text-decoration: none; }
.site-footer__cols { margin-bottom: 0 !important; }
.site-footer a:hover { color: var(--wp--preset--color--gold); }
.site-footer .wp-block-social-links { margin-top: 1.25rem; }
.site-footer .wp-social-link { color: var(--wp--preset--color--white); }
.site-footer__legal {
	border-top: 2px solid #FFFFFF;
	padding-top: 1.25rem;
	margin-top: 1.25rem !important;
	font-size: 1.05rem;
	text-align: left;
}
.site-footer .site-footer__legal { margin-bottom: 0 !important; }
.site-footer__legal strong { color: var(--wp--preset--color--gold); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}

/* ===== Páginas con barra lateral y blog ===== */
.layout-sidebar {
	width: 80vw;
	max-width: 1280px;
	margin-inline: auto;
	padding-block: 2.5rem 2rem;
}
.layout-sidebar__cols { gap: 3rem; align-items: flex-start !important; }
.layout-sidebar__main > :first-child { margin-top: 0; }
.layout-sidebar__main h1 { margin-bottom: 0.5rem; }
.layout-sidebar__main > .wp-block-post-content,
.page-main > .wp-block-post-content { margin-top: 0.75rem !important; }
.wp-block-post-content > :first-child { margin-top: 0 !important; }
.layout-sidebar .entry-image { margin-block: 0 1.5rem; }
.layout-sidebar .entry-image img { width: 100%; height: auto; }
.entry-meta { font-size: 0.9rem; color: #666; gap: 0.5rem 1.25rem; margin-bottom: 1.25rem; }
.entry-meta a { color: var(--wp--preset--color--sky); text-decoration: none; }


@media (max-width: 980px) {
	.layout-sidebar { width: auto; padding-inline: 5vw; }
}

/* Barra lateral: recuadro redondeado con borde azul luminoso */
.sidebar-nav {
	border: 1px solid #E2CDAE;
	border-radius: 8px;
	background-color: var(--wp--preset--color--beige);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.03' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.78  0 0 0 0 0.60  0 0 0 0 0.38  0 0 0 0.30 0'/%3E%3C/filter%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.32  0 0 0 0 0.16  0 0 0 0.42 0'/%3E%3C/filter%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='1' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.40  0 0 0 0 0.28  0 0 0 0 0.14  0 0 0 1 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 0 0 0 0 0.55'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23m)'/%3E%3Crect width='100%' height='100%' filter='url(%23f)'/%3E%3Crect width='100%' height='100%' filter='url(%23s)'/%3E%3C/svg%3E");
	background-size: 240px 240px;
	padding: 1.4rem 1.6rem 1.8rem;
}
.sidebar-nav > * { margin: 0 !important; }
.sidebar-nav .sidebar-nav__title {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--terracotta);
	font-size: calc(1.4rem - 2px);
	font-weight: 400;
	/* Marcellus solo trae un grosor: engrosamos el trazo como un semibold */
	-webkit-text-stroke: 0.45px currentColor;
	paint-order: stroke fill;
	font-synthesis: none;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.25;
	margin-top: 1.5rem !important;
	margin-bottom: 0.6rem !important;
}
.sidebar-nav > .sidebar-nav__title:first-child { margin-top: 0 !important; }
.sidebar-nav__img { margin-bottom: 16px !important; }
.sidebar-nav__img img { display: block; width: 100%; height: auto; }
.sidebar-nav__img:not(:has(img[src])) { display: none; }
.sidebar-nav__list { list-style: none; padding: 0; margin: 0; font-size: 1.1rem; line-height: 1.75; }
.sidebar-nav__list a,
.sidebar-posts a { color: var(--wp--preset--color--ink); text-decoration: none; }
.sidebar-nav__list a:hover,
.sidebar-posts a:hover { color: var(--wp--preset--color--sky); }
.sidebar-posts .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.sidebar-posts .wp-block-post { padding-block: 0.45rem; }
.sidebar-posts .wp-block-post > * { margin: 0 !important; }
.sidebar-nav .sidebar-post__title { font-size: 1.05rem; font-weight: 400; line-height: 1.4; }
.sidebar-post__date { font-size: 0.8rem; color: #777; }
.sidebar-posts > p { margin: 0; color: #666; }
.sidebar-nav__list .is-current a { color: var(--wp--preset--color--navy); font-weight: 700; }

/* Contenido principal de las páginas de información */
.layout-sidebar__main h1 { font-size: clamp(1.6rem, 2.2vw, 2rem); }
.layout-sidebar .entry-image img,
.layout-sidebar__main .wp-block-image img { border-radius: 10px; }
.layout-sidebar__main .wp-block-post-content h2 { font-size: 1.3rem; margin-top: 2rem; }

/* Lista del blog */
.blog-list .wp-block-post-template { gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.blog-item > * { margin-block: 0 0.6rem !important; }
.blog-item__img { margin-bottom: 1rem !important; }
.blog-item__title a { text-decoration: none; }
.blog-item__date { font-size: 0.85rem; color: #777; }
.blog-list .wp-block-query-pagination { margin-top: 2.5rem; }

/* Videos de YouTube pegados con código: siempre a todo el ancho, en proporción 16:9 */
.wp-block-post-content iframe[src*="youtube.com"],
.wp-block-post-content iframe[src*="youtube-nocookie.com"],
.wp-block-post-content iframe[src*="youtu.be"] {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 10px;
}

/* Anuncio de AdSense al final de las páginas de información.
   Reserva el espacio para que el texto no "salte" cuando carga el anuncio. */
.anuncio-final {
	margin-top: 2.5rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid #E5E5E5;
	min-height: 280px;
	text-align: center;
}
.anuncio-final ins.adsbygoogle { display: block; width: 100%; }


/* ===== Página de contacto ===== */
.contacto { gap: 2.5rem; margin-top: 0.5rem; }
.contacto .contacto__title { font-size: 1.6rem; margin: 0 0 0.4rem; }
.contacto__form > p { margin-top: 0 !important; color: #555; }

/* Formulario (Contact Form 7) */
.wpcf7-form label { display: block; font-weight: 600; color: var(--wp--preset--color--navy); font-size: 0.95rem; }
.wpcf7-form p { margin: 0 0 1.1rem; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.35rem;
	padding: 0.75rem 0.9rem;
	font: inherit;
	font-weight: 400;
	color: var(--wp--preset--color--ink);
	background: #FFF;
	border: 1px solid #CFCFD6;
	border-radius: 4px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wpcf7-form textarea { min-height: 160px; resize: vertical; }
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--sky);
	box-shadow: 0 0 0 3px rgba(12, 113, 195, 0.18);
}
.wpcf7-form .wpcf7-submit {
	background: var(--wp--preset--color--navy);
	color: #FFF;
	border: 0;
	border-radius: 3px;
	padding: 0.8em 2.2em;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form .wpcf7-submit:focus,
.wpcf7-form .wpcf7-submit:active { background: var(--wp--preset--color--sky); }
.wpcf7-form .wpcf7-response-output { margin: 1rem 0 0 !important; border-radius: 4px; }
.wpcf7-not-valid-tip { font-size: 0.85rem; margin-top: 0.3rem; }
@media (min-width: 700px) {
	.wpcf7-form .fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
}

/* Tarjetas de datos de contacto: cajas azules con texto blanco, en una fila debajo del formulario */
.contacto { flex-wrap: wrap !important; }
.contacto > .contacto__form,
.contacto > .contacto__info { flex-basis: 100% !important; }
.contacto__info {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
@media (max-width: 781px) { .contacto__info { grid-template-columns: 1fr; } }
.contacto__info > * { margin: 0 !important; }
.contacto-card {
	position: relative;
	background: var(--wp--preset--color--navy);
	color: #FFF;
	border: 0;
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(3, 0, 117, 0.25);
	padding: 5.2rem 1.5rem 2.2rem;
	text-align: center;
}
.contacto-card > * { margin: 0 !important; }
.contacto .contacto-card h3 { color: #FFF; font-size: 1.15rem; font-weight: 600; margin-bottom: 0.7rem !important; }
.contacto-card p,
.contacto-card a { color: #FFF; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.contacto-card a:hover { color: var(--wp--preset--color--gold); }
.contacto-card::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 1.8rem;
	width: 2.4rem;
	height: 2.4rem;
	transform: translateX(-50%);
	background: #FFF;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.contacto-card--mail::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.contacto-card--whatsapp::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 0 1-11.8 7L4 20l1.1-4A8 8 0 1 1 20 12z'/%3E%3Cpath d='M9 9.5c0 3 2.5 5.5 5.5 5.5l1-1.5-2-1-1 .8a4 4 0 0 1-2-2l.8-1-1-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 0 1-11.8 7L4 20l1.1-4A8 8 0 1 1 20 12z'/%3E%3Cpath d='M9 9.5c0 3 2.5 5.5 5.5 5.5l1-1.5-2-1-1 .8a4 4 0 0 1-2-2l.8-1-1-2z'/%3E%3C/svg%3E"); }
/* Botón dentro de la caja azul: contorno blanco para que se vea */
.contacto-card .wp-block-buttons { margin-top: 1rem !important; justify-content: center; }
.contacto-card .wp-block-button__link { background: transparent; border: 2px solid #FFF; color: #FFF; }
.contacto-card .wp-block-button__link:hover,
.contacto-card .wp-block-button__link:active,
.contacto-card .wp-block-button__link:focus { background: var(--wp--preset--color--sky); border-color: var(--wp--preset--color--sky); }

/* Ubícanos */
.ubicanos { margin-top: 3rem !important; }
.ubicanos > * { margin-block: 0 0.8rem !important; }
.mapa iframe {
	display: block;
	width: 100%;
	height: 400px;
	border: 0;
	border-radius: 10px;
}
@media (max-width: 781px) { .mapa iframe { height: 300px; } }

/* ===== Contacto: franja celeste con título a la izquierda y formulario blanco a la derecha ===== */
.page-main:has(.contacto) { padding-top: 0; }
.page-main:has(.contacto) > .wp-block-post-title { display: none; }
.contacto { margin-top: 0 !important; }
.contacto > .contacto__form {
	flex: 0 0 100vw !important;
	max-width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	box-sizing: border-box;
	padding: 4rem max(5vw, calc((100vw - 1280px) / 2));
	background: linear-gradient(135deg, #5DA2D8 0%, var(--wp--preset--color--sky) 100%);
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
	column-gap: 4rem;
	align-items: start;
}
.contacto__form > * { margin: 0 !important; }
.contacto .contacto__form > .contacto__title {
	grid-column: 1;
	grid-row: 1;
	color: #FFF;
	font-size: clamp(2.4rem, 4vw, 3.6rem);
	line-height: 1.1;
	margin-top: 0.5rem !important;
}
.contacto__form > p:not(:has(.wpcf7)) {
	grid-column: 1;
	grid-row: 2;
	color: #FFF !important;
	font-size: 1.1rem;
	margin-top: 1rem !important;
}
.contacto__form > .wpcf7,
.contacto__form > p:has(.wpcf7) {
	grid-column: 2;
	grid-row: 1 / span 3;
	background: #FFF;
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(3, 0, 117, 0.22);
	padding: 2.5rem 2.5rem 2rem;
}
@media (max-width: 900px) {
	.contacto > .contacto__form {
		grid-template-columns: 1fr;
		padding: 2.5rem 5vw;
		row-gap: 1.2rem;
	}
	.contacto__form > .wpcf7,
	.contacto__form > p:has(.wpcf7) { grid-column: 1; grid-row: auto; padding: 1.75rem 1.4rem; }
}

/* ===== Páginas internas con portada (por ejemplo Tours) ===== */
.page-main:has(> .wp-block-post-content > .hero:first-child) { padding-top: 0; }
.page-main:has(> .wp-block-post-content > .hero:first-child) > .wp-block-post-title { display: none; }

/* Servicio adicional (traslados): caja azul debajo de los tours */
.servicio-extra {
	margin-top: 2.5rem !important;
	background: var(--wp--preset--color--navy);
	color: #FFF;
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(3, 0, 117, 0.25);
	padding: 1.8rem 2.2rem;
	gap: 1.2rem 2rem;
}
.servicio-extra__text > * { margin: 0 !important; }
.servicio-extra h3 { color: var(--wp--preset--color--gold); font-size: 1.3rem; margin-bottom: 0.4rem !important; }
.servicio-extra p { color: #FFF; }
.servicio-extra .wp-block-button__link { background: transparent; border: 2px solid #FFF; color: #FFF; }
.servicio-extra .wp-block-button__link:hover,
.servicio-extra .wp-block-button__link:active,
.servicio-extra .wp-block-button__link:focus { background: var(--wp--preset--color--sky); border-color: var(--wp--preset--color--sky); }

/* ===== Página completa con título: contenido al 80 % de la pantalla, máximo 1280 px ===== */
.page-texto { padding-block: 3rem 4rem; }
.page-texto > .wp-block-post-title,
.page-texto > .wp-block-post-featured-image,
.page-texto > .wp-block-post-content > :not(.alignfull):not(.hero) {
	width: 80vw;
	max-width: 1280px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
@media (max-width: 980px) {
	.page-texto > .wp-block-post-title,
.page-texto > .wp-block-post-featured-image,
	.page-texto > .wp-block-post-content > :not(.alignfull):not(.hero) { width: 100%; }
}
.page-texto > .wp-block-post-title { margin-bottom: 0.75rem; }
.page-texto .wp-block-post-content p { font-size: 1.05rem; line-height: 1.8; }
.page-texto:has(> .wp-block-post-content > .hero:first-child) { padding-top: 0; }
.page-texto:has(> .wp-block-post-content > .hero:first-child) > .wp-block-post-title { display: none; }

/* Página completa con título: 150 px de espacio a cada lado del contenido en PC */
.page-texto > .wp-block-post-title,
.page-texto > .wp-block-post-featured-image,
.page-texto > .wp-block-post-content > :not(.alignfull):not(.hero) { box-sizing: border-box; }
@media (min-width: 981px) {
	.page-texto > .wp-block-post-title,
.page-texto > .wp-block-post-featured-image,
	.page-texto > .wp-block-post-content > :not(.alignfull):not(.hero) { padding-inline: 200px; }
}
@media (min-width: 601px) and (max-width: 980px) {
	.page-texto > .wp-block-post-title,
.page-texto > .wp-block-post-featured-image,
	.page-texto > .wp-block-post-content > :not(.alignfull):not(.hero) { padding-inline: 40px; }
}

/* Imagen destacada en la página completa con título */
.page-texto > .wp-block-post-featured-image { margin-top: 0.5rem !important; margin-bottom: 1.5rem !important; }
.page-texto > .wp-block-post-featured-image img { display: block; width: 100%; height: auto; border-radius: 10px; }
.page-texto:has(> .wp-block-post-content > .hero:first-child) > .wp-block-post-featured-image { display: none; }

/* ===== Tours en inglés: excursión desde Salaverry y tablas de cruceros ===== */
.tours-section .section-title { margin-top: 3.5rem; }
.tours-section > .section-title:first-child { margin-top: 0; }
.shore-box {
	max-width: 760px;
	margin-inline: auto !important;
	background: var(--wp--preset--color--navy);
	color: #FFF;
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(3, 0, 117, 0.25);
	padding: 2rem 2.2rem;
}
.shore-box > * { margin-block: 0 0.7rem !important; }
.shore-box h3 { color: var(--wp--preset--color--gold); font-size: 1.4rem; text-transform: uppercase; }
.shore-box p, .shore-box li { color: #FFF; }
.shore-box ul { padding-left: 1.2em; }
.shore-box .shore-box__price { font-size: 1.3rem; font-weight: 700; color: var(--wp--preset--color--gold); margin-top: 1rem !important; }
.shore-box .wp-block-button__link { background: transparent; border: 2px solid #FFF; color: #FFF; }
.shore-box .wp-block-button__link:hover,
.shore-box .wp-block-button__link:active,
.shore-box .wp-block-button__link:focus { background: var(--wp--preset--color--sky); border-color: var(--wp--preset--color--sky); }
.services-intro { max-width: 860px; margin-inline: auto !important; text-align: center; }
.tours-section .cruise-year { text-align: center; margin-top: 3.5rem !important; font-size: var(--wp--preset--font-size--x-large); }

.cruise-table {
	overflow-x: auto;
	margin-top: 1rem !important;
	background: #FFF;
	box-shadow: 0 6px 22px rgba(3, 0, 117, 0.55);
	padding: 1.8rem 2.2rem;
}
.cruise-table table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 1rem; }
.cruise-table thead th {
	background: transparent;
	color: var(--wp--preset--color--navy);
	text-align: left;
	padding: 0.4rem 0.8rem 0.6rem;
	border: 0;
	font-weight: 700;
}
.cruise-table td { padding: 0.55rem 0.8rem; border: 0; border-top: 1px solid #ECECF2; vertical-align: top; }
.cruise-table tbody tr:first-child td { border-top: 0; }
.cruise-table td:first-child { font-weight: 600; color: var(--wp--preset--color--ink); }
.cruise-table a { color: var(--wp--preset--color--sky); font-weight: 700; text-decoration: none; white-space: nowrap; }
.cruise-table a:hover { color: var(--wp--preset--color--navy); }
.cruise-table em { color: #888; }

/* Caja de "Shore Excursion Services" */
.services-box,
.wp-block-group:has(> .services-intro) {
	background: #FFF;
	box-shadow: 0 6px 22px rgba(3, 0, 117, 0.55);
	padding: 2.2rem 3rem 1.8rem; /* 3rem = mismo espacio lateral que el texto de las tablas (caja 2.2rem + celda 0.8rem) */
	margin-top: 3.5rem !important;
}
.services-box > *,
.wp-block-group:has(> .services-intro) > * { margin-block: 0 1rem !important; }
.services-box > .section-title,
.wp-block-group:has(> .services-intro) > .section-title { margin-top: 0 !important; }
.services-box .services-intro,
.wp-block-group:has(> .services-intro) > .services-intro,
.wp-block-group:has(> .services-intro) > p {
	max-width: none !important;
	width: auto;
	text-align: left !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
@media (max-width: 600px) {
	.cruise-table, .services-box { padding: 1.4rem 1.2rem; }
}

/* ===== Excursión con video: franja gris a la izquierda, azul a la derecha y el video montado sobre el azul ===== */
.shore-feature {
	width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	margin-top: 1.5rem !important;
	background: linear-gradient(90deg, #F4F5F8 0 50%, var(--wp--preset--color--navy) 50% 100%);
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	padding-inline: max(5vw, calc((100vw - 1280px) / 2));
	box-sizing: border-box;
}
.shore-feature > * { margin: 0 !important; }
.shore-feature__media {
	position: relative;
	z-index: 2;
	padding-block: 3rem;
	margin-right: -14% !important;
	text-align: center;
}
.shore-feature__media > * { margin-block: 0 1.5rem !important; }
.shore-feature .shore-feature__title {
	color: var(--wp--preset--color--navy);
	text-transform: uppercase;
	font-size: 24px;
	letter-spacing: 0.02em;
}
.shore-feature__video { margin: 0 !important; }
.shore-feature__video iframe { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35); border-radius: 0 !important; }
.shore-feature .shore-box {
	max-width: none;
	margin: 0 !important;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	padding: 3.5rem 0 3.5rem calc(14% + 4rem);
}
.shore-feature .shore-box h3 { font-size: 24px; }
.shore-feature .shore-box h3::after {
	content: "";
	display: block;
	width: 120px;
	height: 3px;
	background: #FFF;
	margin-top: 1.4rem;
}
.shore-feature .shore-box p,
.shore-feature .shore-box li { font-size: 1.1rem; line-height: 1.7; }
@media (max-width: 900px) {
	.shore-feature { grid-template-columns: 1fr; background: #F4F5F8; padding-inline: 0; }
	.shore-feature__media { margin-right: 0 !important; padding: 2rem 5vw 1.5rem; }
	.shore-feature .shore-box { background: var(--wp--preset--color--navy); padding: 2.5rem 5vw; }
}

/* Textos más negros dentro de las cajas de servicios y cruceros */
.services-box .services-intro,
.cruise-table td,
.cruise-table td:first-child { color: #111 !important; }
.cruise-table em { color: #555; }

/* ===== Página de excursiones desde cruceros ===== */
.hero .hero__cta { margin-top: 1.8rem !important; }
.hero .hero__cta .wp-block-button__link { font-size: 1.05rem; padding: 0.8em 2.4em; }
html { scroll-behavior: smooth; }
#excursions { scroll-margin-top: 90px; }
.excursions-list { margin-top: 3.5rem !important; }
/* Puerto de salida: barra celeste encima de la foto */
.tour-card:has(.tour-card__port) { position: relative; padding-top: 3.4rem; }
.tour-card .tour-card__port {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3.4rem;
	display: flex;
	align-items: center;
	margin: 0 !important;
	padding: 0 1.1rem;
	background: var(--wp--preset--color--sky);
	color: #FFF;
	font-size: calc(1.1rem - 2px);
	font-weight: 700;
	text-transform: uppercase;
}

/* Espacio debajo de cualquier foto de la barra lateral (aunque la imagen no tenga la clase del tema) */
.sidebar-nav .wp-block-image,
.sidebar-nav figure { margin-bottom: 16px !important; }

/* Jerarquía clara de títulos dentro del texto de las páginas: H2 > H3 > H4 */
.wp-block-post-content :where(h2:not(.section-title, .contacto__title)) { font-size: 24px; }
.wp-block-post-content :where(h3) { font-size: 21px; }
.wp-block-post-content :where(h4) { font-size: 18px; }
.layout-sidebar__main .wp-block-post-content h2 { font-size: 24px; }

/* Menos espacio debajo de los H4 (el texto queda pegado a su subtítulo) */
.wp-block-post-content h4 { margin-bottom: 0 !important; }
.wp-block-post-content h4 + * { margin-top: 8px !important; }

/* Menos espacio entre un párrafo (o lista) y el título que le sigue */
.wp-block-post-content :is(p, ul, ol) + :is(h2, h3, h4) { margin-top: 24px !important; }
