/**
 * Redtur CPT — estilos front-end mínimos.
 *
 * Paleta institucional Redtur.Co:
 *   - Blanco    #FFFFFF
 *   - Verde     #2E7D32
 *   - Azul      #005EB8
 *   - Coral     #FF7F50
 *   - Arena     #F5DEB3
 *
 * Tipografías: Lato + Open Sans (se asumen cargadas por el theme).
 *
 * Este archivo NO incluye el footer sticky (va en el theme).
 */

:root {
	--redtur-blanco: #FFFFFF;
	--redtur-verde:  #2E7D32;
	--redtur-azul:   #005EB8;
	--redtur-coral:  #FF7F50;
	--redtur-arena: #F5DEB3;
	--redtur-gris:  #5b5b5b;
	--redtur-gris-claro: #f4f4f4;

	--redtur-font-head: "Lato", "Open Sans", system-ui, sans-serif;
	--redtur-font-body: "Open Sans", "Lato", system-ui, sans-serif;

	--redtur-radius: 14px;
	--redtur-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	--redtur-transition: 0.25s ease;
}

.redtur-grid,
.redtur-listado,
.redtur-indice,
.redtur-newsletter,
.redtur-mapa-wrap {
	font-family: var(--redtur-font-body);
	color: #1d1d1d;
	box-sizing: border-box;
}

.redtur-grid *,
.redtur-listado *,
.redtur-indice *,
.redtur-newsletter *,
.redtur-mapa-wrap * {
	box-sizing: border-box;
}

/* ----------------------------------------------------------------------------
 * Botones
 * -------------------------------------------------------------------------- */
.redtur-btn {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	font-family: var(--redtur-font-head);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	transition: var(--redtur-transition);
	background: var(--redtur-verde);
	color: var(--redtur-blanco);
}
.redtur-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

