/* Contenedor del formulario */


/* Campos de texto y textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea {
  width: 100%;
  padding: 1.5rem 1.75rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1.5rem;
  line-height: 0.4;
  margin-bottom: 1.5rem;
  background-color: #fafafa;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--dorado);
  box-shadow: 0 0 6px rgba(122,0,170,0.08);
  outline: none;
}

/* Botón enviar */
/* === Botón Enviar con Efecto de Brillo === */
.wpcf7-form .wpcf7-submit {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, var(--oro), #e0d800);
  color: #fff;
  padding: 1.5rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 6px 18px rgba(122, 0, 170, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: pulsoBrillo 2.8s ease-in-out infinite;
}

/* === Luz que se mueve por el botón === */
.wpcf7-form .wpcf7-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.3) 100%
  );
  transform: skewX(-25deg);
  animation: brilloDeslizante 3.8s linear infinite;
}

/* === Hover con efecto === */
.wpcf7-form .wpcf7-submit:hover {
  background: #0a76a8de;
}

/* === Animaciones === */
@keyframes brilloDeslizante {
  0% {
    left: -80%;
  }
  100% {
    left: 140%;
  }
}

@keyframes pulsoBrillo {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.25);
  }
}



/* Contenedor principal centrado y separado del header */
main.contenido-centrado {
  margin-top: 70px;      /* separa todo el contenido del header */
  padding: 3rem 2rem 4rem; /* padding interno del card */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
 
}

/* 🔹 Título fuera del card */
.titulo-pagina-wrapper {
  text-align: center;
  margin: 5rem 0 2rem;
}

.titulo-pagina-wrapper .titulo-pagina {
  font-family: var(--fuente-headings);
  font-size: 4.2rem;
  color: var(--secundario);
  margin: 0;
}

/* 🔹 Ajuste: elimina fondo blanco solo del título */
main.contenido-centrado {
  background: #fff; /* mantiene el fondo blanco del contenido */
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  padding: 4rem 2rem;
  margin: 0 auto;
  max-width: 850px;
}

/* 🔹 Ajuste superior para separar el card del título */
main.contenido-centrado .contenedor {
  margin-top: 2rem;
}


/* Encabezado para el título del formulario */
.titulo-formulario {
  margin-top: 2rem;
  margin-bottom: 4rem !important;
 
  font-weight: 600;
  line-height: 1.3;
  color: var(--secundario);
  text-align: center;
}

/* Quitar saltos <br> del checkbox */
.wpcf7-form br {
  display: none !important;
}

/* Reducir espacio antes del checkbox */
.wpcf7-form textarea {
  margin-bottom: 0.5rem !important;
}

.wpcf7-checkbox {
  margin-top: 0.2rem !important;
}


/* Ampliar mapa de ubicacion con modal */
.map-fullscreen-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.map-fullscreen-btn:hover {
    background: #f0f0f0;
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.map-fullscreen-btn span {
    font-size: 18px;
    line-height: 1;
}

.map-full-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
}

.map-full-content {
    width: 90%;
    height: 90%;
    margin: 3% auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.map-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.map-close-btn:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}

/* Estilos de página de agentes */
/* ===== RESET TOTAL SOLO AGENTES ===== */

.grid-agentes,
.grid-agentes * {
  all: unset;
  box-sizing: border-box;
}

/* ===== GRID ===== */

.grid-agentes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ===== CARD ===== */

.card-agente {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.card-agente:hover {
  transform: translateY(-6px);
}

/* ===== IMAGEN ===== */

.card-agente img {
  height: 320px;
  width: 100%;
  object-fit: cover;
}

/* ===== TEXTO ===== */

.card-agente h3 {
  padding-top: 1.2rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.2rem;
}

.card-agente .cargo {
  font-size: 1rem;
  color: #666;
  text-align: center;
  margin-bottom: 1rem;
}

/* ===== BOTONES ===== */

.agente-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  padding: 0 1rem 1.2rem;
  flex-wrap: wrap;
}

.agente-actions a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .3rem;
  padding: .6rem 1rem;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  min-width: 90px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.agente-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,.15);
}

