/* ---------------------------------------------
   Estilos base del theme artedeinvertir
   Colores: Primario #FFDB45, Secundario #023844, Blanco #FFFFFF
   Fuentes: Figtree (principal), Inter (secundaria)
---------------------------------------------- */

:root {
	--ttt-color-primary: #ff860d;
	--ttt-color-secondary: #1a3a52;
	--ttt-color-white: #ffffff;
	--ttt-font-primary: 'Montserrat', sans-serif;
	--ttt-font-secondary: 'Poppins', sans-serif;
	--ttt-radius: 12px;
	--ttt-shadow-soft: 0 20px 60px rgba(2, 56, 68, 0.08);
}

p {
	margin-block-start: 0;
	margin-block-end: 0;
	line-height: 1.6;
}

body {
	font-family: var(--ttt-font-primary);
	color: var(--ttt-color-secondary);
	background-color: var(--ttt-color-white);
	margin: 0;
}

a {
	color: var(--ttt-color-secondary);
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
	color: var(--ttt-color-primary);
}

.ttt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px;
	border-radius: var(--ttt-radius);
	border: none;
	background: linear-gradient(135deg, #ffdb45, #ffd124);
	color: var(--ttt-color-secondary);
	font-weight: 700;
	box-shadow: var(--ttt-shadow-soft);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ttt-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 24px 70px rgba(2, 56, 68, 0.12);
}

.ttt-section {
	padding: 80px 24px;
}

.ttt-container {
	max-width: 1200px;
	margin: 0 auto;
}

.ttt-card {
	background: var(--ttt-color-white);
	border-radius: var(--ttt-radius);
	padding: 32px;
	box-shadow: var(--ttt-shadow-soft);
}

.site-main {
	overflow-x: hidden;
}

/* ---------- Header fixed transparente ---------- */
.ttt-header {
	position: fixed;
	top: 0;
	z-index: 20;
	width: 100%;
	background: white;
	transition: background 0.3s ease;
	border-radius: 0 0 25px 25px;
	height: 120px;
	display: flex;
}

.ttt-header__inner {
	display: flex;
	justify-content: space-between;
    align-items: center;
    padding: 10px 60px;
	max-width: 1500px;
	width: 100%;
}

.ttt-header__col {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ttt-header__col--center {
	flex-grow: 1;
	width: 100%;
}

.ttt-header__col--center > .elementor {
	width: 100%;
}

/* Tipografía contenedor Elementor en header */
.ttt-header .elementor,
.ttt-header .elementor * {
	font-family: 'Montserrat', 'Poppins', sans-serif;
}

/* Animación fade-in del bloque Elementor */
.ttt-header__col--center .elementor {
	opacity: 0;
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.ttt-header--ready .ttt-header__col--center .elementor {
	opacity: 1;
	transform: translateY(0);
}

.ttt-header__col--left {
	justify-content: flex-start;
}

.ttt-header__col--right {
	justify-content: flex-end;
}

.ttt-header a.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.ttt-header img.custom-logo {
	width: auto;
    display: block;
    height: 100px;
}

.ttt-logo--text {
	font-weight: 700;
	color: var(--ttt-color-secondary);
}

/* Estado scrolled del header */
.ttt-header--scrolled {
}


@media( max-width: 1400px ){
	body.is_front_page .ttt-header {
		min-height: 180px;

	}

	.ttt-header .elementor a {
		width: 100%;
	}

	.ttt-header__col--center > .elementor {
		max-width: 700px;
	}
}

@media( max-width: 1000px ){

	.ttt-header__inner {
		flex-direction: column;
		gap: 10px;
		padding: 10px 20px;
	}

	.ttt-header {
		height: auto;
	}

	.ttt-header__col--center > .elementor {
		max-width: 100%;
	}
}

/* ---------- Footer ---------- */
.ttt-footer {
	padding: 88px 24px 28px;
	color: #021b37;
	text-align: center;
	background:
		radial-gradient(circle at 18% 72%, rgb(2 27 55 / 0%) 0%, transparent 42%),
		radial-gradient(circle at 78% 72%, rgb(61 129 217 / 15%) 0%, transparent 44%),
		radial-gradient(circle at 50% 32%, rgba(146, 189, 234, 0.35) 0%, transparent 48%),
		linear-gradient(358deg, #021b37 7%, #3d81d973 42%, #92bdea00 77%, rgba(217, 235, 255, 0.01) 100%);
}

.ttt-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	gap: 18px;
	justify-items: center;
}

.ttt-footer__brand img {
	max-height: 100px;
	width: auto;
	height: auto;
}

.ttt-footer__brand {
	margin-bottom: 8px;
}

.ttt-footer__navline {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	justify-content: center;
}

.ttt-footer__menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 32px;
	justify-content: center;
	flex-wrap: wrap;
	font-size: 14px;
}

.ttt-footer__menu a {
	color: #021b37;
}

.ttt-footer__legal {
	font-size: 13px;
}

/* ---------- Páginas Legales ---------- */
.ttt-legal {
	padding: 120px 24px 80px;
	min-height: 60vh;
	background-color: var(--ttt-color-white);
}

.ttt-legal__inner {
	max-width: 800px;
}

.ttt-legal__header {
	margin-bottom: 40px;
	padding-bottom: 24px;
	border-bottom: 2px solid var(--ttt-color-primary);
}

.ttt-legal__title {
	font-family: var(--ttt-font-primary);
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--ttt-color-secondary);
	margin: 0;
}

