/* Overrides rápidos aquí */

.psk-cf7 { width: 100%; }

.psk-cf7 .psk-grid{
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 100%;
}

/* Fila 2: Asunto ocupa TODO el ancho */
.psk-cf7 .psk-subject{
  grid-column: 1 / -1 !important;
}

/* Fila 3: Mensaje ocupa TODO el ancho */
.psk-cf7 .psk-message{
  grid-column: 1 / -1 !important;
}

/* Inputs */
.psk-cf7 .psk-input{
  width: 100% !important;
  display: block;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

/* Textarea grande */
.psk-cf7 textarea.psk-input{
  min-height: 180px;   /* “texto enorme” */
  resize: vertical;
}

/* RGPD + captcha + botón */
.psk-cf7 .psk-legal{ margin-top: 15px; font-size: 14px; }
.psk-cf7 .psk-captcha{ margin-top: 12px; }
.psk-cf7 .psk-actions{ margin-top: 12px; }

/* Responsive: apilar */
@media (max-width: 768px){
  .psk-cf7 .psk-grid{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .psk-cf7 .psk-subject,
  .psk-cf7 .psk-message{
    grid-column: auto !important;
  }
}
/* Textarea: escribir SIEMPRE desde arriba */
.psk-cf7 textarea.psk-input {
  vertical-align: top;
  text-align: left;
  line-height: 1.4;          /* normal, evita centrado visual */
  padding-top: 10px;         /* texto pegado arriba */
  padding-bottom: 10px;
  display: block;            /* nunca flex */
}

.psk-cf7 textarea.psk-input {
  display: block !important;
}

/* Avatar base */
.profile-badge{
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;              /* centrado */
}

.profile-badge img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Avatar responsive */
@media (max-width: 768px){
  .profile-badge{
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px){
  .profile-badge{
    width: 72px;
    height: 72px;
  }
}


.psk-profile {
  padding: 40px 0;
}

.psk-profile__wrap {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr; /* izquierda estrecha, derecha ancha */
  gap: 2px;
  align-items: start;
  width: 100%;
}

/* Tarjeta izquierda */
.psk-profile__card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

/* Avatar */
.psk-profile__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px auto; /* centrado */
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

.psk-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Texto de la ficha */
.psk-profile__meta {
  text-align: center;
}

.psk-profile__name,
.psk-profile__surname {
  font-weight: 800;
  line-height: 1.1;
}

.psk-profile__name { font-size: 18px; }
.psk-profile__surname { font-size: 18px; margin-top: 2px; }

.psk-profile__role {
  margin-top: 8px;
  font-weight: 700;
  opacity: .9;
}

.psk-profile__license {
  margin-top: 6px;
  font-size: 13px;
  opacity: .75;
}

/* Columna derecha */
.psk-profile__text h2 {
  margin: 0 0 12px 0;
  /* si usas la variable del tema: */
  color: var(--esmeralda);
}

.psk-profile__text p {
  margin: 0 0 12px 0;
}

/* Responsive: en móvil se apila (derecha debajo de izquierda) */
@media (max-width: 768px) {
  .psk-profile__wrap {
    grid-template-columns: 1fr; /* una columna */
  }

  .psk-profile__card {
    padding: 16px;
  }

  .psk-profile__avatar {
    width: 96px;
    height: 96px;
  }
}


/* Make the global container padding responsive (100px is too much on mobile) */
@media (max-width: 992px){
  :root{ --padding-x:16px; }
}
@media (min-width: 993px) and (max-width: 1200px){
  :root{ --padding-x:32px; }
}

/* Ensure logos never overflow */
.site-header .custom-logo,
.site-header .custom-logo-link img,
.site-header .navbar-brand img{
  max-height: 84px;
  width: auto;
  height: auto;
}
@media (max-width: 992px){
  .site-header .custom-logo,
  .site-header .custom-logo-link img,
  .site-header .navbar-brand img{
    max-height: 44px;
  }
}

/* Topbar: stack neatly on small screens */
@media (max-width: 768px){
  .topbar .container-psk{
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .topbar .container-psk > .ms-auto{
    margin-left: 0 !important;
    width: 100%;
  }
  .topbar .btn{
    width: 100%;
  }
  .topbar{ font-size: 14px; }
}

/* Navbar: make the collapsed menu look good */
@media (max-width: 992px){
  .navbar .navbar-collapse{
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .navbar-nav .nav-link{
    padding: .6rem 0;
  }
}


/* PERFIL: columna izquierda más estrecha */
.psk-profile .psk-profile__wrap{
  grid-template-columns: 200px 1fr !important; /* cambia 200px a 180/220 según quieras */
}

/* Opcional: que la tarjeta izquierda no “ensanche” por contenido */
.psk-profile .psk-profile__card{
  min-width: 0;
}

/* Opcional: que el texto pueda ocupar el resto sin desbordar */
.psk-profile .psk-profile__text{
  min-width: 0;
}
.psk-profile .psk-profile__card{
  width: auto !important;
  max-width: 100% !important;
}

/* Evitar scroll horizontal accidental */
html, body {
  overflow-x: hidden;
}

/* Asegura que la navbar sea el "ancla" del desplegable */
.site-header .navbar {
  position: relative;
}

/* En móvil/tablet: el menú desplegable siempre debajo y a ancho completo */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
    border-radius: 0 0 12px 12px;
    z-index: 9999;
  }

  /* Que los items no se queden "a la derecha" */
  .site-header .navbar-nav {
    width: 100%;
  }

  .site-header .navbar-nav .nav-link {
    padding: 10px 0;
    white-space: normal;
  }

  /* Por si hay un ms-auto metiendo empujón */
  .site-header .navbar-nav.ms-auto {
    margin-left: 0 !important;
  }
}

