/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

span.btn-container a.btn.btn-default {
    color: #ffffff !important;
    background-color: #70D9FD !important;
    border-color: #70D9FD !important;
    color: #0B3A6E !important;
}

.style-light .btn-default:not(.btn-hover-nobg):not(.icon-animated):not(.btn-flat):hover, 
.style-dark .style-light .btn-default:not(.btn-hover-nobg):not(.icon-animated):not(.btn-flat):hover {
    color: #ffffff !important;
    background-color: #3DBFEA !important;
    border-color: #3DBFEA !important;
    color: #0B3A6E !important;
}

.btn-color-prearsa-azul {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.btn-color-prearsa-azul:not(.btn-flat):not(.btn-hover-nobg):not(.icon-animated):not(.btn-text-skin):hover {
    background-color: rgba(220, 220, 220, 0.2) !important;
    background: rgba(220, 220, 220, 0.2) !important;
    border-color: rgba(220, 220, 220, 0.2) !important;
    color: #ffffff !important;
}

/* ===== Formulario CF7 ===== */
.cf7-form-wrapper {
  width: 100%;
  font-family: inherit;
}

.cf7-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 28px;
}

.cf7-col {
  flex: 1 1 calc(50% - 15px);
  min-width: 240px;
  display: flex;
  flex-direction: column;
}

.cf7-col-full {
  flex: 1 1 100%;
}

.cf7-col > label {
  font-weight: 700;
  font-size: 16px;
  color: #0e0e0e;
  margin-bottom: 10px;
}

.cf7-col .req {
  color: #0e0e0e; /* cambia a #d40000 si lo quieres en rojo */
  margin-left: 2px;
}

/* CF7 envuelve cada input en este span: hay que estirarlo */
.cf7-col .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Inputs de una línea: alto fijo 50px */
.cf7-col input[type="text"],
.cf7-col input[type="email"],
.cf7-col input[type="tel"] {
  width: 100%;
  height: 50px;
  background-color: #f0eef5;
  border: none;
  padding: 0 20px;
  font-size: 15px;
  border-radius: 4px;
  box-sizing: border-box;
  color: #1a1a1a;
  font-family: inherit;
  transition: background-color .15s ease, box-shadow .15s ease;
}

/* Textarea: mantiene su altura propia */
.cf7-col textarea {
  width: 100%;
  min-height: 260px;
  background-color: #f0eef5;
  border: none;
  padding: 18px 20px;
  font-size: 15px;
  border-radius: 4px;
  box-sizing: border-box;
  color: #1a1a1a;
  font-family: inherit;
  resize: vertical;
  line-height: 1.5;
  transition: background-color .15s ease, box-shadow .15s ease;
}

.cf7-col input:focus,
.cf7-col textarea:focus {
  outline: none;
  background-color: #e8e6ef;
  box-shadow: 0 0 0 2px #14274a;
}

/* ===== Footer: acceptance + submit en una sola fila ===== */
.cf7-footer {
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.cf7-acceptance {
  flex: 1 1 auto;
  min-width: 240px;
}

.cf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.cf7-acceptance .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-size: 15px;
  color: #0e0e0e;
}

.cf7-acceptance .wpcf7-list-item-label {
  flex: 1;
}

/* Checkbox redondo estilo captura */
.cf7-acceptance input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  background-color: #f0eef5;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  margin: 0;
  transition: background-color .15s ease;
}

.cf7-acceptance input[type="checkbox"]:checked {
  background-color: #14274a;
}

.cf7-acceptance input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cf7-acceptance a {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}

/* ===== Botón Enviar ===== */
.cf7-submit {
  flex: 0 0 auto;
}

.cf7-submit input[type="submit"] {
  background-color: #14274a;
  color: #fff;
  border: none;
  height: 51px;
  padding: 0 70px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  font-family: inherit;
  transition: background-color .2s ease, transform .1s ease;
}

.cf7-submit input[type="submit"]:hover {
  background-color: #1f3563;
}

.cf7-submit input[type="submit"]:active {
  transform: translateY(1px);
}

/* Spinner de CF7 al enviar */
.cf7-submit .wpcf7-spinner {
  margin-left: 12px;
}

/* ===== Mensajes de error/respuesta de CF7 ===== */
.wpcf7-not-valid-tip {
  color: #d40000;
  font-size: 13px;
  margin-top: 6px;
}

.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .cf7-row {
    gap: 18px;
    margin-bottom: 20px;
  }
  .cf7-col {
    flex: 1 1 100%;
  }
  .cf7-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .cf7-submit input[type="submit"] {
    width: 100%;
    padding: 18px;
  }
}

