/**
 * tf-footer.css — footer en código, port fiel del Elementor 3454.
 *
 * Valores tomados de la captura en vivo (getComputedStyle), no inventados:
 * docs/wordpress/footer-captura-baseline-2026-07-19.md
 *
 * FRONTERA ANTI-TEMA: Astra y el Elementor Kit 882 inyectan `border: 2px
 * solid #1f1f1f` en todo button y un velo morado en :hover de los <a>. Todo
 * enlace y boton nuevo del sitio lo hereda — por eso los !important de la
 * seccion final. Verificar SIEMPRE con getComputedStyle, no a ojo.
 */

.tf-footer {
	/* r5: negro PURO, igual que el header (medido: rgb(0,0,0)). Antes
	   rgb(20,16,6), que no calzaba con la cabecera. */
	--tf-f-bg: #000;
	--tf-f-ink: #fff;
	--tf-f-muted: rgb(105, 114, 125);
	--tf-f-label: rgb(184, 184, 184);
	--tf-f-gold: rgb(201, 165, 74);
	/* El original usa DM Sans; el resto del sitio migrado usa Montserrat.
	   Se conserva DM Sans para que la comparacion pixel sea limpia —
	   unificar tipografia queda como decision aparte, no "de paso". */
	font-family: "DM Sans", "Montserrat", Arial, sans-serif;
	color: var(--tf-f-ink);
}

.tf-footer__main,
.tf-footer__bar { background: var(--tf-f-bg); }

/* Padding del original: 71.25px arriba / 42.75px abajo. */
.tf-footer__main { padding: 71.25px 0 42.75px; }

.tf-footer__wrap {
	width: min(100% - 40px, 1240px);
	margin-inline: auto;
	display: grid;
	grid-template-columns: auto repeat(4, minmax(0, 1fr)) minmax(240px, 1.2fr);
	gap: 32px clamp(20px, 3vw, 48px);
	align-items: start;
}

.tf-footer__logo { display: inline-block; }
.tf-footer__logo img { display: block; width: 132px; height: auto; aspect-ratio: 300 / 201; object-fit: contain; }

/* h5 16px/600 blanco en el original. Aca son <h2> por jerarquia semantica
   (el footer no tenia NINGUN encabezado real); el tamano se conserva. */
.tf-footer__title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--tf-f-ink);
}

.tf-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tf-footer__list a { font-size: 16px; font-weight: 400; color: var(--tf-f-ink); text-decoration: none; }
/* r4: las redes pasan de texto a ICONO (pedido del usuario). Se conserva
   el nombre para lectores de pantalla via .tf-sr-only. */
.tf-footer__list--social { grid-auto-flow: column; justify-content: start; gap: 16px; }
.tf-footer__list--social a { display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; color: var(--tf-f-muted); }
.tf-footer__list--social svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.tf-footer__list--social a:hover svg,
.tf-footer__list--social a:focus-visible svg { fill: var(--tf-f-ink); }
.tf-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tf-footer__label {
	display: block;
	margin: 10px 0 4px;
	font-size: 16px;
	font-weight: 400;
	color: var(--tf-f-label);
}

.tf-footer__input {
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	font-size: 15px;
}


.tf-footer__submit {
	margin-top: 14px;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	color: var(--tf-f-ink);
	background: transparent;
	cursor: pointer;
}

.tf-footer__bar { padding: 24px 0; }
.tf-footer__wrap--bar { display: block; text-align: center; }
.tf-footer__copy { margin: 0; font-size: 14px; font-weight: 600; color: var(--tf-f-gold); }

/* Movil: el original colapsa a UNA columna (medido: flex-direction column,
   bloques a 375px, footer 790px de alto). */
@media (max-width: 900px) {
	.tf-footer__wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
	.tf-footer__main { padding: 42px 0 30px; }

	/* Logo: ocupaba demasiado espacio vertical en movil. */
	.tf-footer__brand { grid-column: 1 / -1; justify-self: center; order: 1; }
	.tf-footer__logo img { width: 104px; }

	/* CONTACTO y SIGUENOS comparten fila (pedido del usuario). */
	.tf-footer__col[aria-labelledby="tf-f-contacto"] { grid-column: 1; order: 2; }
	.tf-footer__col--social { grid-column: 2; order: 3; }

	/* La captacion de correo sube ANTES del bloque de tienda. */
	.tf-footer__col--news { grid-column: 1 / -1; order: 4; }
	.tf-footer__col[aria-labelledby="tf-f-tienda"] { grid-column: 1 / -1; order: 5; }
	.tf-footer__col[aria-labelledby="tf-f-ayuda"] { grid-column: 1 / -1; order: 6; }

	/* r5: separador entre bloques. En movil todo va apilado y sin una linea
	   no se distingue donde termina una seccion y empieza la siguiente.
	   CONTACTO y SIGUENOS comparten fila, asi que la linea la lleva solo
	   CONTACTO y se estira a las dos columnas con un pseudo-elemento. */
	.tf-footer__col { position: relative; padding-top: 22px; }
	.tf-footer__col--social { padding-top: 22px; }
	.tf-footer__col::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 1px;
		background: rgba(255, 255, 255, .14);
	}
	/* La fila compartida lleva UNA sola linea, no dos cortadas. */
	.tf-footer__col[aria-labelledby="tf-f-contacto"]::before { right: -18px; }
	.tf-footer__col--social::before { content: none; }
}

