/*
Theme Name: Tiwalao Kadence Child
Theme URI: https://nuevo.inforepuestos.com/
Description: Tema hijo de Kadence para el Proyecto Tiwalao.
Author: Washington C.
Author URI: https://nuevo.inforepuestos.com/
Template: kadence
Version: 1.0.0
Text Domain: tiwalao-kadence-child
*/
body {
  outline: 8px solid red !important;
}

/* ==================================================
   CSS GLOBAL DEL PROYECTO TIWALAO
   ================================================== */

/* Variables globales */
:root {
    --tiwalao-color-principal: #315f57;
    --tiwalao-color-secundario: #eef7f4;
    --tiwalao-color-texto: #202124;
    --tiwalao-color-blanco: #ffffff;
    --tiwalao-radio: 12px;
    --tiwalao-ancho-contenido: 1180px;
}

/* Ajustes globales básicos */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    color: var(--tiwalao-color-texto);
}

/* Contenedor reutilizable */
.tiwalao-contenedor {
    width: min(100% - 32px, var(--tiwalao-ancho-contenido));
    margin-inline: auto;
}

/* Botón general */
.tiwalao-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--tiwalao-radio);
    background: var(--tiwalao-color-principal);
    color: var(--tiwalao-color-blanco);
    text-decoration: none;
    font-weight: 600;
}

.tiwalao-boton:hover,
.tiwalao-boton:focus-visible {
    opacity: 0.9;
    color: var(--tiwalao-color-blanco);
}

/* Folio blanco: entrada sola o entrada + sidebar */
.single-post .content-container {
    background: #ffffff;
   /* box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.04);*/
}

/* Evitar que se vean cajas separadas dentro del folio */
.single-post .entry-content-wrap {
    background: transparent;
    box-shadow: none;
}

/* El sidebar forma parte de la misma hoja blanca */
.single-post .primary-sidebar,
.single-post .sidebar-inner-wrap {
    background: transparent;
    box-shadow: none;
}