li.menu-item-button .menu-item {
    background-color: #70D9FD;
    border: 0px;
    color: #001739;
    border-radius: 0px;
    text-transform: initial !important;
}

/* ─── Acordeón Transparencia ──────────────────────────────────────────────── */
.prearsa-trans-acc {
  --pta-brand:       #001739;
  --pta-divider:     rgba(0, 23, 57, .08);
  --pta-row-hover:   rgba(0, 23, 57, .035);
  --pta-row-active:  rgba(0, 23, 57, .05);
  margin-top: 0 !important;
}

.prearsa-trans-acc .ac {
  margin-bottom: 0 !important;
  border: 0 !important;
  background: transparent;
}

/* Filas planas: mismo padding para triggers y hojas. */
.prearsa-trans-acc .ac-trigger,
.prearsa-trans-acc__leaf {
  padding: 14px 20px !important;
  background-color: transparent;
  transition: background-color .15s ease;
}

/* Tipografía del título: peso normal en reposo, sube a 600 al estar abierto. */
.prearsa-trans-acc__title-text {
  color: var(--pta-brand) !important;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
  line-height: 1.4;
}

.prearsa-trans-acc__leaf-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Nivel 0: única zona con color de marca, identifica la raíz. */
.n-0 > .ac-header {
  background-color: var(--pta-brand) !important;
  margin: 0 !important;
}
.n-0 > .ac-header .prearsa-trans-acc__title-text {
  color: #ffffff !important;
  font-weight: 600;
}

/* Separación entre hermanos: una sola línea fina, sin tints por nivel. */
.prearsa-trans-acc__group > * + * {
  border-top: 1px solid var(--pta-divider);
}

/* Hover y abierto: tintes apenas perceptibles. No se reaplican al nivel 0. */
.prearsa-trans-acc .ac:not(.n-0) > .ac-header > .ac-trigger:hover,
.prearsa-trans-acc__leaf:hover {
  background-color: var(--pta-row-hover);
}
.prearsa-trans-acc .ac.is-active:not(.n-0) > .ac-header > .ac-trigger {
  background-color: var(--pta-row-active);
}
.prearsa-trans-acc .ac.is-active > .ac-header .prearsa-trans-acc__title-text {
  font-weight: 600;
}

/* Foco accesible. */
.prearsa-trans-acc .ac-trigger:focus-visible,
.prearsa-trans-acc__leaf-link:focus-visible {
  outline: 2px solid var(--pta-brand);
  outline-offset: -2px;
}

/* Sangría única y suave por profundidad, controlada por --pta-indent. */
.prearsa-trans-acc__panel-inner {
  padding: 0 0 0 var(--pta-indent, 16px);
}

/* ─── Descripción en línea de un nodo ─────────────────────────────────────── */
.prearsa-trans-acc__desc {
  padding: 12px 20px 4px;
  color: #33415C;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
.prearsa-trans-acc__desc > *:first-child { margin-top: 0; }
.prearsa-trans-acc__desc > *:last-child  { margin-bottom: 0; }
.prearsa-trans-acc__desc p { margin: 0 0 .8em; }
.prearsa-trans-acc__desc strong { color: var(--pta-brand); }
.prearsa-trans-acc__desc a {
  color: #1f3563;
  text-decoration: underline;
}

/* ─── Documentos / enlaces adjuntos dentro de un nodo ─────────────────────── */
.prearsa-trans-acc__attachments {
  padding: 4px 20px 12px;
}
.prearsa-trans-acc__att-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.prearsa-trans-acc__att-item + .prearsa-trans-acc__att-item {
  border-top: 1px solid var(--pta-divider);
}
.prearsa-trans-acc__att-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  color: var(--pta-brand);
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  transition: background-color .15s ease, color .15s ease;
}
.prearsa-trans-acc__att-link:hover {
  background-color: var(--pta-row-hover);
  color: var(--pta-brand);
}
.prearsa-trans-acc__att-link:focus-visible {
  outline: 2px solid var(--pta-brand);
  outline-offset: -2px;
}
.prearsa-trans-acc__att-icon {
  flex: 0 0 auto;
  color: #5B6B85;
}
.prearsa-trans-acc__att-title {
  flex: 1 1 auto;
  min-width: 0;
}
.prearsa-trans-acc__att-meta {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #5B6B85;
  white-space: nowrap;
}

nav.prearsa-migas-transparencia {
    margin-top: 0px !important;
}