.ttt-legal__body {
	font-family: var(--ttt-font-secondary);
	font-size: 16px;
	line-height: 1.8;
	color: var(--ttt-color-secondary);
}

.ttt-legal__body h2 {
	font-family: var(--ttt-font-primary);
	font-size: 1.5rem;
	font-weight: 600;
	margin: 32px 0 16px;
	color: var(--ttt-color-secondary);
}

.ttt-legal__body h3 {
	font-family: var(--ttt-font-primary);
	font-size: 1.25rem;
	font-weight: 600;
	margin: 24px 0 12px;
	color: var(--ttt-color-secondary);
}

.ttt-legal__body p {
	margin-bottom: 16px;
}

.ttt-legal__body ul,
.ttt-legal__body ol {
	margin: 16px 0;
	padding-left: 24px;
}

.ttt-legal__body li {
	margin-bottom: 8px;
}

.ttt-legal__body a {
	color: var(--ttt-color-secondary);
	text-decoration: underline;
}

.ttt-legal__body a:hover {
	color: var(--ttt-color-primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {

	.ttt-header__inner {
		 grid-template-columns: 20% 1fr;
	}
	p {
		line-height: 1.55;
	}


	.ttt-header img.custom-logo {
		max-height: 80px;
	}

	.ttt-header__col--left {
		justify-content: center;
	}

	.ttt-footer {
		padding: 76px 18px 22px;
	}

	.ttt-footer__brand img {
		max-height: 140px;
	}

	.ttt-footer__menu {
		flex-direction: column;
		gap: 10px;
		align-items: center;
	}

	.ttt-footer__navline {
		flex-direction: column;
		gap: 16px;
		align-items: center;
	}

	.ttt-section {
		padding: 60px 18px;
	}

	.ttt-card {
		padding: 24px;
	}

	.ttt-header__col--right {
		display: none;
	}

	.ttt-legal {
		padding: 100px 18px 60px;
	}

	.ttt-legal__title {
		font-size: 1.75rem;
	}

	.ttt-legal__body {
		font-size: 15px;
	}

	.ttt-legal__body h2 {
		font-size: 1.25rem;
	}

	.ttt-legal__body h3 {
		font-size: 1.1rem;
	}
}

/* SECCION PREGUNTAS FRECUENTES */

   /* 1. Ocultar todos los contenedores de respuesta por defecto */
#preguntas-frecuentes [class*="contenedor-"] {
    display: none;
}

/* 2. Lógica de visualización mediante selectores combinados */

#preguntas-frecuentes.mostrar-1 .contenedor-1,
#preguntas-frecuentes.mostrar-2 .contenedor-2,
#preguntas-frecuentes.mostrar-3 .contenedor-3,
#preguntas-frecuentes.mostrar-4 .contenedor-4,
#preguntas-frecuentes.mostrar-5 .contenedor-5,
#preguntas-frecuentes.mostrar-6 .contenedor-6,
#preguntas-frecuentes.mostrar-7 .contenedor-7 {
    display: block;
}

