/* ========= ESTILOS TARJETA AGENTE ========= */

/* Paleta corporativa */
:root {
    --ai-blue: #1A2758;   /* Azul tomado del logo */
    --ai-yellow: #F4C400; /* Amarillo aproximado del fondo */
}

/* Ocultar header / footer / plantillas globales SOLO en agentes
   (si tu CPT se llama "agente" o "agentes", cubrimos ambos) */
body.single-agente header,
body.single-agentes header,
body.single-agente .site-header,
body.single-agentes .site-header,
body.single-agente nav,
body.single-agentes nav,
body.single-agente .main-header,
body.single-agentes .main-header,
body.single-agente footer,
body.single-agentes footer,
body.single-agente .site-footer,
body.single-agentes .site-footer,
body.single-agente .elementor,
body.single-agentes .elementor,
body.single-agente .envato-block__preview,
body.single-agentes .envato-block__preview,
body.single-agente .swiper-container,
body.single-agentes .swiper-container {
    display: none !important;
}

/* Fondo general */
body.single-agente,
body.single-agentes {
    background: #f4f5f7;
}

/* Contenedor centrado */
#ai-page {
  width: 100%;
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* TARJETA */
.ai-card {
  width: 100%;
  max-width: 520px;
  background-color: #ffffff;
  padding: 40px 40px 210px;  /* altura total ajustable */
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0,0,0,0.12);

  background-size: cover;
  /* ANTES: background-position: center 20%;
     AHORA lo bajamos para que el skyline quede más abajo */
  background-position: center 150px;
  background-repeat: no-repeat;
}

/* Contenido por encima del fondo */
.ai-card > * {
  position: relative;
  z-index: 2;
}

/* LOGO principal */
.ai-logo {
  display: block;
  /* ANTES: width: 280px;  AHORA un poco más grande */
  width: 390px;
  max-width: 90%;
  margin: 0 auto 10px;
}

/* Título */
.ai-card h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ai-blue); /* antes #153a63 */
  margin: 0 0 16px;
}

/* Datos del agente */
.ai-agent-photo-wrap {
  margin: 10px 0 8px;
  display: flex;
  justify-content: center;
}

.ai-agent-photo {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.ai-agent-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ai-blue); /* antes #153a63 */
  margin: 8px 0 2px;
}

.ai-agent-role {
  font-size: 0.95rem;
  font-weight: 500;
  color: #4b5f7b;
  margin: 0 0 6px;
}

.ai-agent-frase {
  font-size: 0.9rem;
  color: #66707c;
  margin: 0 0 18px;
}

/* Botones */
.ai-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 10px 0;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ai-blue);              /* antes #153a63 */
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: 0.2s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.ai-btn span {
  display: inline-flex;
  align-items: center;
}

/* Hover */
.ai-btn:hover {
  background: #f5b800;
  color: var(--ai-blue) !important;        /* antes #153a63 */
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.20);
}

/* Iconos */
.ai-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Desktop */
@media (min-width: 768px) {
  #ai-page {
    padding: 60px 20px;
  }

  .ai-card {
    max-width: 560px;
  }

  .ai-logo {
    /* ANTES: 300px, lo subimos un poco también en desktop */
    width: 390px;
  }
}
