/* ============================================================
   Tecnología JS — Estilo del sitio
   Aplica solo dentro de .tjs-page (el contenido de las páginas)
   ============================================================ */

.tjs-page {
	--tjs-navy: #0b2540;
	--tjs-navy-light: #123a5e;
	--tjs-teal: #0ea5b7;
	--tjs-teal-dark: #0b8494;
	--tjs-whatsapp: #25d366;
	--tjs-text: #1f2937;
	--tjs-text-light: #5b6572;
	--tjs-bg-light: #f6f9fb;
	--tjs-border: #e3e8ee;
	--tjs-radius: 14px;
	--tjs-shadow: 0 4px 16px rgba(15, 41, 66, 0.08);
	--tjs-shadow-hover: 0 12px 28px rgba(15, 41, 66, 0.16);

	font-family: "Inter", system-ui, -apple-system, sans-serif;
	color: var(--tjs-text);
	font-size: 16px;
	line-height: 1.65;
	max-width: 1100px;
	margin: 0 auto;
}

/* Tipografía */
.tjs-page h1,
.tjs-page h2,
.tjs-page h3 {
	font-family: "Poppins", "Inter", sans-serif;
	color: var(--tjs-navy);
	line-height: 1.25;
	margin: 0 0 0.5em;
}
.tjs-page h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 700; }
.tjs-page h2 {
	font-size: clamp(1.5rem, 3vw, 1.9rem);
	font-weight: 600;
	margin-top: 2.4em;
	padding-bottom: 0.5em;
}
.tjs-page h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	background: var(--tjs-teal);
	border-radius: 2px;
	margin-top: 0.5em;
}
.tjs-page h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.4em; }
.tjs-page p { margin: 0 0 1em; color: var(--tjs-text-light); font-size: 1.05rem; }
.tjs-page em { color: var(--tjs-text-light); }

.tjs-page ul { margin: 0 0 1.5em; padding-left: 0; list-style: none; }
.tjs-page ul li {
	position: relative;
	padding-left: 1.6em;
	margin-bottom: 0.6em;
	color: var(--tjs-text-light);
}
.tjs-page ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tjs-teal);
}

/* Hero */
.tjs-hero {
	background: linear-gradient(135deg, var(--tjs-navy) 0%, var(--tjs-navy-light) 55%, var(--tjs-teal-dark) 130%);
	color: #fff;
	padding: 64px 40px;
	border-radius: var(--tjs-radius);
	margin-bottom: 56px;
}
.tjs-hero h1 { color: #fff; max-width: 720px; }
.tjs-hero p { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; max-width: 620px; margin-bottom: 1.8em; }
.tjs-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Botones */
.tjs-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	box-shadow: var(--tjs-shadow);
	white-space: nowrap;
}
.tjs-btn:hover { transform: translateY(-2px); box-shadow: var(--tjs-shadow-hover); text-decoration: none; }
.tjs-btn-primary { background: var(--tjs-teal); color: #fff; }
.tjs-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.6); }
.tjs-btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.tjs-btn-dark { background: var(--tjs-navy); color: #fff; }
.tjs-btn-whatsapp { background: var(--tjs-whatsapp); color: #fff; }

/* Secciones */
.tjs-section { padding: 40px 0; }
.tjs-section-alt {
	background: var(--tjs-bg-light);
	border-radius: var(--tjs-radius);
	padding: 48px 32px;
	margin: 2.4em 0;
}
.tjs-section-alt h2:first-child { margin-top: 0; }

/* Grillas y tarjetas */
.tjs-grid { display: grid; gap: 24px; margin-top: 1.5em; }
.tjs-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tjs-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tjs-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
	.tjs-grid-4, .tjs-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.tjs-grid-4, .tjs-grid-3, .tjs-grid-2 { grid-template-columns: 1fr; }
	.tjs-hero { padding: 48px 24px; }
}

.tjs-card {
	background: #fff;
	border: 1px solid var(--tjs-border);
	border-radius: var(--tjs-radius);
	padding: 28px;
	box-shadow: var(--tjs-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tjs-card:hover { transform: translateY(-4px); box-shadow: var(--tjs-shadow-hover); }
.tjs-card h3 { margin-top: 0; font-size: 1.1rem; }
.tjs-card p { margin-bottom: 0; font-size: 0.95rem; }

.tjs-card-icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: rgba(14, 165, 183, 0.12);
	color: var(--tjs-teal-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}
.tjs-card-icon svg { width: 24px; height: 24px; }

/* Placeholder de foto (hasta tener las reales) */
.tjs-photo-placeholder {
	border: 2px dashed var(--tjs-border);
	border-radius: var(--tjs-radius);
	background: var(--tjs-bg-light);
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--tjs-text-light);
	font-size: 0.9rem;
	padding: 24px;
	margin: 16px 0 32px;
}

/* Franja de llamado a la acción */
.tjs-cta-band {
	background: linear-gradient(120deg, var(--tjs-navy), var(--tjs-teal-dark));
	color: #fff;
	border-radius: var(--tjs-radius);
	padding: 48px 32px;
	text-align: center;
	margin-top: 3em;
}
.tjs-cta-band h2 { color: #fff; }
.tjs-cta-band h2::after { margin-left: auto; margin-right: auto; }
.tjs-cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin-left: auto; margin-right: auto; }
.tjs-cta-band .tjs-hero-actions { justify-content: center; }

/* Lista de contacto */
.tjs-contact-list { list-style: none; padding: 0; margin: 1.5em 0; }
.tjs-contact-list li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--tjs-border);
	color: var(--tjs-text);
	padding-left: 0;
}
.tjs-contact-list li::before { content: none; }
.tjs-contact-list svg { width: 22px; height: 22px; color: var(--tjs-teal-dark); flex-shrink: 0; }
.tjs-contact-list a { color: var(--tjs-navy); font-weight: 600; text-decoration: none; }
.tjs-contact-list a:hover { color: var(--tjs-teal-dark); text-decoration: underline; }

