/* ==========================================================
   Rutteros del Sur · tema
   Marca: negro y verde (RGB 50 65 50). Acento naranja de la cinta
   de fechas del proyecto. New June Bold para menú, botones y
   etiquetas; Big Shoulders para títulos; Archivo para textos.
   ========================================================== */
:root {
	--rs-green: #324132;
	--rs-green-dark: #1c241c;
	--rs-green-soft: #e4e9e2;
	--rs-black: #000;
	--rs-ink: #141614;
	--rs-muted: #5d635b;
	--rs-line: #dcd8cd;
	--rs-paper: #f4f3ee;
	--rs-orange: #c9461d;
	--rs-orange-dark: #a63815;
	--rs-f-ui: "New June", "Archivo", "Helvetica Neue", Arial, sans-serif;
	--rs-f-title: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
	--rs-f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--rs-header-h: 104px;
	--rs-admin-h: 0px;
	--rds-sticky-top: calc(var(--rs-header-h) + var(--rs-admin-h) + 8px);
	color-scheme: light;
}
.admin-bar { --rs-admin-h: 32px; }
@media (max-width: 782px) { .admin-bar { --rs-admin-h: 0px; } }
@media (max-width: 1023px) { :root { --rs-header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--rs-ink); font-family: var(--rs-f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 1001; background: #fff; pointer-events: none; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--rs-orange-dark); }
a:hover { color: var(--rs-orange); }
:focus-visible { outline: 2px solid var(--rs-orange); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; }
.rs-skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--rs-orange); color: #fff; padding: 10px 14px; border-radius: 4px; }
.rs-skip:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.rs-wrap { max-width: 1240px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 768px) { .rs-wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.rs-section { padding-block: 48px 80px; }
.rs-display { font-family: var(--rs-f-title); font-weight: 800; line-height: .95; letter-spacing: .005em; margin: 0; }
.rs-eyebrow { font-family: var(--rs-f-ui); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--rs-orange); margin: 0 0 10px; }
.rs-on-dark { color: #f2c9b8; }

/* Botones */
.rs-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--rs-f-ui); font-weight: 700; font-size: 16px; line-height: 1.2; border-radius: 999px; padding: .85rem 1.6rem; border: 2px solid transparent; text-decoration: none; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; cursor: pointer; }
.rs-btn-primary { background: var(--rs-orange); color: #fff; }
.rs-btn-primary:hover { background: var(--rs-orange-dark); color: #fff; }
.rs-btn-line-light { border-color: #fff; color: #fff; }
.rs-btn-line-light:hover { background: #fff; color: var(--rs-green); }

/* ---------- Cabecera ---------- */
.rs-header { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--rs-admin-h)); z-index: 1000; background: #fff; transition: box-shadow .25s; }
.rs-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .35); }
.rs-header-in { height: var(--rs-header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rs-brand { flex: none; display: flex; align-items: center; height: 100%; }
.rs-logo, .custom-logo-link { display: block; line-height: 0; }
.rs-logo img, .custom-logo-link img { height: calc(var(--rs-header-h) - 18px); width: auto; max-width: none; display: block; }
.rs-nav { display: none; }
@media (min-width: 1024px) { .rs-nav { display: block; } }
.rs-nav .rs-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 2.6vw, 40px); }
.rs-nav .rs-menu > li { position: relative; }
.rs-nav .rs-menu > li > a { display: block; padding: 10px 0; color: var(--rs-black); text-decoration: none; font-family: var(--rs-f-ui); font-weight: 700; font-size: 17px; transition: color .2s; }
.rs-nav .rs-menu > li > a:hover { color: var(--rs-orange); }
.rs-nav .current-menu-item > a, .rs-nav .current-menu-ancestor > a, .rs-nav .current_page_item > a { color: var(--rs-orange) !important; }
.rs-nav .sub-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 240px; list-style: none; margin: 0; padding: 8px 0; background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .3); }
.rs-nav li:hover > .sub-menu, .rs-nav li:focus-within > .sub-menu { display: block; }
.rs-nav .sub-menu a { display: block; padding: 8px 16px; color: var(--rs-ink); text-decoration: none; font-family: var(--rs-f-ui); font-weight: 700; font-size: 15px; }
.rs-burger, .rs-drawer-close { background: transparent; border: 0; color: var(--rs-black); padding: 8px; margin-right: -4px; cursor: pointer; display: grid; place-items: center; }
@media (min-width: 1024px) { .rs-burger { display: none; } }

