/* ======================================
   PALAU CONTACT — ELEGANT REDESIGN
   ====================================== */

.pv-contact {
  --pv-bg:        #F2F3F4;
  --pv-dark:      #2B2B2B;
  --pv-p1:        #759BA3;
  --pv-p2:        #F9B882;
  --pv-p3:        #A5899E;
  --pv-border:    rgba(43,43,43,.12);
  --pv-grad:      linear-gradient(100deg, #759BA3 0%, #A5899E 50%, #F9B882 100%);
  --pv-radius:    4px;

  font-family: 'Montserrat', sans-serif;
  color: var(--pv-dark);
  background: #fff;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem;
}

/* ── HEADER ── */

.pv-contact__header {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 72px;
  position: relative;
}

.pv-contact__header::before {
  content: "CONTACTO";
  position: absolute;
  top: -28px;
  left: -8px;
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 900;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(117,155,163,.14);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.pv-contact__eyebrow {
  display: block;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pv-p1);
  margin-bottom: 18px;
  position: relative;
  padding-left: 42px;
}

.pv-contact__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 1px;
  background: var(--pv-grad);
}

.pv-contact__title .pv-contact__title-line{
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0 0 24px;
  position: relative;
  background: var(--pv-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pv-contact__subtitle {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(43,43,43,.65);
  margin: 0;
}

/* ── BODY GRID ── */

.pv-contact__body {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: start;
}

/* ── ASIDE: INFO ── */

.pv-contact__aside {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pv-contact__info-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--pv-bg);
}

.pv-contact__info-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--pv-border);
  transition: background .25s;
}

.pv-contact__info-row:last-child {
  border-bottom: none;
}

.pv-contact__info-row:hover {
  background: rgba(117,155,163,.07);
}

.pv-contact__info-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--pv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pv-p1);
  margin-top: 2px;
}

.pv-contact__info-icon svg {
  width: 16px;
  height: 16px;
}

.pv-contact__info-label {
  display: block;
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(43,43,43,.5);
  margin-bottom: 4px;
}

.pv-contact__info-value {
  display: block;
  font-size: .95rem;
  color: var(--pv-dark);
  line-height: 1.6;
}

.pv-contact__info-value a {
  color: var(--pv-dark) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(117,155,163,.4);
  transition: color .25s, border-color .25s;
}

.pv-contact__info-value a:hover {
  color: var(--pv-p1) !important;
  border-color: var(--pv-p1);
}

/* ── MAP ── */

.pv-contact__map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--pv-border);
  position: relative;
}

.pv-contact__map::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
  z-index: 1;
  pointer-events: none;
}

.pv-contact__map iframe {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
  filter: grayscale(.3) contrast(1.05);
}

/* ── FORM ── */

.pv-contact__form-wrap {
  position: relative;
}

.pv-contact__form-wrap::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117,155,163,.12) 0%, transparent 70%);
  pointer-events: none;
}

.pv-contact__form-inner {
  background: var(--pv-bg);
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}

.pv-contact__form-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pv-grad);
}

.pv-contact__form-header {
  margin-bottom: 32px;
}

.pv-contact__form-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  color: var(--pv-dark);
}

.pv-contact__form-header p {
  font-size: .875rem;
  color: rgba(43,43,43,.55);
  margin: 0;
}

/* ── CF7 overrides within form wrap ── */

.pv-contact__form-inner .wpcf7 {
  max-width: none;
}

.pv-contact__form-inner .wpcf7-form p {
  margin-bottom: 20px;
}

.pv-contact__form-inner .wpcf7-form label {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(43,43,43,.65);
  display: block;
  margin-bottom: 6px;
}

.pv-contact__form-inner .wpcf7 input[type="text"],
.pv-contact__form-inner .wpcf7 input[type="email"],
.pv-contact__form-inner .wpcf7 textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border: 1px solid rgba(43,43,43,.2);
  border-radius: var(--pv-radius);
  background: #fff;
  font-size: .95rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--pv-dark);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  margin-top: 0;
}

.pv-contact__form-inner .wpcf7 input[type="text"]:focus,
.pv-contact__form-inner .wpcf7 input[type="email"]:focus,
.pv-contact__form-inner .wpcf7 textarea:focus {
  border-color: var(--pv-p1);
  box-shadow: 0 0 0 3px rgba(117,155,163,.15);
  background: #fff;
}

.pv-contact__form-inner .wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.pv-contact__form-inner .wpcf7 input[type="submit"] {
  width: 100%;
  padding: 15px 28px;
  background: var(--pv-dark);
  color: #fff;
  border: 1px solid var(--pv-dark);
  border-radius: var(--pv-radius);
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s, transform .2s, box-shadow .3s;
  display: block;
  margin-top: 8px;
}

.pv-contact__form-inner .wpcf7 input[type="submit"]:hover {
  background: var(--pv-p1);
  border-color: var(--pv-p1);
  box-shadow: 0 8px 24px rgba(117,155,163,.35);
  transform: translateY(-1px);
}

.pv-contact__form-inner .wpcf7-response-output {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--pv-radius);
  border: 1px solid var(--pv-p1);
  background: rgba(117,155,163,.08);
  font-size: .875rem;
}

.pv-contact__form-inner .wpcf7-not-valid {
  border-color: var(--pv-p2) !important;
  box-shadow: 0 0 0 3px rgba(249,184,130,.15) !important;
}

.pv-contact__form-inner .wpcf7-not-valid-tip {
  color: #b85c00;
  font-size: .75rem;
  margin-top: 4px;
  display: block;
}

/* ── PRIVACY ── */

.pv-contact__privacy {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--pv-border);
  font-size: .78rem;
  color: rgba(43,43,43,.55);
  line-height: 1.6;
}

.pv-contact__privacy a {
  color: var(--pv-p1) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(117,155,163,.35);
  transition: border-color .25s;
}

.pv-contact__privacy a:hover {
  border-color: var(--pv-p1);
}

/* ── SELECT CUSTOM STYLES ── */

.pv-contact__form-inner .wpcf7 select {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border: 1px solid rgba(43,43,43,.2);
  border-radius: var(--pv-radius);
  background: #fff;
  font-size: .95rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--pv-dark);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  margin-top: 0;
  cursor: pointer;
  
  /* Eliminar la flecha por defecto en algunos navegadores para control total */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  /* Añadir una flecha personalizada elegante */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23759BA3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
}

.pv-contact__form-inner .wpcf7 select:focus {
  border-color: var(--pv-p1);
  box-shadow: 0 0 0 3px rgba(117,155,163,.15);
  background-color: #fff;
}

/* Estilo para las opciones dentro del desplegable */
.pv-contact__form-inner .wpcf7 select option {
  padding: 10px;
  color: var(--pv-dark);
  background: #fff;
}

/* Ajuste para que el label del select mantenga la coherencia */
.pv-contact__form-inner .wpcf7-form-control-wrap[class*="menu-"] {
  display: block;
  margin-bottom: 20px;
}

/* ── RESPONSIVE ── */

@media (max-width: 1024px) {
  .pv-contact__body {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .pv-contact__aside {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .pv-contact__info-block {
    flex: 1 1 340px;
  }
  .pv-contact__map {
    flex: 1 1 300px;
  }
  .pv-contact__map iframe {
    height: 300px;
  }
}

@media (max-width: 700px) {
  .pv-contact {
    padding: 48px 20px 72px;
  }
  .pv-contact__header {
    margin-bottom: 48px;
  }
  .pv-contact__header::before {
    display: none;
  }
  .pv-contact__aside {
    flex-direction: column;
  }
  .pv-contact__form-inner {
    padding: 28px 20px;
  }
}