/* Sombra más discreta en móvil */
@media screen and (max-width: 767px) {
    .single-post .content-container {
        box-shadow: 0 2px 9px rgba(0, 0, 0, 0.08);
    }
}
/* Ocultar el sidebar solamente en teléfonos */
@media screen and (max-width: 767px) {
    body.has-sidebar .primary-sidebar {
        display: none !important;
    }

    body.has-sidebar .content-container {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


.tw-course-widget {
  width: 100%;
  box-sizing: border-box;

  margin: 0 0 20px;
  padding: 22px 20px;

  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
}

.tw-course-widget__title {
  margin: 0 0 10px;
  padding: 0;

  color: #111111;

  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.tw-course-widget__text {
  margin: 0 0 18px;
  padding: 0;

  color: #555555;

  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.tw-course-widget a.tw-course-widget__button,
.tw-course-widget a.tw-course-widget__button:link,
.tw-course-widget a.tw-course-widget__button:visited {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 48px;
  box-sizing: border-box;

  padding: 11px 18px;

  background-color: #123d49 !important;
  color: #ffffff !important;

  border: 0;
  border-radius: 8px;

  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;

  text-align: center;
  text-decoration: none !important;

  transition: background-color 0.2s ease;
}

.tw-course-widget a.tw-course-widget__button:hover,
.tw-course-widget a.tw-course-widget__button:focus,
.tw-course-widget a.tw-course-widget__button:active {
  background-color: #174c5b !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.tw-course-widget a.tw-course-widget__button:focus-visible {
  outline: 3px solid rgba(18, 61, 73, 0.28);
  outline-offset: 3px;
}

.course-navigation {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 20px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.06),
      0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .course-navigation h2 {
    margin: 0 0 12px;
    padding: 0;
    color: #111111;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
  }

  .course-navigation h3 {
    margin: 0 0 4px;
    padding: 0;
    color: #111111;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
  }

  .course-navigation .course-week {
    margin: 4px 0 12px;
    padding: 0;
    color: #111111;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
  }

  .course-navigation .course-lessons {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
  }

  .course-navigation .course-lessons li {
    position: relative;
    margin: 0;
    padding: 4px 0 4px 26px;
    color: #444444;
    font-size: 15px;
    line-height: 1.5;
  }

  .course-navigation .course-lessons li::before {
    content: "📖";
    position: absolute;
    top: 4px;
    left: 0;
    width: 18px;
    color: #174C5B;
    font-size: 15px;
    line-height: 1.5;
  }

  .course-navigation .course-lessons a {
    color: #174C5B;
    font-weight: 500;
    text-decoration: none;
    transition:
      color 0.2s ease,
      text-decoration-color 0.2s ease;
  }

  .course-navigation .course-lessons a:hover,
  .course-navigation .course-lessons a:focus {
    color: #123D49;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .course-navigation .course-lessons a:focus-visible {
    outline: 2px solid #174C5B;
    outline-offset: 3px;
    border-radius: 2px;
  }



.recommended-book {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 20px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

.recommended-book h2 {
  margin: 0 0 14px;
  color: #111111;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.recommended-book__image-link {
  display: block;
  max-width: 180px;
  margin: 0 auto 16px;
}

.recommended-book__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.recommended-book__text {
  margin: 0 0 14px;
  color: #4a4a4a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.recommended-book__button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  background: #174c5b;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.recommended-book__button:hover,
.recommended-book__button:focus {
  background: #123d49;
  color: #ffffff;
  transform: translateY(-1px);
}

.recommended-book__button:focus-visible {
  outline: 2px solid #174c5b;
  outline-offset: 3px;
}

.recommended-book__notice {
  margin: 10px 0 0;
  color: #666666;
  font-size: 11px;
  line-height: 1.4;
}
.recommended-book a.recommended-book__button,
.recommended-book a.recommended-book__button:visited {
  background-color: #174c5b !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.recommended-book a.recommended-book__button:hover,
.recommended-book a.recommended-book__button:focus,
.recommended-book a.recommended-book__button:active {
  background-color: #123d49 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.course-navigation,
.recommended-book {
  font-size: 14px;
}

.course-navigation .course-lessons li {
  font-size: 14px;
  line-height: 1.5;
}

.course-navigation .course-week {
  font-size: 14px;
}

.recommended-book__notice {
  font-size: 10px;
  line-height: 1.4;
}

/*separa sidebar de header*/
@media (min-width: 1025px) {
  #secondary {
    margin-top: 32px;
  }
}
/*fin separar sidebar de header*/

/*tamaño excerpt de categorias*/
.archive .entry-summary,
.category .entry-summary {
    font-size: 15px;
    line-height: 1.45;
}
@media (max-width: 767px) {
    .archive .entry-summary,
    .category .entry-summary {
        font-size: 14px;
        line-height: 1.45;
    }
}
/*fin de tamaño excerpt categorias*/

/* Tarjetas de Kadence en archivos y categorías */
.archive .loop-entry,
.category .loop-entry,
.archive article.entry,
.category article.entry {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.archive .entry-content-wrap,
.category .entry-content-wrap {
    padding: 20px;
}
/*fin de tarjeta de kadence en archivos y categorias*/

.choose-lesson-block {
	position: relative;
	width: 100vw;
	max-width: none;
	padding: 24px 18px 22px;
	background: #ffffff;
	color: #111111;
	text-align: center;
	margin: 20px calc(50% - 50vw) 0 calc(50% - 50vw);
}

.choose-lesson-inner {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
	text-align: center;
}

.choose-lesson-title {
	margin: 0 0 10px;
	padding: 0;
	color: #111111;
	font-size: 22px;
	font-weight: bold;
	line-height: 1.25;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
}

.choose-lesson-description {
	max-width: 720px;
	margin: 0 auto 18px;
	padding: 0;
	color: #444444;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	text-align: center;
}

.choose-lesson-button {
	display: flex;
	width: 90%;
	max-width: 430px;
	min-height: 58px;
	margin: 0 auto;
	padding: 0 22px;
	align-items: center;
	justify-content: center;
	border: 1px solid #123f49;
	border-radius: 10px;
	background: #123f49;
	color: #ffffff;
	font-size: 18px;
	font-weight: bold;
	line-height: 1;
	text-align: center;
	text-decoration: none;
}


.spanish-audio-phrase {
  display: flex;
  align-items: center;
  gap: 8px;
}
/*altavoz
.audio-icon {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.audio-icon:hover,
.audio-icon:focus,
.audio-icon:active {
  background: transparent;
  border: 0;
  box-shadow: none;
}
fin de altavoz*/

.tiwala-audio-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;

	width: 38px;
	height: 38px;

	margin: 0;
	padding: 0;

	border: 0;
	border-radius: 4px;
	background: transparent;
	box-shadow: none;

	color: #123D49;

	font: inherit;
	line-height: 1;
	text-decoration: none;

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;

	transition: color 0.2s ease;
}

.tiwala-audio-button:hover {
	border: 0;
	background: transparent;
	box-shadow: none;

	color: #287a59;

	transform: none;
}

.tiwala-audio-button:focus {
	border: 0;
	background: transparent;
	box-shadow: none;

	color: #287a59;

	transform: none;
}

.tiwala-audio-button:active {
	border: 0;
	background: transparent;
	box-shadow: none;

	color: #287a59;

	transform: none;
}

.tiwala-audio-button:focus-visible {
	outline: 2px solid #287a59;
	outline-offset: 3px;
}

.tiwala-audio-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 27px;
	height: 27px;

	color: inherit;
	line-height: 1;

	pointer-events: none;
}

.tiwala-audio-icon svg {
	display: block;

	width: 100%;
	height: 100%;

	fill: currentColor;
}
/* Foto del autor en la página de contacto */

.tiwala-contact-photo {
  width: clamp(120px, 18vw, 120px);
  margin: 0 auto 1.25rem;
}

.tiwala-contact-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  /*border: 4px solid #123D49;*/
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 4px 14px rgba(18, 61, 73, .18);
}

/* TARJETA */
.tw-course-widget {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;

    margin: 0;
    padding: 18px 16px;

    background: #fff;
    border: 1px solid #e1e5e7;
    border-radius: 10px;
}

/* TÍTULO */
.tw-course-widget__title {
    margin: 0 0 10px;

    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
}

/* TEXTO */
.tw-course-widget__text {
    margin: 0 0 16px;

    font-size: 0.9rem;
    line-height: 1.55;
}

/* BOTÓN */
.tw-course-widget a.tw-course-widget__button {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;

    margin: 0;
    padding: 11px 16px;

    background-color: #123D49;
    color: #fff !important;

    border: 0;
    border-radius: 7px;

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
}

/* HOVER */
.tw-course-widget a.tw-course-widget__button:hover,
.tw-course-widget a.tw-course-widget__button:focus {
    background-color: #174C5B;
    color: #fff !important;
    text-decoration: none !important;
}

/*curso navigatii segundo widget*/
.course-navigation {
    width: 100%;
    box-sizing: border-box;

    margin: 0;
    padding: 18px 16px;

    background: #fff;
    border: 1px solid #e1e5e7;
    border-radius: 10px;
}

.course-navigation h2 {
    margin: 0 0 10px;

    font-size: 1.08rem;
    line-height: 1.3;
    font-weight: 700;
}

.course-navigation h3 {
    margin: 0 0 6px;

    font-size: 0.98rem;
    line-height: 1.35;
    font-weight: 600;
}

.course-week {
    margin: 0 0 8px;

    font-size: 0.88rem;
    line-height: 1.4;
    font-weight: 600;

    opacity: 0.75;
}

.course-lessons {
    margin: 0;
    padding: 0;

    list-style: none;
}

.course-lessons li {
    margin: 0;
    padding: 0;

    border: 0;
}

.course-lessons a {
    position: relative;

    display: block;

    margin: 0;
    padding: 3px 0 3px 24px;

    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 500;

    color: inherit;
    text-decoration: none;
}

.course-lessons a::before {
    content: "📘";

    position: absolute;
    left: 0;
    top: 3px;

    font-size: 0.95rem;
    line-height: 1;
}

.course-lessons a:hover,
.course-lessons a:focus {
    color: #123D49;
    text-decoration: underline;
}
/* fin de curso navigatii segundo widget*/

/*inicio de amazon lateral*/
.recommended-book {
    width: 100%;
    box-sizing: border-box;

    margin: 0;
    padding: 18px 16px;

    background: #fff;
    border: 1px solid #e1e5e7;
    border-radius: 10px;
}

.recommended-book h2 {
    margin: 0 0 12px;

    font-size: 1.08rem;
    line-height: 1.3;
    font-weight: 700;
}

.recommended-book__image-link {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    text-decoration: none;
}

.recommended-book__image {
    display: block;

    width: 100%;
    max-width: 220px;
    height: auto;

    margin: 0 auto;

    border-radius: 8px;
}

.recommended-book__text {
    margin: 0 0 16px;

    font-size: 0.9rem;
    line-height: 1.55;
}

.recommended-book a.recommended-book__button {
    display: block;

    width: 100%;
    max-width: none;
    box-sizing: border-box;

    margin: 0 0 12px;
    padding: 11px 16px;

    background-color: #123D49;
    color: #fff !important;

    border: 0;
    border-radius: 7px;

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
}

.recommended-book a.recommended-book__button:hover,
.recommended-book a.recommended-book__button:focus {
    background-color: #174C5B;
    color: #fff !important;
    text-decoration: none !important;
}

.recommended-book__notice {
    margin: 0;

    font-size: 0.76rem;
    line-height: 1.45;

   /* opacity: 1;*/
}

/*boton gramatica*/
.tiwala-grammar-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: fit-content;
    max-width: calc(100% - 40px);
    margin: 22px auto;
    padding: 12px 34px;

    box-sizing: border-box;
    border-radius: 10px;
    background-color: #123D49;
    color: #ffffff;

    text-align: center;
    text-decoration: none;
    line-height: 1.2;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.tiwala-grammar-button:hover,
.tiwala-grammar-button:focus {
    background-color: #174C5B;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.tiwala-grammar-top {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.7px;
}

.tiwala-grammar-main {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.tiwala-grammar-bottom {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 400;
}

@media (max-width: 600px) {
    .tiwala-grammar-button {
        width: calc(100% - 24px);
        max-width: none;
        padding: 12px 14px;
    }

    .tiwala-grammar-top {
        font-size: 10px;
    }

    .tiwala-grammar-main {
        font-size: 19px;
    }

    .tiwala-grammar-bottom {
        font-size: 11px;
    }
}
/*fin boton grmatica*/
/*ancho comentarios*/@media screen and (max-width: 719px) { .content-style-boxed .comments-area { padding-left: 0;  padding-right: 0;  } }
/*fin ancho de comentarios*/
/* Tiwala Quiz: color normal de los botones */
.tiwala-quiz .tiwala-quiz__button {
	background-color: #123D49 !important;
	border-color: #123D49 !important;
	color: #ffffff !important;
}

/* Tiwala Quiz: color al pasar el cursor o usar el teclado */
.tiwala-quiz .tiwala-quiz__button:hover,
.tiwala-quiz .tiwala-quiz__button:focus {
	background-color: #174C5B !important;
	border-color: #174C5B !important;
	color: #ffffff !important;
}

/* Cápsula de etapa situada sobre el H1 */
.single-post .entry-taxonomies .category-links a {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 5px 11px;
	border: 1px solid rgba(18, 61, 73, 0.35);
	border-radius: 999px;
	background-color: rgba(18, 61, 73, 0.05);
	color: #123D49 !important;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	text-transform: none;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

/* Hover y navegación con teclado */
.single-post .entry-taxonomies .category-links a:hover,
.single-post .entry-taxonomies .category-links a:focus {
	border-color: #174C5B;
	background-color: #174C5B;
	color: #ffffff !important;
	text-decoration: none !important;
}

/* Contorno accesible al navegar con teclado */
.single-post .entry-taxonomies .category-links a:focus-visible {
	outline: 2px solid rgba(23, 76, 91, 0.35);
	outline-offset: 2px;
}

/* Cápsula más compacta en móvil */
@media (max-width: 767px) {
	.single-post .entry-taxonomies .category-links a {
		padding: 4px 9px;
		font-size: 0.8125rem;
		letter-spacing: 0.01em;
	}
}

/*nuevo codigo para sidebar y color de fondo*/
body.single {
    background: #fff;
}
@media screen and (min-width: 1025px) {
    .primary-sidebar {
        padding: 20px 0;
        margin: 0;
    }
}
/*fin de nuevo codigo para sidebar y color de fondo*/
/* =========================================================
   TIWALAO · FOOTER CENTRADO EN UNA SOLA COLUMNA
========================================================= */

.site-footer,
.site-footer .site-footer-row-container-inner,
.site-footer .footer-widget-area,
.site-footer .footer-widget-area-inner {
  background-color: #123D49 !important;
  color: #FFFFFF !important;
}

/* Todo el contenido en un único cuerpo centrado */

.tiwala-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  color: #FFFFFF;
  font-family: inherit;
  text-align: center;
}

.tiwala-footer__column {
  width: 100%;
  text-align: center;
}

.tiwala-footer p {
  margin: 0 auto .6rem;
  color: #FFFFFF !important;
  font-size: .88rem;
  line-height: 1.5;
  text-align: center;
}

.tiwala-footer__title {
  margin-bottom: .45rem !important;
  font-size: 1.08rem !important;
  font-weight: 700;
}

.tiwala-footer__note {
  margin-bottom: 1rem !important;
  color: #F1F5F5 !important;
  font-size: .82rem !important;
  line-height: 1.45 !important;
}

/* Enlaces legales */

.tiwala-footer__nav {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: .4rem auto .9rem;
  gap: .5rem 1rem;
  text-align: center;
}

.tiwala-footer__nav a {
  color: #F7C034 !important;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
}

.tiwala-footer__nav a:hover,
.tiwala-footer__nav a:focus-visible {
  color: #FFFFFF !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Copyright y firma */

.tiwala-footer__copy {
  width: 100%;
  margin-top: .75rem !important;
  padding-top: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: .8rem !important;
  text-align: center;
}

.tiwala-footer__signature {
  margin-top: .35rem !important;
  color: #F1F5F5 !important;
  font-size: .8rem !important;
  text-align: center;
}

.tiwala-footer__signature strong {
  color: #FFFFFF !important;
  font-weight: 600;
}

/* =========================================================
   MÓVIL: ENLACES APILADOS Y CENTRADOS
========================================================= */

@media (max-width: 767px) {
  .tiwala-footer {
    width: 100%;
    max-width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    box-sizing: border-box;
  }

  .tiwala-footer__nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
  }

  .tiwala-footer__nav a {
    display: block;
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
  }

  .tiwala-footer p {
    font-size: .85rem;
  }

  .tiwala-footer__copy,
  .tiwala-footer__signature {
    font-size: .78rem !important;
  }
}
/* =========================================================
   TIWALAO · FORMULARIO DE CONTACTO
========================================================= */

.tiwala-contact-form {
  width: 100%;
  max-width: 680px;
  margin: 2rem auto;
}

.tiwala-contact-form__field {
  margin-bottom: 1.1rem;
}

.tiwala-contact-form__field label {
  display: block;
  margin-bottom: .4rem;
  color: #123D49;
  font-size: .95rem;
  font-weight: 700;
}

.tiwala-contact-form__field label span {
  color: #B42318;
}

.tiwala-contact-form__field input,
.tiwala-contact-form__field textarea {
  display: block;
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid #AAB8BC;
  border-radius: 5px;
  background: #FFFFFF;
  color: #1F2933;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  box-sizing: border-box;
}

.tiwala-contact-form__field textarea {
  min-height: 170px;
  resize: vertical;
}

.tiwala-contact-form__field input:focus,
.tiwala-contact-form__field textarea:focus {
  border-color: #123D49;
  outline: 3px solid rgba(18, 61, 73, .16);
}

/* Checkbox de privacidad claramente visible */

.tiwala-contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 1.2rem 0;
  color: #263238;
  font-size: .9rem;
  line-height: 1.5;
  cursor: pointer;
}

.tiwala-contact-form__consent input[type="checkbox"] {
  display: block !important;
  flex: 0 0 20px;
  width: 20px !important;
  height: 20px !important;
  margin: .1rem 0 0 !important;
  padding: 0 !important;
  border: 2px solid #123D49 !important;
  border-radius: 3px;
  opacity: 1 !important;
  visibility: visible !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  accent-color: #123D49;
  cursor: pointer;
}

.tiwala-contact-form__consent span {
  display: block;
  flex: 1;
}

.tiwala-contact-form__consent a {
  color: #123D49;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Botón */

.tiwala-contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .75rem 1.4rem;
  border: 0;
  border-radius: 5px;
  background: #123D49;
  color: #FFFFFF;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease;
}

.tiwala-contact-form__submit:hover,
.tiwala-contact-form__submit:focus {
  background: #174C5B;
  color: #FFFFFF;
}

/* Mensajes */

.tiwala-contact-form__notice {
  margin-bottom: 1.2rem;
  padding: .9rem 1rem;
  border-radius: 5px;
  font-size: .92rem;
  line-height: 1.5;
}

.tiwala-contact-form__notice--success {
  border: 1px solid #75A886;
  background: #EDF8F0;
  color: #205C34;
}

.tiwala-contact-form__notice--error {
  border: 1px solid #D99B96;
  background: #FFF1F0;
  color: #8A1C13;
}

/* Campo antispam */

.tiwala-contact-form__website {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Móvil */

@media (max-width: 767px) {
  .tiwala-contact-form {
    margin: 1.5rem auto;
  }

  .tiwala-contact-form__field input,
  .tiwala-contact-form__field textarea {
    font-size: 16px;
  }

  .tiwala-contact-form__submit {
    width: 100%;
  }
}