/* Página Anunciá — lo propio de esta página. Lo compartido con Quiénes somos
   (hero, bandas, botones, encabezados) está en landing.css. */

/* ─── 2. Por qué formar parte — 4 cards ─── */
.template-anuncia .anuncia-valores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 1100px) {
  .template-anuncia .anuncia-valores {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .template-anuncia .anuncia-valores {
    grid-template-columns: 1fr;
  }
}

.template-anuncia .anuncia-valor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--anuncia-border);
  border-radius: 2px;
  background-color: var(--anuncia-card);
}

.template-anuncia .anuncia-valor-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color4);
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.template-anuncia .anuncia-valor h3 {
  font-family: var(--font1);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 600;
  color: var(--color1);
  line-height: 1.2;
}

.template-anuncia .anuncia-valor p {
  font-size: clamp(0.78rem, 1vw, 0.85rem);
  color: var(--color1);
  line-height: 1.65;
}

/* ─── 3. Formas de participación — 3 planes ─── */
.template-anuncia .anuncia-planes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
  padding-top: 1rem;
}

@media (max-width: 1100px) {
  .template-anuncia .anuncia-planes {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
    padding-top: 0;
  }
}

.template-anuncia .anuncia-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  padding: 2.25rem 2rem 2rem;
  border: 1px solid var(--anuncia-border);
  border-radius: 2px;
  background-color: var(--anuncia-card);
}

.template-anuncia .anuncia-plan.is-featured {
  border-color: var(--color1);
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(30, 30, 30, 0.08);
  padding-top: 3rem;
  margin-top: -1rem;
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .template-anuncia .anuncia-plan.is-featured {
    margin-top: 0;
  }
}

.template-anuncia .anuncia-plan-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background-color: var(--color1);
  color: #fff;
  font-family: var(--font2);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}

.template-anuncia .anuncia-plan-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.template-anuncia .anuncia-plan-title {
  font-family: var(--font1);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color1);
}

.template-anuncia .anuncia-plan-sub {
  font-family: var(--font2);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color1);
}

.template-anuncia .anuncia-plan-desc {
  font-size: 0.82rem;
  color: var(--color1);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.template-anuncia .anuncia-plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.template-anuncia .anuncia-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--color1);
  line-height: 1.45;
}

.template-anuncia .anuncia-plan-features i {
  font-size: 0.65rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
  color: var(--color1);
}

.template-anuncia .anuncia-plan-foot {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--anuncia-border);
}

.template-anuncia .anuncia-plan-ideal {
  font-size: 0.8rem;
  color: var(--color1);
  line-height: 1.5;
}

.template-anuncia .anuncia-plan-ideal strong {
  font-weight: 600;
}

.template-anuncia .anuncia-plan-foot .anuncia-btn {
  width: 100%;
}

/* ─── 4. Historia — banda con imagen ─── */
/* Banda a todo el ancho (la imagen llega al borde izquierdo); el padding derecho
   alinea el texto con el borde derecho de las otras secciones, igual que el hero. */
.template-anuncia .anuncia-historia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: 100%;
  padding-right: max(30px, calc((100% - var(--max-width-desktop)) / 2));
  background-color: #fff;
}

@media (max-width: 1280px) {
  .template-anuncia .anuncia-historia {
    padding-right: max(30px, calc((100% - var(--max-width-small-desktop)) / 2));
  }
}

.template-anuncia .anuncia-historia-media {
  position: relative;
  min-height: 340px;
  background-color: #d9d7d2;
  overflow: hidden;
}

.template-anuncia .anuncia-historia-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.template-anuncia .anuncia-historia-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 0 3rem 3.5rem;
}

.template-anuncia .anuncia-historia-text h2 {
  font-family: var(--font1);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--color1);
  line-height: 1.2;
  max-width: 20ch;
}

.template-anuncia .anuncia-historia-text p {
  font-size: clamp(0.82rem, 1vw, 0.9rem);
  color: var(--color1);
  line-height: 1.65;
}

.template-anuncia .anuncia-historia-text .anuncia-historia-strong {
  font-weight: 600;
}

.template-anuncia .anuncia-historia-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  padding-top: 1rem;
}

.template-anuncia .anuncia-historia-tags li {
  font-family: var(--font2);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color1);
}

.template-anuncia .anuncia-historia-tags li + li::before {
  content: "·";
  margin: 0 0.75rem;
}

