/*!
Theme Name: rootscapetravel
Theme URI: https://rootscapetravel.com/
Author: Roel Jhonatan
Author URI: https://www.facebook.com/roelote
Description: Tema personalizado para Rootscape Travel, agencia de viajes especializada en experiencias únicas en Perú.
Version: 1.0.0
Tested up to: 7.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: rootscapetravel
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

*/

/* ================================================================
   FOOTER
   ================================================================ */

.rs-footer {
	background: linear-gradient(180deg, #1e4535 0%, #152e24 100%);
	color: #ffffff;
	font-family: inherit;
}

/* --- Barra superior --- */
.rs-footer-top {
	background: rgba(0, 0, 0, 0.18);
	padding: 20px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rs-footer-top-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.rs-footer-contact-bar {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
	align-items: center;
}

.rs-footer-contact-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rs-footer-contact-item-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(76, 175, 125, 0.18);
	border: 1px solid rgba(76, 175, 125, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #4caf7d;
}

.rs-footer-contact-item-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.rs-footer-contact-label {
	font-size: 0.68rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.5);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rs-footer-contact-item a {
	color: #ffffff;
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
	transition: color 0.2s;
}

.rs-footer-contact-item a:hover {
	color: #4caf7d;
}

.rs-footer-social {
	display: flex;
	align-items: center;
	gap: 16px;
}

.rs-footer-social-label {
	font-size: 0.72rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.45);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.rs-footer-social-icons {
	display: flex;
	gap: 8px;
	align-items: center;
}

.rs-footer-social-icons a {
	color: rgba(255, 255, 255, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.15);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.rs-footer-social-icons a:hover {
	background: rgba(76, 175, 125, 0.2);
	color: #4caf7d;
	border-color: rgba(76, 175, 125, 0.5);
}

/* --- Divisor --- */
.rs-footer-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(76,175,125,0.25) 30%, rgba(76,175,125,0.25) 70%, transparent);
	max-width: 1400px;
	margin: 0 auto;
}

/* --- Cuerpo inferior --- */
.rs-footer-bottom {
	padding: 48px 0 40px;
}

.rs-footer-bottom-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 32px;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
	gap: 0;
	align-items: start;
}

.rs-footer-col {
	padding: 0 40px 0 0;
	border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.rs-footer-col:last-child {
	border-right: none;
	padding-right: 0;
	padding-left: 40px;
}

.rs-footer-col:not(:first-child):not(:last-child) {
	padding-left: 40px;
}

.rs-footer-col-title {
	font-size: 0.75rem;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 20px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding-bottom: 12px;
	border-bottom: 2px solid #4caf7d;
	display: inline-block;
}

.rs-footer-col p {
	font-size: 0.84rem;
	color: rgba(255, 255, 255, 0.75);
	margin: 0 0 8px;
	line-height: 1.6;
}

.rs-footer-col p strong {
	color: rgba(255, 255, 255, 0.95);
	font-weight: 600;
}

.rs-footer-col p a,
.rs-footer-col a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color 0.2s;
}

.rs-footer-col p a:hover,
.rs-footer-col a:hover {
	color: #4caf7d;
	text-decoration: none;
}

.rs-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rs-footer-links li {
	display: flex;
	align-items: center;
	gap: 9px;
}

.rs-footer-links li::before {
	content: '';
	display: block;
	width: 5px;
	height: 5px;
	border-right: 1.5px solid #4caf7d;
	border-top: 1.5px solid #4caf7d;
	transform: rotate(45deg);
	flex-shrink: 0;
	opacity: 0.7;
	transition: opacity 0.2s, transform 0.2s;
}

.rs-footer-links li:hover::before {
	opacity: 1;
	transform: rotate(45deg) translateX(2px);
}

.rs-footer-links li a {
	font-size: 0.84rem;
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color 0.2s;
	line-height: 1.8;
}

.rs-footer-links li a:hover {
	color: #4caf7d;
}

/* --- Columna marca --- */
.rs-footer-col-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