/* ============================================================
   Ajustes a la plantilla del tema (fuera de .tjs-page)
   ============================================================ */

/* Oculta el título de página duplicado ("Inicio", "Servicios", etc.)
   que el tema muestra arriba del contenido, SOLO en páginas que
   traen nuestro diseño (evita afectar entradas de blog u otras páginas). */
body:has(.tjs-page) .entry-title,
body:has(.tjs-page) .page-title,
body:has(.tjs-page) .wp-block-post-title,
body:has(.tjs-page) .entry-header {
	display: none;
}

/* Evita scroll horizontal al usar el truco de ancho completo de abajo */
body:has(.tjs-page) {
	overflow-x: hidden;
}

/* Hero, franja de CTA y secciones alternadas: se extienden de borde
   a borde de la pantalla (en vez de quedar encajonados en la columna
   angosta de contenido del tema), con el texto centrado en un ancho
   máximo cómodo de lectura. */
.tjs-hero,
.tjs-cta-band,
.tjs-section-alt {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-radius: 0;
	padding-left: max(24px, calc((100vw - 1100px) / 2 + 40px));
	padding-right: max(24px, calc((100vw - 1100px) / 2 + 40px));
	margin-top: 0;
}
.tjs-page > .tjs-hero:first-child {
	margin-top: -1px; /* pega el hero contra cualquier borde superior residual del tema */
}

/* ============================================================
   Header y footer del tema Astra, a juego con el diseño
   ============================================================ */

#masthead.site-header {
	background: #ffffff !important;
	border-bottom: 1px solid #e3e8ee;
}
#masthead .site-title,
#masthead .site-title a {
	font-family: "Poppins", "Inter", sans-serif !important;
	font-weight: 700 !important;
	color: #0b2540 !important;
	letter-spacing: -0.01em;
}
#masthead .main-header-menu .menu-item > a,
#masthead .main-navigation .menu-item > a {
	font-family: "Inter", sans-serif;
	font-weight: 600;
	color: #0b2540 !important;
	position: relative;
}
#masthead .main-header-menu .menu-item > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 2px;
	height: 2px;
	background: #0ea5b7;
	transition: right 0.2s ease;
}
#masthead .main-header-menu .menu-item:hover > a::after,
#masthead .main-header-menu .current-menu-item > a::after {
	right: 0;
}
#masthead .main-header-menu .menu-item:hover > a,
#masthead .main-header-menu .current-menu-item > a {
	color: #0b8494 !important;
}

.site-footer,
.site-footer.ast-footer-overlay {
	background-color: #0b2540 !important;
}
.site-footer,
.site-footer a,
.site-footer p,
.site-footer .ast-footer-copyright,
.site-footer .footer-widget-area {
	color: rgba(255, 255, 255, 0.85) !important;
	font-family: "Inter", sans-serif;
}
.site-footer a:hover {
	color: #0ea5b7 !important;
}
.site-footer .widget-title {
	font-family: "Poppins", sans-serif;
	color: #fff !important;
}