#preguntas-frecuentes.mostrar-1 .activar-1 a,
#preguntas-frecuentes.mostrar-2 .activar-2 a,
#preguntas-frecuentes.mostrar-3 .activar-3 a,
#preguntas-frecuentes.mostrar-4 .activar-4 a,
#preguntas-frecuentes.mostrar-5 .activar-5 a,
#preguntas-frecuentes.mostrar-6 .activar-6 a,
#preguntas-frecuentes.mostrar-7 .activar-7 a {
	color: var(--ttt-color-primary);
}

/* 3. Estilo opcional para el cursor en los activadores */
#preguntas-frecuentes a {
    cursor: pointer;
}

#preguntas-frecuentes a:hover {
	color: var(--ttt-color-primary)
}

#preguntas-frecuentes summary {
	margin-bottom: 10px;
}


/* Nuestros resultados */

.nuestros-resultados:not(.mostrar-1) .resultados-1 {
	display: none;
}

.nuestros-resultados:not(.mostrar-2) .resultados-2 {
	display: none;
}

.nuestros-resultados:not(.mostrar-3) .resultados-3 {
	display: none;
}

.mostrar-resultados-1,
.mostrar-resultados-2,
.mostrar-resultados-3 {
	box-shadow: none !important;
	cursor: pointer !important;
}

.nuestros-resultados.mostrar-1 .mostrar-resultados-1,
.nuestros-resultados.mostrar-2 .mostrar-resultados-2,
.nuestros-resultados.mostrar-3 .mostrar-resultados-3 {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

/* CHECKOUT */

table.ai-checkout .ai-logo {
	position: relative;
	display: inline-block;
}

table.ai-checkout .ai-logo .count {
	position: absolute;
	background: gray;
	color: white;
	font-size: 12px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	text-align: center;
	line-height: 20px;
	top: 0;
	right: -15px;
}

table.ai-checkout tbody tr:first-child td:nth-child(2) {
	padding: 0 20px;
}

table.ai-checkout tfoot tr td:first-child {
	font-weight: 600;
}

table.ai-checkout tfoot tr:last-child td {
	font-weight: bold;
	font-size: 1.1em;
	padding-top: 25px;
}

/* Estilos adicionales para tabla ai-checkout */
.ai-checkout {
	width: 100%;
	border-collapse: collapse;
	font-family: 'Montserrat', sans-serif;
}

.ai-checkout td {
	padding: 15px 0;
	vertical-align: middle;
	border-bottom: 1px solid #e0e0e0;
}

.ai-checkout td:first-child {
	padding-left: 0;
	padding-right: 0;
	min-width: 50px;
}

.ai-checkout tbody tr:first-child td:nth-child(2) {
	padding-left: 40px !important
}

.ai-checkout td:last-child {
	padding-right: 0;
	text-align: right;
}

.ai-checkout tr:not(:last-child) td {
	border-bottom: 1px solid #e0e0e0;
}

.ai-checkout tfoot tr:last-child td {
	border-bottom: none;
}

.ai-logo {
	position: relative;
	display: inline-block;
}

.ai-logo img {
	width: 50px;
	height: auto;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.count {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #70757a;
	color: white;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	font-size: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* CHECKOUT FORM */


.gform_fields {
	gap: 15px !important;
}

.gform_wrapper .gform_heading {
	display: none;
}

.gform_wrapper #field_2_15 {
	display: none;
}

.gform_wrapper h2 {
	margin-bottom: 0;
}

.gfield--type-html p {
	color: gray;
	font-weight: 300;
	font-size: 16px !important;
}

.gform_button {
	width: 100% !important;
    padding: 20px !important;
    font-size: 26px !important;
	background-color: #0054B4 !important;
	color: white !important;
}

.gform-field-label--type-sub {
	color: #021b37 !important;
}

/*
.gfield--type-text {
	border: 1px solid gray !important;
	border-radius: 3px !important;
	padding: 0.75rem !important;
}

 .gfield--type-text input {
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.gfield--type-text label {
	margin-bottom: 0 !important;
}
	*/