.rs-drawer { position: fixed; inset: 0; z-index: 1100; background: var(--rs-green); color: #fff; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); overflow-y: auto; }
.rs-drawer[hidden] { display: none; }
.rs-drawer.is-open { animation: rs-fade .25s ease both; }
@keyframes rs-fade { from { opacity: 0; } to { opacity: 1; } }
.rs-drawer-top { height: var(--rs-header-h); display: flex; align-items: center; justify-content: space-between; background: #fff; max-width: none; }
.rs-drawer-top .rs-logo img, .rs-drawer-top .custom-logo-link img { height: 56px; }
.rs-drawer-nav .rs-menu { list-style: none; margin: 32px 0 0; padding: 0; }
.rs-drawer-nav li { padding: 6px 0; }
.rs-drawer-nav a { display: inline-block; font-family: var(--rs-f-ui); font-weight: 700; font-size: 30px; line-height: 1.15; color: #fff; text-decoration: none; }
.rs-drawer-nav .current-menu-item > a, .rs-drawer-nav .current_page_item > a { color: #f2c9b8; }
.rs-drawer-foot { margin-top: auto; padding-block: 24px 32px; color: var(--rs-green-soft); font-size: 15px; }
html.rs-locked { overflow: hidden; }

/* ---------- Bordes de papel rasgado ---------- */
.rds-torn, .rs-torn {
	-webkit-mask: var(--rds-torn-top) top / 100% 22px no-repeat, linear-gradient(#000, #000) center / 100% calc(100% - 40px) no-repeat, var(--rds-torn-bottom) bottom / 100% 22px no-repeat;
	mask: var(--rds-torn-top) top / 100% 22px no-repeat, linear-gradient(#000, #000) center / 100% calc(100% - 40px) no-repeat, var(--rds-torn-bottom) bottom / 100% 22px no-repeat;
}

/* ---------- Portada (secciones de Elementor con clase) ---------- */
.rs-hero-portada { position: relative; }
.rs-hero-texto { border-left: 4px solid #fff; padding-left: 22px; max-width: 600px; }
.rs-hero-texto .elementor-heading-title, .rs-hero-texto p { text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
@media (max-width: 767px) { .rs-hero-texto { border-left-width: 3px; padding-left: 16px; } }
.rs-icon-row .elementor-icon-box-wrapper { align-items: flex-start; }

/* ---------- Páginas sin Elementor (preguntas frecuentes, legales) ---------- */
.rs-page-head { background: var(--rs-green); color: #fff; padding-block: 64px 52px; background-image: repeating-radial-gradient(circle at 85% 15%, transparent 0 26px, rgba(255, 255, 255, .05) 26px 27px); margin-top: 6px; }
.rs-page-head .rs-display { font-size: clamp(40px, 6vw, 72px); max-width: 20ch; color: #fff; }
.rs-content { max-width: 860px; font-size: 17px; }
.rs-content-wide { max-width: none; }
.rs-content h2 { font-family: var(--rs-f-title); font-weight: 800; font-size: 32px; line-height: 1; color: var(--rs-green); margin: 1.8em 0 .5em; }
.rs-content h2:first-child { margin-top: 0; }
.rs-content h3 { font-family: var(--rs-f-ui); font-size: 20px; color: var(--rs-green); margin: 1.4em 0 .5em; }
.rs-content ul, .rs-content ol { padding-left: 1.3em; }
.rs-content li { margin-bottom: .35em; }
.rs-content a { word-break: break-word; }
.rs-featured { margin: 0 0 32px; border-radius: 8px; overflow: hidden; }
.rs-full > .elementor { width: 100%; }
.rs-pending { color: var(--rs-orange); font-style: italic; }
.rs-admin-hint { font-size: 13px; color: var(--rs-muted); border: 1px dashed var(--rs-line); padding: 10px; border-radius: 6px; margin: 0; }

/* Preguntas frecuentes (bloque «Detalles» de WordPress) */
.rs-content .wp-block-details { border-bottom: 1px solid var(--rs-line); padding: 0; margin: 0; }
.rs-content .wp-block-details:first-of-type { border-top: 1px solid var(--rs-line); }
.rs-content .wp-block-details summary { list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0; font-family: var(--rs-f-ui); font-weight: 700; font-size: clamp(18px, 2vw, 21px); color: var(--rs-green); }
.rs-content .wp-block-details summary::-webkit-details-marker { display: none; }
.rs-content .wp-block-details summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--rs-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23324132' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
.rs-content .wp-block-details[open] summary::after { transform: rotate(45deg); }
.rs-content .wp-block-details[open] summary { color: var(--rs-orange-dark); }
.rs-content .wp-block-details > *:not(summary) { margin-top: 0; }
.rs-content .wp-block-details > *:last-child { padding-bottom: 20px; }

/* Ficha de empresa y redes */
.rs-titular { list-style: none; margin: 0 0 1.4em; padding: 20px 24px; border-left: 4px solid var(--rs-green); background: var(--rs-paper, #F4F3EE); border-radius: 0 10px 10px 0; }
.rs-titular li { margin: 0 0 6px; }
.rs-titular li:last-child { margin: 0; }
.rs-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rs-social a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--rs-green); color: #fff; text-decoration: none; font-family: var(--rs-f-ui); font-weight: 700; font-size: 15px; }
.rs-social a:hover { background: var(--rs-green-dark); color: #fff; }

/* ---------- Pie ---------- */
.rs-footer { background: var(--rs-paper); color: var(--rs-ink); margin-top: 0; }
.rs-footer-grid { display: grid; gap: 28px; padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); align-items: center; }
@media (min-width: 900px) { .rs-footer-grid { grid-template-columns: 220px 1fr 180px; gap: 40px; } }
.rs-footer-brand { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 899px) { .rs-footer-brand { align-items: center; text-align: center; } }
.rs-footer-brand .rs-logo img, .rs-footer-brand .custom-logo-link img { height: 92px; width: auto; }
.rs-footer-contact { margin: 0; display: flex; flex-direction: column; font-family: var(--rs-f-ui); font-weight: 700; font-size: 13.5px; }
.rs-footer-contact a { color: var(--rs-ink); text-decoration: none; }
.rs-footer-contact a:hover { color: var(--rs-orange); }
.rs-footer-legal { text-align: center; font-size: 13px; color: var(--rs-muted); }
.rs-footer-legal p { margin: 0 0 6px; }
.rs-footer-company { font-family: var(--rs-f-ui); font-weight: 700; color: var(--rs-ink); font-size: 14px; }
.rs-footer-rights { max-width: 70ch; margin-inline: auto !important; }
.rs-footer-menu { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-family: var(--rs-f-ui); font-weight: 700; font-size: 13px; }
.rs-footer-menu a { color: var(--rs-green); text-decoration: none; }
.rs-footer-menu a:hover { color: var(--rs-orange); }
.rs-footer-social { display: flex; gap: 10px; justify-content: center; }
@media (min-width: 900px) { .rs-footer-social { justify-content: flex-end; } }
.rs-footer-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--rs-green); color: #fff; transition: background .2s; }
.rs-footer-social a:hover { background: var(--rs-orange); color: #fff; }
.rs-footer-social .rs-social-pend { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--rs-green); color: #fff; cursor: default; }
.rds-evento ~ .rs-footer .rs-footer-grid, .rds-booking ~ .rs-footer .rs-footer-grid { padding-bottom: 110px; }
@media (min-width: 1024px) { .rds-evento ~ .rs-footer .rs-footer-grid, .rds-booking ~ .rs-footer .rs-footer-grid { padding-bottom: 40px; } }

/* Listado de entradas */
.rs-posts { display: grid; gap: 24px; }
@media (min-width: 768px) { .rs-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .rs-posts { grid-template-columns: repeat(3, 1fr); } }
.rs-post-card { background: #fff; border: 1px solid var(--rs-line); border-radius: 10px; overflow: hidden; }
.rs-post-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rs-post-body { padding: 20px; }
.rs-post-title { font-family: var(--rs-f-title); font-weight: 800; font-size: 28px; line-height: .98; margin: 0 0 10px; color: var(--rs-green); }
.rs-post-title a { color: inherit; text-decoration: none; }
.rs-pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.rs-pagination .page-numbers { padding: 8px 14px; border-radius: 999px; background: var(--rs-paper); text-decoration: none; color: var(--rs-ink); font-family: var(--rs-f-ui); font-weight: 700; }
.rs-pagination .current { background: var(--rs-green); color: #fff; }

/* 404 */
.rs-404 { background: var(--rs-green); color: #fff; padding-block: 120px; margin-top: 6px; background-image: repeating-radial-gradient(circle at 20% 80%, transparent 0 30px, rgba(255, 255, 255, .05) 30px 31px); }
.rs-404 .rs-display { font-size: clamp(48px, 9vw, 110px); max-width: 12ch; margin-bottom: 16px; }
.rs-404 p { color: var(--rs-green-soft); font-size: 18px; }
.rs-404-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- WooCommerce (pago y página de gracias) ---------- */
.rs-woo-title { font-family: var(--rs-f-title); color: var(--rs-green); font-size: clamp(36px, 6vw, 60px); margin-bottom: 32px; }
.woocommerce form .form-row label { font-family: var(--rs-f-ui); font-weight: 700; font-size: 14px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container .select2-selection--single { background: #fff; border: 1.5px solid var(--rs-line); border-radius: 6px; padding: .7rem .8rem; font-size: 16px; min-height: 46px; }
.woocommerce form .form-row input.input-text:focus { border-color: var(--rs-green); outline: none; box-shadow: 0 0 0 3px var(--rs-green-soft); }
.woocommerce #payment, .woocommerce-checkout #payment { background: var(--rs-paper); border-radius: 10px; }
.woocommerce #payment div.payment_box { background: #fff; }
.woocommerce #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce #payment #place_order { background: var(--rs-orange) !important; color: #fff !important; border-radius: 999px; font-family: var(--rs-f-ui); font-weight: 700; padding: 1rem 1.6rem; font-size: 16px; }
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce #payment #place_order:hover { background: var(--rs-orange-dark) !important; }
.woocommerce table.shop_table { border-radius: 10px; background: #fff; border-color: var(--rs-line); }
.woocommerce-order-overview { padding: 0 !important; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.woocommerce-order-overview li { border: 0 !important; margin: 0 !important; padding: 0 !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--rs-green); background: var(--rs-paper); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--rs-green); }
.woocommerce-error { border-top-color: #9b2c1f; }
.woocommerce-bacs-bank-details { background: var(--rs-paper); padding: 20px 24px; border-radius: 10px; margin: 24px 0; }
.woocommerce-bacs-bank-details ul { padding-left: 0; list-style: none; }
.woocommerce-order-details__title, .woocommerce-column__title, .wc-bacs-bank-details-heading { font-family: var(--rs-f-title); color: var(--rs-green); font-size: 30px; }
.wc-block-components-button:not(.is-link) { background: var(--rs-orange) !important; color: #fff !important; border-radius: 999px !important; font-family: var(--rs-f-ui); font-weight: 700; }
.wc-block-components-button:not(.is-link):hover { background: var(--rs-orange-dark) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control input { border-radius: 6px !important; }
.wc-block-components-title, .wc-block-components-checkout-step__title { font-family: var(--rs-f-title) !important; color: var(--rs-green); font-weight: 800 !important; font-size: 26px !important; text-transform: none !important; }
.wc-block-components-radio-control__option-checked, .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--rs-green) !important; }
.wp-block-woocommerce-checkout { padding-top: 0; }

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

/* Ajustes tras revisión */
.elementor .rs-hero-texto { border-left: 4px solid #fff !important; padding-left: 26px !important; }
@media (min-width: 1025px) { .elementor .rs-hero-texto { --width: 48% !important; width: 48% !important; } }
@media (max-width: 767px) { .elementor .rs-hero-texto { padding-left: 16px !important; border-left-width: 3px !important; } }
@media (max-width: 767px) {
	.rs-hero-portada::before, .rs-hero-portada > .elementor-background-overlay { background-image: none !important; background-color: rgba(10, 14, 10, .66) !important; opacity: 1 !important; }
}