@media (max-width: 900px) {
  .template-anuncia .anuncia-historia {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
  .template-anuncia .anuncia-historia-media {
    min-height: 260px;
  }
  .template-anuncia .anuncia-historia-text {
    padding: 2.25rem 30px;
  }
  .template-anuncia .anuncia-historia-tags {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .template-anuncia .anuncia-historia-text {
    padding: 2rem 15px;
  }
}

/* ─── 5. Publicidad y formatos complementarios ─── */
.template-anuncia .anuncia-comp {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 3rem;
  align-items: center;
}

.template-anuncia .anuncia-comp-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.template-anuncia .anuncia-comp-text p {
  font-size: clamp(0.82rem, 1vw, 0.9rem);
  color: var(--color1);
  line-height: 1.65;
  max-width: 38ch;
}

.template-anuncia .anuncia-comp-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.template-anuncia .anuncia-comp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 118px;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--anuncia-border);
  border-radius: 2px;
  background-color: var(--anuncia-card);
  text-align: center;
}

.template-anuncia .anuncia-comp-item i {
  font-size: 1.6rem;
  color: var(--color3);
}

.template-anuncia .anuncia-comp-item span {
  font-family: var(--font2);
  font-size: 0.72rem;
  color: var(--color1);
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .template-anuncia .anuncia-comp {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .template-anuncia .anuncia-comp-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Formatos disponibles ─── */
.template-anuncia .anuncia-formatos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.template-anuncia .anuncia-formato-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem;
  border: 1px solid rgba(140, 128, 113, 0.2);
  border-radius: 2px;
  background-color: #faf9f7;
}

@media (max-width: 1100px) {
  .template-anuncia .anuncia-formato-card {
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .template-anuncia .anuncia-formato-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Previews proporcionales de cada formato */
.template-anuncia .formato-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background-color: #e0ddd8;
  border: 1px dashed rgba(140, 128, 113, 0.4);
  position: relative;
}

.template-anuncia .formato-preview--horizontal {
  width: 100%;
  height: 50px;
}

.template-anuncia .formato-preview--intermedio {
  width: 100%;
  height: 90px;
}

.template-anuncia .formato-preview--lateral {
  width: 80px;
  height: 160px;
}

.template-anuncia .formato-preview--cuadrado {
  width: 160px;
  height: 160px;
}

.template-anuncia .formato-preview span {
  font-family: var(--font2);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color1);
}

.template-anuncia .formato-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.template-anuncia .anuncia-formato-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.template-anuncia .anuncia-formato-info h3 {
  font-family: var(--font1);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 600;
  color: var(--color1);
}

.template-anuncia .formato-badge {
  display: inline-block;
  font-family: var(--font2);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color4);
  border: 1px solid var(--color4);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  align-self: flex-start;
}

.template-anuncia .anuncia-formato-info p {
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  color: var(--color1);
  line-height: 1.65;
}

.template-anuncia .formato-dims {
  font-family: var(--font2);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color1);
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.template-anuncia .formato-dims strong {
  color: var(--color1);
}

/* ─── Form contacto ─── */
.template-anuncia .anuncia-contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  width: 100%;
  align-items: start;
}

@media (max-width: 1280px) {
  .template-anuncia .anuncia-contacto-grid {
    gap: 3.5rem;
  }
}

@media (max-width: 1100px) {
  .template-anuncia .anuncia-contacto-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.template-anuncia .anuncia-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.template-anuncia .anuncia-info-title {
  font-family: var(--font1);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  color: var(--color1);
  line-height: 1.2;
}

.template-anuncia .anuncia-info-text {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--color1);
  line-height: 1.75;
}

.template-anuncia .anuncia-info-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(140, 128, 113, 0.2);
}

.template-anuncia .anuncia-info-contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font2);
  font-size: 0.82rem;
  color: var(--color1);
}

.template-anuncia .anuncia-info-contact-item i {
  color: var(--color4);
  width: 16px;
  flex-shrink: 0;
}

.template-anuncia .anuncia-info-contact-item a {
  color: var(--color1);
  transition: color 0.2s;
}

.template-anuncia .anuncia-info-contact-item a:is(:hover, :focus-visible, :active) {
  color: var(--color4);
}

/* Form */
.template-anuncia .anuncia-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.template-anuncia .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 767px) {
  .template-anuncia .form-row {
    grid-template-columns: 1fr;
  }
}

.template-anuncia .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.template-anuncia .form-label {
  font-family: var(--font2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color1);
}

.template-anuncia .form-label .required {
  color: var(--color4);
  margin-left: 0.15rem;
}

.template-anuncia .form-input,
.template-anuncia .form-select,
.template-anuncia .form-textarea {
  font-family: var(--font2);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--color1);
  background-color: #faf9f7;
  border: 1px solid rgba(140, 128, 113, 0.3);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  -webkit-appearance: none;
}

.template-anuncia .form-input::placeholder,
.template-anuncia .form-textarea::placeholder {
  color: rgba(140, 128, 113, 0.5);
}

.template-anuncia .form-input:focus,
.template-anuncia .form-select:focus,
.template-anuncia .form-textarea:focus {
  border-color: var(--color4);
  background-color: #fff;
}

.template-anuncia .form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238c8071' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.template-anuncia .form-textarea {
  resize: vertical;
  height: 90px;
  min-height: 90px;
  max-height: 140px;
  line-height: 1.6;
}