.redtur-btn-coral  { background: var(--redtur-coral); color: #fff; }
.redtur-btn-azul   { background: var(--redtur-azul);  color: #fff; }
.redtur-btn-verde  { background: var(--redtur-verde); color: #fff; }
.redtur-btn-outline {
	background: transparent;
	color: var(--redtur-azul);
	border-color: var(--redtur-azul);
}
.redtur-btn-outline:hover { background: var(--redtur-azul); color: #fff; }

/* ----------------------------------------------------------------------------
 * Tarjetas (grid de emprendedores y experiencias)
 * -------------------------------------------------------------------------- */
.redtur-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
.redtur-card {
	background: var(--redtur-blanco);
	border-radius: var(--redtur-radius);
	overflow: hidden;
	box-shadow: var(--redtur-shadow);
	transition: var(--redtur-transition);
	border: 1px solid rgba(0,0,0,0.04);
	display: flex;
	flex-direction: column;
}
.redtur-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }

.redtur-card-head { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--redtur-gris-claro); }
.redtur-card-thumb {
	width: 100%; height: 100%;
	background-size: cover;
	background-position: center;
	background-color: var(--redtur-arena);
	transition: transform 0.4s ease;
}
.redtur-card:hover .redtur-card-thumb { transform: scale(1.06); }

.redtur-card-tag {
	position: absolute;
	top: 0.6rem; left: 0.6rem;
	background: var(--redtur-coral);
	color: #fff;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
}
.redtur-card-precio {
	position: absolute;
	bottom: 0.6rem; right: 0.6rem;
	background: rgba(46, 125, 50, 0.95);
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	padding: 0.3rem 0.7rem;
	border-radius: 8px;
}

.redtur-card-body { padding: 1rem 1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.redtur-card-title {
	font-family: var(--redtur-font-head);
	font-size: 1.15rem;
	margin: 0 0 0.3rem;
	color: #161616;
}
.redtur-card-oficio,
.redtur-card-emprendedor {
	font-size: 0.85rem;
	color: var(--redtur-azul);
	font-weight: 600;
	margin: 0 0 0.6rem;
}
.redtur-card-bio {
	font-size: 0.92rem;
	color: var(--redtur-gris);
	line-height: 1.5;
	margin: 0 0 0.9rem;
	flex: 1;
}
.redtur-card-meta {
	list-style: none;
	padding: 0;
	margin: 0 0 0.8rem;
	font-size: 0.8rem;
	color: var(--redtur-gris);
}
.redtur-card-meta li { margin-bottom: 0.2rem; }
.redtur-card-meta strong { color: #161616; }
.redtur-card-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: auto;
}
.redtur-card-actions .redtur-btn {
	flex: 1;
	text-align: center;
	padding: 0.6rem 0.8rem;
	font-size: 0.85rem;
}

/* ----------------------------------------------------------------------------
 * Listado de historias
 * -------------------------------------------------------------------------- */
.redtur-historias { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.redtur-historia { background: var(--redtur-blanco); border-radius: var(--redtur-radius); overflow: hidden; box-shadow: var(--redtur-shadow); transition: var(--redtur-transition); }
.redtur-historia:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,0.1); }
.redtur-historia-link { display: flex; text-decoration: none; color: inherit; }
.redtur-historia-thumb { flex: 0 0 180px; aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: var(--redtur-arena); }
.redtur-historia-body { padding: 1rem 1.2rem; flex: 1; }
.redtur-historia-titulo { font-family: var(--redtur-font-head); font-size: 1.2rem; margin: 0.3rem 0; color: #161616; }
.redtur-historia-resumen { color: var(--redtur-gris); font-size: 0.92rem; margin: 0.3rem 0; line-height: 1.5; }
.redtur-historia-meta { font-size: 0.8rem; color: var(--redtur-gris); margin: 0.5rem 0 0; }
.redtur-historia-meta span { margin-right: 0.4rem; }

@media (max-width: 600px) {
	.redtur-historia-link { flex-direction: column; }
	.redtur-historia-thumb { flex: none; width: 100%; aspect-ratio: 16/9; }
}

/* ----------------------------------------------------------------------------
 * Agenda (eventos)
 * -------------------------------------------------------------------------- */
.redtur-agenda { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.redtur-evento {
	background: var(--redtur-blanco);
	border-radius: var(--redtur-radius);
	box-shadow: var(--redtur-shadow);
	padding: 1rem;
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	transition: var(--redtur-transition);
}
.redtur-evento:hover { transform: translateY(-3px); }
.redtur-evento-fecha {
	flex: 0 0 56px;
	background: var(--redtur-azul);
	color: #fff;
	border-radius: 10px;
	padding: 0.5rem 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.redtur-evento-dia { font-family: var(--redtur-font-head); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.redtur-evento-mes { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.redtur-evento-body { flex: 1; }
.redtur-evento-titulo { font-family: var(--redtur-font-head); font-size: 1.05rem; margin: 0 0 0.2rem; color: #161616; }
.redtur-evento-ubicacion { font-size: 0.85rem; color: var(--redtur-gris); margin: 0 0 0.4rem; }
.redtur-evento-meta { font-size: 0.8rem; color: var(--redtur-gris); margin: 0 0 0.6rem; display: flex; align-items: center; gap: 0.4rem; }

/* ----------------------------------------------------------------------------
 * Índice clicable
 * -------------------------------------------------------------------------- */
.redtur-indice-head { margin-bottom: 1.5rem; }
.redtur-indice-titulo { font-family: var(--redtur-font-head); font-size: 1.8rem; margin: 0; color: var(--redtur-verde); }
.redtur-indice-periodo { color: var(--redtur-gris); margin: 0.3rem 0 0; font-size: 0.95rem; }

.redtur-indice-lista { list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: indice; display: grid; gap: 0.8rem; }
.redtur-indice-item {
	background: var(--redtur-blanco);
	border-left: 4px solid var(--redtur-coral);
	border-radius: 0 var(--redtur-radius) var(--redtur-radius) 0;
	box-shadow: var(--redtur-shadow);
	transition: var(--redtur-transition);
}
.redtur-indice-item:hover { transform: translateX(4px); border-left-color: var(--redtur-verde); }
.redtur-indice-link { display: flex; gap: 1rem; padding: 1rem 1.2rem; text-decoration: none; color: inherit; align-items: flex-start; }
.redtur-indice-num {
	font-family: var(--redtur-font-head);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--redtur-coral);
	flex: 0 0 auto;
	min-width: 36px;
}
.redtur-indice-body { flex: 1; }
.redtur-indice-historia { font-family: var(--redtur-font-head); font-size: 1.1rem; margin: 0.2rem 0; color: #161616; }
.redtur-indice-resumen { color: var(--redtur-gris); font-size: 0.92rem; margin: 0.2rem 0 0; line-height: 1.5; }

/* ----------------------------------------------------------------------------
 * Mapa interactivo
 * -------------------------------------------------------------------------- */
.redtur-mapa-wrap {
	background: var(--redtur-gris-claro);
	border-radius: var(--redtur-radius);
	padding: 1rem;
	box-shadow: var(--redtur-shadow);
}
.redtur-mapa-filtros { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.redtur-filtro {
	background: var(--redtur-blanco);
	border: 2px solid transparent;
	color: var(--redtur-gris);
	padding: 0.4rem 1rem;
	border-radius: 999px;
	cursor: pointer;
	font-family: var(--redtur-font-head);
	font-weight: 600;
	font-size: 0.85rem;
	transition: var(--redtur-transition);
}
.redtur-filtro:hover { color: var(--redtur-verde); }
.redtur-filtro.active { background: var(--redtur-verde); color: #fff; border-color: var(--redtur-verde); }

.redtur-mapa {
	background: var(--redtur-blanco);
	border-radius: var(--redtur-radius);
	min-height: 360px;
	position: relative;
	overflow: hidden;
}
.redtur-mapa-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--redtur-gris);
	font-family: var(--redtur-font-head);
}
.redtur-mapa-svg { width: 100%; height: auto; display: block; }
.redtur-mapa-svg path.depto {
	fill: var(--redtur-arena);
	stroke: #fff;
	stroke-width: 1;
	cursor: pointer;
	transition: fill 0.25s ease;
}
.redtur-mapa-svg path.depto:hover { fill: var(--redtur-coral); }
.redtur-mapa-svg path.depto.destacado { fill: var(--redtur-verde); }
.redtur-mapa-svg path.depto.active { fill: var(--redtur-azul); }

.redtur-mapa-detalle {
	background: var(--redtur-blanco);
	border-radius: var(--redtur-radius);
	padding: 1rem;
	margin-top: 0.8rem;
	box-shadow: var(--redtur-shadow);
}
.redtur-mapa-detalle-titulo { font-family: var(--redtur-font-head); font-size: 1.3rem; margin: 0 0 0.3rem; color: var(--redtur-verde); }
.redtur-mapa-detalle-meta { color: var(--redtur-gris); font-size: 0.9rem; margin: 0 0 0.6rem; }
.redtur-mapa-detalle-lista { display: grid; gap: 0.5rem; }
.redtur-mapa-detalle-lista a { color: var(--redtur-azul); text-decoration: none; font-weight: 600; }
.redtur-mapa-detalle-lista a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------------------
 * Formularios (newsletter + contacto)
 * -------------------------------------------------------------------------- */
.redtur-newsletter {
	background: linear-gradient(135deg, var(--redtur-arena) 0%, #fff 100%);
	border-radius: var(--redtur-radius);
	padding: 1.5rem;
	box-shadow: var(--redtur-shadow);
}
.redtur-form { display: grid; gap: 0.8rem; max-width: 480px; margin: 0 auto; }
.redtur-form-row { display: flex; flex-direction: column; gap: 0.3rem; }
.redtur-label { font-family: var(--redtur-font-head); font-size: 0.85rem; font-weight: 600; color: #333; }
.redtur-input {
	border: 2px solid var(--redtur-arena);
	border-radius: 8px;
	padding: 0.6rem 0.8rem;
	font-size: 0.95rem;
	font-family: var(--redtur-font-body);
	background: #fff;
	transition: var(--redtur-transition);
}
.redtur-input:focus { outline: none; border-color: var(--redtur-azul); box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.15); }

/* Mensajes flash */
.redtur-flash { padding: 0.8rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; font-weight: 600; }
.redtur-flash-ok    { background: rgba(46, 125, 50, 0.1); color: var(--redtur-verde); border-left: 4px solid var(--redtur-verde); }
.redtur-flash-error { background: rgba(255, 127, 80, 0.1); color: #d35400; border-left: 4px solid var(--redtur-coral); }

/* ----------------------------------------------------------------------------
 * Estado vacío
 * -------------------------------------------------------------------------- */
.redtur-empty {
	text-align: center;
	color: var(--redtur-gris);
	font-family: var(--redtur-font-body);
	font-style: italic;
	padding: 2rem 1rem;
}

/* ----------------------------------------------------------------------------
 * Modal de detalle (departamento)
 * -------------------------------------------------------------------------- */
.redtur-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}
.redtur-modal-backdrop.open { opacity: 1; visibility: visible; }
.redtur-modal {
	background: #fff;
	border-radius: var(--redtur-radius);
	max-width: 640px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 1.5rem;
	transform: translateY(20px);
	transition: transform 0.25s ease;
	position: relative;
}
.redtur-modal-backdrop.open .redtur-modal { transform: translateY(0); }
.redtur-modal-close {
	position: absolute;
	top: 0.6rem; right: 0.6rem;
	background: transparent;
	border: 0;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--redtur-gris);
}
.redtur-modal-close:hover { color: var(--redtur-coral); }

/* ----------------------------------------------------------------------------
 * Responsive global
 * -------------------------------------------------------------------------- */
@media (max-width: 600px) {
	.redtur-cards { grid-template-columns: 1fr; }
	.redtur-card-actions { flex-direction: column; }
	.redtur-card-actions .redtur-btn { width: 100%; }
}