/* ═══ FRONTERA ANTI-TEMA ═══════════════════════════════════════════════
   Sin esto, Astra pinta el hover morado de los <a> y el Kit 882 mete
   `border: 2px solid #1f1f1f` en el boton de suscripcion. */
.tf-footer a,
.tf-footer a:hover,
.tf-footer a:focus,
.tf-footer a:visited { color: inherit; text-decoration: none; box-shadow: none !important; }
.tf-footer .tf-footer__list a:hover,
.tf-footer .tf-footer__list a:focus-visible { text-decoration: underline; opacity: .85; }
.tf-footer a::before,
.tf-footer a::after { background: transparent !important; content: none !important; }

.tf-footer button,
.tf-footer .tf-footer__submit {
	border: 1px solid var(--tf-f-ink) !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--tf-f-ink) !important;
	box-shadow: none !important;
	outline: none;
}
.tf-footer .tf-footer__submit:hover,
.tf-footer .tf-footer__submit:focus-visible {
	background: var(--tf-f-ink) !important;
	color: var(--tf-f-bg) !important;
}
.tf-footer button::before,
.tf-footer button::after { background: transparent !important; content: none !important; }

/* INPUTS: fondo BLANCO con texto OSCURO — igual que el footer original de
   Elementor, cuyos campos tambien son blancos.
   Historia de este bug, para no repetirlo: los hice transparentes con texto
   blanco y algo del entorno igual forzaba el fondo a #FEFEFE, dejando blanco
   sobre blanco al hacer click. Verificado con click REAL: el campo quedaba
   solido blanco con `:focus true` y `:-webkit-autofill false`, sin regla CSS
   que lo explicara y sin estilo inline — o sea no venia de la cascada.
   Tres intentos mios fallaron por atacar el estado equivocado (autofill).
   La solucion robusta es no pelear: si el fondo va a ser blanco, el texto va
   oscuro. Legible en TODOS los estados, pase lo que pase. */
.tf-footer input[type="text"],
.tf-footer input[type="email"],
.tf-footer .tf-footer__input {
	background: #fff !important;
	background-color: #fff !important;
	color: #14100a !important;
	-webkit-text-fill-color: #14100a !important;
	caret-color: #14100a !important;
	border: 1px solid #fff !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	outline: none;
	min-height: 44px;
}
.tf-footer input::placeholder {
	color: #6f6a63 !important;
	-webkit-text-fill-color: #6f6a63 !important;
	opacity: 1;
}
.tf-footer input:focus,
.tf-footer input:focus-visible {
	border-color: var(--tf-f-gold) !important;
	box-shadow: 0 0 0 2px rgba(201, 165, 74, .35) !important;
}
.tf-footer input::placeholder { color: rgba(255, 255, 255, .45) !important; }
.tf-footer input:focus { border-color: var(--tf-f-ink) !important; }
.tf-footer .tf-footer__label { color: var(--tf-f-label) !important; }
/* Autocompletado: coherente con el fondo blanco — texto oscuro. */
.tf-footer input:-webkit-autofill,
.tf-footer input:-webkit-autofill:hover,
.tf-footer input:-webkit-autofill:focus,
.tf-footer input:-webkit-autofill:active {
	-webkit-text-fill-color: #14100a !important;
	caret-color: #14100a !important;
	-webkit-box-shadow: 0 0 0 1000px #fff inset !important;
	box-shadow: 0 0 0 1000px #fff inset !important;
}

/* PASO 3 DEL RETIRO (2026-07-20) — aqui vivia:

       body.tf-footer-preview footer.elementor-location-footer { display:none!important }

   Eliminada por el mismo motivo que su gemela en tf-header.css: Elementor ya no
   toma la ubicacion footer. Medido: .elementor-location-footer = 0.
   Rollback del footer: tf_elementor_hf_retirado='0' + tf_footer_global='0'.
*/

/* El embed de Klaviyo trae estilos propios definidos en su panel. Solo se
   acota el ancho para que no desborde la columna; el resto del aspecto se
   configura del lado de Klaviyo, no aqui. */
.tf-footer .klaviyo-form-VNVJ5j { max-width: 100%; }
.tf-footer .klaviyo-form-VNVJ5j * { max-width: 100%; box-sizing: border-box; }
