/* ==========================================================================
   yc-mejoras.css — estilos propios del tema Yacoub (sin dependencias externas)
   Paleta del manual: negro #1D1F1C · naranja #EB7E09 · gris texto #4A4C48
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tasaciones · contenido del editor de WordPress (SEO)
   -------------------------------------------------------------------------- */
.tas-seo {
  display: block;
  padding: 2.5rem 0 0.5rem;
}

/* El tema aplica margin:60px 0 a todo <section> del template; el espaciado
   de .tas-seo lo maneja su propio padding. */
.template-vender .tas-seo { margin: 0; }

.tas-seo .container {
  max-width: 760px;
  margin: 0 auto;
}

.tas-seo h2,
.tas-seo h3,
.tas-seo h4 {
  color: #1D1F1C;
  font-family: 'gilroy-medium', sans-serif;
  font-weight: 400;
  line-height: 120%;
  margin: 2rem 0 0.75rem;
}

.tas-seo h2 { font-size: 28px; }
.tas-seo h3 { font-size: 22px; }
.tas-seo h4 { font-size: 18px; }

.tas-seo > .container > *:first-child {
  margin-top: 0;
}

.tas-seo p,
.tas-seo li {
  color: #4A4C48;
  font-size: 16px;
  line-height: 160%;
}

.tas-seo p {
  margin: 0 0 1rem;
}

.tas-seo ul,
.tas-seo ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.tas-seo ul { list-style: disc; }
.tas-seo ol { list-style: decimal; }

.tas-seo li { margin-bottom: 0.4rem; }

.tas-seo a {
  color: #EB7E09;
  text-decoration: underline;
}

.tas-seo img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .tas-seo { padding-top: 1.75rem; }
  .tas-seo h2 { font-size: 22px; }
  .tas-seo h3 { font-size: 19px; }
}

/* --------------------------------------------------------------------------
   Video institucional con marco de marca (Home y Red Yacoub)
   -------------------------------------------------------------------------- */
section.section-video.yc-dark {
  background: #1D1F1C;
  padding: 56px 0;
}

.yc-videowrap {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.yc-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid #44473F;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 0 10px rgba(22, 24, 22, .9);
}

.yc-frame iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

.yc-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C9CAC5;
  background: rgba(29, 31, 28, .78);
  padding: 7px 11px;
  border-radius: 4px;
  pointer-events: none;
}

.yc-badge i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EB7E09;
  margin-right: 7px;
  animation: ycpulse 2s infinite;
}

@keyframes ycpulse { 50% { opacity: .35; } }

.yc-ctl {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.yc-ctl button {
  background: rgba(29, 31, 28, .82);
  border: 1px solid #44473F;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.yc-ctl button:hover {
  border-color: #EB7E09;
  color: #EB7E09;
}

.yc-cap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 12px;
  color: #8A8C86;
}

/* --------------------------------------------------------------------------
   Home · cajas Vender / Comprar / Alquilar
   -------------------------------------------------------------------------- */
.template-home .section-4 .grid-3 .card {
  position: relative;
  overflow: hidden;
  border: 1px solid #E6E3DC;
  border-radius: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.template-home .section-4 .grid-3 .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #D9D5CC;
  transition: background .25s;
}

.template-home .section-4 .grid-3 .card:hover {
  transform: translateY(-8px);
  border-color: #EB7E09;
  box-shadow: 0 30px 55px -28px rgba(29, 31, 28, .45);
}

.template-home .section-4 .grid-3 .card:hover::before { background: #EB7E09; }

.template-home .section-4 .grid-3 .card .yc-ic {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1.5px solid #D9D5CC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .9rem;
  transition: border-color .25s;
}

.template-home .section-4 .grid-3 .card:hover .yc-ic { border-color: #EB7E09; }

.template-home .section-4 .grid-3 .card .yc-ic svg {
  width: 26px;
  height: 26px;
  stroke: #EB7E09;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-home .section-4 .grid-3 .card .btn { transition: transform .2s, background .2s, color .2s; }
.template-home .section-4 .grid-3 .card:hover .btn { transform: translateY(-2px); }

/* "Vender" invertida: es la caja que alimenta Tasaciones. */
.template-home .section-4 .grid-3 .card.yc-hi {
  background: #1D1F1C;
  border-color: #1D1F1C;
}

.template-home .section-4 .grid-3 .card.yc-hi::before { background: #EB7E09; }

.template-home .section-4 .grid-3 .card.yc-hi h2,
.template-home .section-4 .grid-3 .card.yc-hi p { color: #fff; }

.template-home .section-4 .grid-3 .card.yc-hi .yc-ic { border-color: #44473F; }

.template-home .section-4 .grid-3 .card.yc-hi .btn {
  background: #EB7E09;
  color: #fff;
  border-color: #EB7E09;
}

/* --------------------------------------------------------------------------
   Tasaciones · landing en 3 pasos
   -------------------------------------------------------------------------- */
.yc-tas-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .yc-tas-grid { grid-template-columns: 1fr; gap: 32px; }
}

.yc-why h3 {
  color: #1D1F1C;
  font-family: 'gilroy-medium', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 .4rem;
}

.yc-why p { color: #4A4C48; opacity: .85; }

.yc-why ul {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: .9rem;
}

.yc-why li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: .8rem;
  align-items: center;
  color: #4A4C48;
}

.yc-why li b {
  font-size: 1.7rem;
  color: #EB7E09;
  line-height: 1;
}

.yc-form {
  background: #fff;
  border: 1px solid #E6E3DC;
  border-top: 4px solid #EB7E09;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 24px 50px -30px rgba(29, 31, 28, .35);
}

.yc-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.yc-steps span {
  flex: 1;
  height: 4px;
  background: #E6E3DC;
  border-radius: 2px;
  transition: background .3s;
}

.yc-steps span.done { background: #EB7E09; }

.yc-stepl {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8A8C86;
  margin-bottom: 12px;
}

.yc-fstep { display: none; }
.yc-fstep.on { display: block; }

.yc-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1rem;
}

@media (max-width: 520px) {
  .yc-types { grid-template-columns: repeat(2, 1fr); }
}

.yc-types button {
  background: #FAF9F6;
  border: 1px solid #D9D5CC;
  color: #4A4C48;
  padding: 14px 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}

.yc-types button.sel,
.yc-types button:hover {
  border-color: #EB7E09;
  color: #1D1F1C;
  background: #FBEBD8;
}

.yc-fnav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 1.2rem;
}

.yc-btn2 {
  background: transparent;
  border: 1.5px solid #1D1F1C;
  color: #1D1F1C;
  padding: .7rem 1.4rem;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.yc-err {
  display: none;
  color: #B42318;
  font-size: 12px;
  margin: -.4rem 0 .6rem;
}

.yc-form .yc-bad { border-color: #B42318 !important; }

@media (prefers-reduced-motion: reduce) {
  .template-home .section-4 .grid-3 .card,
  .template-home .section-4 .grid-3 .card .btn,
  .yc-badge i {
    transition: none;
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Formularios · aviso de error devuelto por el servidor
   -------------------------------------------------------------------------- */
.yc-formerr {
  display: block;
  margin: 1rem 0 0;
  padding: .75rem 1rem;
  border: 1px solid #F0C2BC;
  border-left: 4px solid #B42318;
  border-radius: 6px;
  background: #FDF3F2;
  color: #B42318;
  font-size: 14px;
  line-height: 1.45;
}

/* El .yc-err base esta oculto: el que agrega el servidor se muestra siempre. */
.yc-err.yc-err-srv { display: block; }