.btn-tel { background: #444; }
.btn-wp  { background: #25D366; }
.btn-mail{ background: #2b4163; }

.agente-actions img {
  width: 16px;
  height: 16px;
}

/* ===== ESPACIOS GENERALES ===== */

.agentes-page {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.agentes-page .titulo-pagina {
  margin-top: .5rem;
  margin-bottom: 2rem;
}

.grid-agentes {
  margin-top: 0;
}

/* ===== ESTILO PREMIUM ===== */

.card-agente {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

/* Línea elegante separadora */
.card-agente h3 {
  margin-top: 1.2rem;
  letter-spacing: -.3px;
}

.card-agente .cargo {
  letter-spacing: .4px;
  font-weight: 500;
}

/* Barra de botones estilo luxury */
.agente-actionse {
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 1rem;
}

/* Botones premium */
.btn-tel {
  background: linear-gradient(135deg, #2c2c2c, #555);
}

.btn-wp {
  background: linear-gradient(135deg, #1ebd5a, #25D366);
}

.btn-mail {
  background: linear-gradient(135deg, #1c2f4a, #2b4163);
}

/* Hover PRO */
.agente-actions a:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

/* Iconos más visibles */
.agente-actions img {
  filter: brightness(0) invert(1);
  opacity: .95;
}




/* ===============================
   ULTRA PRO CARD — REAL ESTATE
   =============================== */

.card-agente {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
  transition: all .45s cubic-bezier(.2,.8,.2,1);
}

.card-agente:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 35px 70px rgba(0,0,0,0.18);
}

/* Overlay elegante */
.card-agente::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%);
  opacity: 0;
  transition: .4s ease;
  z-index: 1;
}

.card-agente:hover::before {
  opacity: 1;
}

/* Imagen PRO */
.card-agente img {
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

.card-agente:hover img {
  transform: scale(1.07);
}

/* Nombre */
.card-agente h3 {
  position: relative;
  z-index: 2;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -.5px;
  margin-top: 1.3rem;
  color: #111;
}

/* Cargo */
.card-agente .cargo {
  position: relative;
  z-index: 2;
  font-size: .95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  color: #777;
  margin-bottom: 1.3rem;
}

/* Barra acciones */
.agente-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: .8rem;
  padding: 1rem 1.2rem 1.4rem;
  border-top: 1px solid rgba(0,0,0,.05);
}

/* Botones PRO */
.agente-actions a {
  flex: 1;
  min-width: 90px;
  border-radius: 14px;
  padding: .7rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  transition: all .35s ease;
}

/* Tel */
.btn-tel {
  background: linear-gradient(135deg, #2c2c2c, #555);
}

/* WhatsApp */
.btn-wp {
  background: linear-gradient(135deg, #1ebd5a, #25D366);
  box-shadow: 0 8px 20px rgba(37,211,102,.45);
}

/* Email */
.btn-mail {
  background: linear-gradient(135deg, #1c2f4a, #2b4163);
}

/* Hover botones */
.agente-actions a:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

/* Iconos más claros */
.agente-actions img {
  filter: brightness(0) invert(1);
  opacity: .95;
}




/* =======================================
   ULTRA LUXURY CARD – SOTHEBY'S STYLE
   ======================================= */

.card-agente {
    position: relative;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 2.8rem 2rem 3rem;
    box-shadow: 0 20px 45px rgba(0,0,0,.08);
    transition: all 0.35s ease;
    border: 1px solid rgba(255,255,255,0.4);
    overflow: hidden;
}

.card-agente:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,.18);
}

/* Imagen */
.card-agente img {
  height: 340px;
  width: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
}

.card-agente:hover img {
  transform: scale(1.1);
}

/* Overlay elegante */
.card-agente::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.6), transparent);
    opacity: 0;
    transition: .4s;
}

.card-agente:hover::before {
    opacity: 1;
}

/* Contenido */
.card-agente h3,
.card-agente .cargo {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Nombre */
.card-agente h3 {
  margin-top: 1.4rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.6px;
  color: #111;
}

/* Cargo */
.card-agente .cargo {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #777;
  margin-bottom: 1.5rem;
}

/* Barra flotante */
.agente-actions {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: .7rem;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  padding: .7rem .9rem;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  opacity: 0;
  transition: .45s ease;
  z-index: 3;
}

.card-agente:hover .agente-actions {
  opacity: 1;
  bottom: 26px;
}

/* Botones luxury */
.agente-actions a {
  padding: .6rem .9rem;
  border-radius: 14px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: all .35s ease;
}

/* Tel */
.btn-tel {
  background: linear-gradient(135deg,#1e1e1e,#444);
}

/* WhatsApp */
.btn-wp {
  background: linear-gradient(135deg,#1dbf5b,#25D366);
  box-shadow: 0 8px 20px rgba(37,211,102,.5);
}

/* Email */
.btn-mail {
  background: linear-gradient(135deg,#16263f,#2b4163);
}

/* Hover botones */
.agente-actions a:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

/* Iconos */
.agente-actions img {
  filter: brightness(0) invert(1);
}





/* ===== BADGES PRO / ELITE ===== */

.badge-agente {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: .35rem .75rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  border-radius: 50px;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  backdrop-filter: blur(4px);
}

.badge-pro {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    box-shadow: 0 5px 15px rgba(37,99,235,.4);
}

.badge-elite {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #111;
    box-shadow: 0 5px 15px rgba(217,119,6,.45);
}
 

/* Botones contacto en pagina de propiedades */
/* Contenedor del widget */
.contacto-agente-widget {
    position: sticky;
    top: 100px;
    max-width: 320px;
    margin-left: auto;
    margin-right: 20px;
    z-index: 50;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

/* Aparece con animación */
.contacto-agente-widget.animar-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Tarjeta de botones flotante */
.tarjeta-agente {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
    border: 1px solid #e0e0e0;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-agente:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}

/* Botones animados con degradado y glow */
.contacto-agente-btn {
    flex: 1 1 auto;
    min-width: 130px;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.contacto-agente-btn-tel {
    background: linear-gradient(270deg, #007BFF, #00C6FF);
    background-size: 400% 400%;
    animation: gradientAnimation 6s ease infinite;
}
.contacto-agente-btn-wp {
    background: linear-gradient(270deg, #25D366, #00FFAB);
    background-size: 400% 400%;
    animation: gradientAnimation 6s ease infinite;
}
.contacto-agente-btn-mail {
    background: linear-gradient(270deg, #ff5e57, #ff9a8b);
    background-size: 400% 400%;
    animation: gradientAnimation 6s ease infinite;
}

.contacto-agente-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25), 0 0 15px rgba(255,255,255,0.3) inset;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Texto adicional */
.tarjeta-agente-footer {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #333;
    background-color: #f4f4f4;
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-align: center;
    line-height: 1.6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-agente-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.16);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 992px) {
    .contacto-agente-widget {
        position: relative;
        top: 0;
        max-width: 100%;
        margin: 30px auto 0 auto;
    }
}


/* ===============================
   FIX SOLO RESPONSIVE — AGENTES
   =============================== */

@media (max-width: 768px) {

  /* Corrige proporción imagen */
  .card-agente img {
   
   
    object-fit: cover;
  }

  /* Elimina overlays que interfieren */
  .card-agente::before {
    display: none;
  }

  /* Evita flotación hover */
  .card-agente:hover {
    transform: none;
    box-shadow: 0 16px 35px rgba(0,0,0,.12);
  }

  /* Muestra botones siempre */
  .agente-actions {
    position: relative;
    opacity: 1;
    bottom: auto;
    transform: none;
    margin-top: 1rem;
  }

  /* Simula hover al tocar */
  .card-agente:active img {
    transform: scale(1.05);
  }

}

@media (max-width: 768px) {

  /* Corrige centrado del efecto */
  .card-agente:active,
  .card-agente:focus-within {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 22px 50px rgba(0,0,0,.18);
  }

  .card-agente:active img,
  .card-agente:focus-within img {
    transform: scale(1.06);
  }

  /* Mantiene botones centrados */
  .agente-actions {
    justify-content: center;
  }

}
/* ===============================
   FIX RESPONSIVE CARD AGENTES
   SOLO MOBILE / TABLET
   =============================== */

@media (max-width: 992px) {

  .card-agente {
    padding-bottom: 2rem;
  }

  /* Imagen consistente */
  .card-agente img {
    height: 300px;
    object-fit: cover;
  }

  /* Quitamos posicion flotante */
  .agente-actions {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    opacity: 1;
    margin: 1.2rem auto 0;
    width: fit-content;
    display: flex;
    justify-content: center;
    gap: .7rem;
    padding: .6rem .8rem;
    border-radius: 18px;
  }

  /* Botones centrados */
  .agente-actions a {
    min-width: 110px;
    justify-content: center;
    font-size: .75rem;
  }

  /* Quitamos hover falso en mobile */
  .card-agente:hover .agente-actions {
    bottom: auto;
  }

}
@media (max-width: 992px) {

  /* Estructura estable vertical */
  .card-agente {
    display: flex;
    flex-direction: column;
  }

  /* Imagen bloque independiente */
  .card-agente img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Contenido siempre separado */
  .card-agente h3,
  .card-agente .cargo,
  .card-agente .agente-actions {
    margin-left: 1.2rem;
    margin-right: 1.2rem;
  }

  .card-agente h3 {
    margin-top: 1.4rem;
  }

}