.template-anuncia .form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
}

@media (max-width: 767px) {
  .template-anuncia .form-submit {
    flex-direction: column;
    align-items: flex-start;
  }
}

.template-anuncia .form-note {
  font-family: var(--font2);
  font-size: 0.72rem;
  color: var(--color1);
  line-height: 1.5;
}

.template-anuncia .form-btn {
  font-family: var(--font2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff !important;
  background-color: var(--color1) !important;
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.template-anuncia .form-btn:is(:hover, :focus-visible, :active) {
  background-color: var(--color4) !important;
  color: var(--color1) !important;
}

/* ─── Fluent Form overrides ─── */

.template-anuncia .anuncia-form .fluentform_wrapper_3,
.template-anuncia .anuncia-form .frm-fluent-form,
.template-anuncia .anuncia-form .frm-fluent-form fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.template-anuncia .anuncia-form .ff-el-group {
  margin-bottom: 0;
}

/* Fila de nombre (First / Last) */
.template-anuncia .anuncia-form .ff-name-field-wrapper .ff-t-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1rem;
  row-gap: 5px;
}

@media (max-width: 767px) {
  .template-anuncia .anuncia-form .ff-name-field-wrapper .ff-t-container {
    grid-template-columns: 1fr;
  }
}

.template-anuncia .anuncia-form .ff-t-cell {
  width: auto;
  padding: 0;
}

/* Fila Email + Teléfono (ff-column-container) */
.template-anuncia .anuncia-form .ff-column-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1rem;
  row-gap: 5px;
}

.template-anuncia .anuncia-form .ff-column-container .ff-t-cell {
  flex-basis: auto !important;
}

@media (max-width: 767px) {
  .template-anuncia .anuncia-form .ff-column-container {
    grid-template-columns: 1fr;
  }
}

/* Labels */
.template-anuncia .anuncia-form .ff-el-input--label label {
  font-family: var(--font2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color1);
  margin-bottom: 0.4rem;
  display: block;
}

/* Asterisco requerido */
.template-anuncia .anuncia-form .ff-el-is-required .ff-el-input--label label::after {
  content: ' *';
  color: var(--color4);
}

/* Inputs, selects y textarea */
.template-anuncia .anuncia-form .ff-el-form-control {
  font-family: var(--font2);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--color1);
  background-color: #faf9f7;
  border: 1px solid rgba(140, 128, 113, 0.3);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s, background-color 0.2s;
  -webkit-appearance: none;
}

.template-anuncia .anuncia-form .ff-el-form-control::placeholder {
  color: rgba(140, 128, 113, 0.5);
}

.template-anuncia .anuncia-form .ff-el-form-control:focus {
  border-color: var(--color4);
  background-color: #fff;
  box-shadow: none;
}

/* Select — flecha personalizada */
.template-anuncia .anuncia-form select.ff-el-form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238c8071' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Textarea */
.template-anuncia .anuncia-form textarea.ff-el-form-control {
  resize: vertical;
  height: 90px;
  min-height: 90px;
  max-height: 140px;
  line-height: 1.6;
}

/* Botón submit */
.template-anuncia .anuncia-form .ff_submit_btn_wrapper {
  padding-top: 0.5rem;
}

.template-anuncia .anuncia-form .ff-btn.ff-btn-submit {
  font-family: var(--font2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff !important;
  background-color: var(--color1) !important;
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
  height: auto;
  line-height: normal;
}

.template-anuncia .anuncia-form .ff-btn.ff-btn-submit:is(:hover, :focus-visible, :active) {
  background-color: var(--color4) !important;
  color: var(--color1) !important;
}

/* Error inline */
.template-anuncia .anuncia-form .error {
  font-family: var(--font2);
  font-size: 0.75rem;
  font-weight: 400;
  color: #b94040;
  margin-top: 0.35rem;
  display: block;
}

/* Mensajes de respuesta global */
.template-anuncia .ff-message-success,
.template-anuncia .ff-message-error,
.template-anuncia .ff-errors-in-stack {
  font-family: var(--font2);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  border: none;
}

.template-anuncia .ff-message-success {
  color: #2d6a2d;
  background-color: #edf7ed;
  border-left: 3px solid #3a7a3a;
}

.template-anuncia .ff-message-success p {
  font-family: var(--font2);
  font-size: 0.9rem;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.template-anuncia .ff-message-error,
.template-anuncia .ff-errors-in-stack {
  color: #8b2020;
  background-color: #fdf0f0;
  border-left: 3px solid #b94040;
}

/* ─── 7. Contacto — ajustes de la columna de texto (título en versalitas + regla) ─── */
.template-anuncia .anuncia-info-title {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.template-anuncia .anuncia-info-rule {
  display: block;
  width: 36px;
  height: 2px;
  background-color: var(--color1);
}