.rs-footer-logo-img {
	max-width: 160px;
	height: auto;
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

.rs-footer-badge-img {
	width: 100%;
	max-width: 240px;
	/* aspect-ratio: 1 / 1; */
	object-fit: contain;
	display: block;
	background-color: white;
	border-radius: 10px;
	padding: 6px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.rs-footer-cert-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	max-width: 340px;
}

.rs-footer-cert-img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	display: block;
	background-color: #ffffff;
	border-radius: 10px;
	padding: 6px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* --- Copyright --- */
.rs-footer-copy {
	background: rgba(0, 0, 0, 0.2);
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	padding: 18px 32px;
	text-align: center;
}

.rs-footer-copy p {
	font-size: 0.76rem;
	color: rgba(255, 255, 255, 0.4);
	margin: 0;
	letter-spacing: 0.02em;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
	.rs-footer-bottom-inner {
		grid-template-columns: 1fr 1fr;
		gap: 0;
	}
	.rs-footer-col {
		padding: 24px 32px 24px 0;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	}
	.rs-footer-col:last-child,
	.rs-footer-col:not(:first-child):not(:last-child) {
		padding-left: 0;
	}
	.rs-footer-col:nth-child(odd) {
		border-right: 1px solid rgba(255, 255, 255, 0.07);
		padding-right: 32px;
	}
	.rs-footer-col:nth-child(odd) {
		padding-left: 0;
	}
	.rs-footer-col:nth-child(even) {
		padding-left: 32px;
	}
	.rs-footer-col:nth-last-child(-n+2) {
		border-bottom: none;
	}
}

@media (max-width: 640px) {
	.rs-footer-top-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	.rs-footer-bottom-inner {
		grid-template-columns: 1fr;
	}
	.rs-footer-col {
		padding: 24px 0 !important;
		border-right: none !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	}
	.rs-footer-col:last-child {
		border-bottom: none;
	}
	.rs-footer-col-brand {
		align-items: flex-start;
		text-align: left;
	}
}


/* ================================================================
   WHATSAPP FLOAT
   ================================================================ */

.rs-whatsapp-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25d366;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.24);
	z-index: 9999;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rs-whatsapp-float:hover {
	background: #20ba5a;
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.rs-whatsapp-float:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* ================================================================
   OPENPAY — formulario de pago
   ================================================================ */
#openpay-payment-wrapper {
	width: 100%;
	margin: 0 auto;
  border: 1px solid #ddd;
  padding: 22px;
  border-radius: 10px;
}

#openpay-payment-form .openpay-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 14px;
}

#openpay-payment-form .openpay-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}

#openpay-payment-form label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

#openpay-payment-form input[type="text"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
	color: #111827;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

#openpay-payment-form input[type="text"]:focus {
	outline: none;
	border-color: #1b3330;
	box-shadow: 0 0 0 3px rgba(27, 51, 48, 0.12);
}

.openpay-error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 8px;
	color: #b91c1c;
	font-size: 14px;
	padding: 10px 14px;
	margin-bottom: 14px;
}

.openpay-submit-btn {
	width: 100%;
	background: #1b3330;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 14px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
	letter-spacing: 0.3px;
}

.openpay-submit-btn:hover:not(:disabled) {
	background: #142926;
}

.openpay-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.openpay-cards-accepted {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
	margin-top: 14px;
	font-size: 12px;
	color: #6b7280;
}

.openpay-card-badge {
	border: 1px solid #d1d5db;
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	color: #374151;
	background: #f9fafb;
	letter-spacing: 0.5px;
}

/* ================================================================
   MODAL CHECKOUT
   ================================================================ */
.rs-checkout-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 16px;
	backdrop-filter: blur(4px);
}

.rs-checkout-box {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 860px;
	max-height: 90vh;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

/* Cabecera con título del tour */
.rs-checkout-header {
	background: #25453f;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px 16px 24px;
	flex-shrink: 0;
}

.rs-checkout-header-title {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	margin: 0;
	line-height: 1.4;
	margin-bottom: 18px;

}
.iti .iti__selected-dial-code
{
	font-size: 14px !important;
}
/* Botón cerrar — en la cabecera */
.rs-checkout-close {
	flex-shrink: 0;
	background: rgba(255,255,255,0.12);
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	transition: background 0.15s;
}

.rs-checkout-close:hover { background: rgba(255,255,255,0.22); }

/* Cuerpo scrollable */
.rs-checkout-body {
	background: #fff;
	padding: 32px 40px 28px;
	overflow-y: auto;
	flex: 1;
}

.rs-checkout-heading {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 18px;
}

.rs-checkout-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	color: #4b5563;
	font-size: 13px;
	cursor: pointer;
	padding: 0;
	margin-bottom: 14px;
	font-family: inherit;
}

.rs-checkout-back:hover { color: #111827; }

/* Booking steps (modal) */
.booking-steps.rs-checkout-steps {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 24px;
	
	background: #ffffff;
	margin-bottom: 10px;
}

.rs-ck-step {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.rs-ck-step-active .rs-step-dot,
.rs-ck-step-done .rs-step-dot {
	background: #25453f;
	width: 22px;
	border-radius: 4px;
}

.rs-ck-step-active .rs-step-label,
.rs-ck-step-done .rs-step-label {
	color: #25453f;
	font-weight: 700;
}

/* Paso 2: tarjeta izquierda + resumen derecha */
.rs-checkout-step2-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.rs-checkout-step2-top .rs-checkout-back {
	margin-bottom: 0;
	flex-shrink: 0;
}

.rs-checkout-step2-top .rs-checkout-heading {
	margin: 0;
}

.rs-checkout-step2-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
	gap: 22px;
	align-items: start;
}

.rs-checkout-step1-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
	gap: 22px;
	align-items: start;
}

.rs-checkout-step1-left,
.rs-checkout-step1-right {
	min-width: 0;
}

.rs-checkout-step2-left {
	min-width: 0;
}

.rs-checkout-step2-right {
	min-width: 0;
}

.rs-booking-summary-card,
.rs-step2-summary-card {
	background: #f7faf9;
	border: 1px solid #e2ebe8;
	border-radius: 12px;
	padding: 16px;
}

.rs-step2-summary-title {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 14px;
}

.rs-step2-summary-rows {
	display: flex;
	flex-direction: column;
	border-top: 1px solid #e2ebe8;
	border-bottom: 1px solid #e2ebe8;
}

.rs-step2-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	font-size: 13px;
	color: #4b5563;
	border-bottom: 1px solid #eef2f1;
}

.rs-step2-summary-row:last-child {
	border-bottom: none;
}

.rs-step2-summary-row strong {
	color: #1f2937;
	font-weight: 600;
	text-align: right;
	word-break: break-word;
}

.rs-step2-summary-total {
	margin-top: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	font-weight: 700;
	color: #1f2937;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.rs-step2-summary-total strong {
	font-size: 20px;
	line-height: 1;
	color: #1b3330;
	white-space: nowrap;
}

.rs-step2-privacy-box {
	margin-top: 12px;
	background: #eef4f2;
	border: 1px solid #d9e5e1;
	border-radius: 10px;
	padding: 10px 12px;
}

.rs-step2-privacy {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	line-height: 1.45;
	color: #4b5563;
}

.rs-step2-privacy input[type="checkbox"] {
	margin-top: 2px;
	width: 15px;
	height: 15px;
	accent-color: #1b3330;
	flex-shrink: 0;
}

.rs-step2-privacy a {
	color: #1b3330;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rs-step2-privacy a:hover {
	color: #142926;
}

.rs-step2-summary-breakdown {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 0;
	border-top: 1px dashed #d8e2df;
	border-bottom: 1px dashed #d8e2df;
	padding: 6px 0;
}

.rs-step2-summary-line {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	font-size: 12px;
	color: #4b5563;
	border-bottom: 1px dashed #e2ebe8;
}

.rs-step2-summary-line:last-child {
	border-bottom: none;
}

.rs-step2-summary-line span {
	line-height: 1.4;
}

.rs-step2-summary-line strong {
	font-weight: 700;
	color: #1f2937;
	white-space: nowrap;
}

/* Éxito */
.rs-checkout-success {
	text-align: center;
	padding: 24px 0 8px;
}

.rs-checkout-success-icon { margin-bottom: 16px; }

.rs-checkout-success-title {
	font-size: 22px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 10px;
}

.rs-checkout-success-text {
	font-size: 14px;
	color: #4b5563;
	margin: 0 0 14px;
}

.rs-checkout-tx {
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 20px;
	word-break: break-all;
}

@media (max-width: 600px) {
	.rs-checkout-box  { max-height: 95vh; border-radius: 10px; }
	.rs-checkout-body { padding: 24px 16px 20px; }
	.rs-checkout-step2-top { gap: 10px; margin-bottom: 12px; }
	.rs-checkout-step1-layout { grid-template-columns: 1fr; gap: 16px; }
	.rs-checkout-step2-layout { grid-template-columns: 1fr; gap: 16px; }
	.booking-steps.rs-checkout-steps {
		padding: 12px 16px;
		overflow-x: auto;
		white-space: nowrap;
	}
}

/* ── Formulario de datos del pasajero (Step 1) ── */
.rs-cf {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 12px;
}

.rs-cf label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.rs-req {
	color: #ef4444;
}

.rs-cf input[type="text"],
.rs-cf input[type="email"],
.rs-cf input[type="tel"],
.rs-cf select,
.rs-cf textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	color: #111827;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	font-family: inherit;
}

.rs-cf input:focus,
.rs-cf select:focus,
.rs-cf textarea:focus {
	outline: none;
	border-color: #1b3330;
	box-shadow: 0 0 0 3px rgba(27, 51, 48, 0.1);
}

.rs-cf textarea {
	resize: vertical;
	min-height: 72px;
}

.rs-cf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

/* Teléfono con código de país */
.rs-phone-wrap {
	display: flex;
	gap: 6px;
}

.rs-phone-code {
	width: auto;
	min-width: 100px;
	flex-shrink: 0;
	padding: 10px 6px !important;
}

.rs-phone-wrap input[type="tel"] {
	flex: 1;
}

/* Botones de acciones */
.rs-cf-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.rs-btn-cancel {
	background: none;
	border: none;
	color: #6b7280;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	padding: 8px 4px;
	font-family: inherit;
}

.rs-btn-cancel:hover {
	color: #374151;
}

.rs-btn-continue {
	background: #e53935;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s;
}

.rs-btn-continue:hover {
	background: #c62828;
}

@media (max-width: 480px) {
	.rs-checkout-box {
		padding: 24px 18px 20px;
		border-radius: 12px;
	}

	.rs-cf-row {
		grid-template-columns: 1fr;
	}

	.openpay-field-row {
		grid-template-columns: 1fr 1fr;
	}

	.openpay-field-row .openpay-field:last-child {
		grid-column: 1 / -1;
	}
}
