/* estilos-globales.css */

.site-header {
  background-color: #fff;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #ccc;
}

/* TÍTULO centrado arriba */
.contenedor-header {
  max-width: 1200px;
  margin: auto;
  padding: 0.7rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contenedor-header-logo {
  text-align: center;
  width: 100%;
  padding: 1.5rem 1rem 0.3rem 1rem;
}

.titulo-header {
  font-size: 3.2rem;
  margin: 0;
}

.titulo-header a {
  color: #000;
  text-decoration: none;
  display: inline-block;
}

/* MENÚ centrado debajo */
.contenedor-header-menu {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  border-top: 1px solid #ccc;
}

.menu-principal {
  display: flex;
  justify-content: center;
}

.nav-items {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-items li a {
  color: #000;
  text-decoration: none;
  padding: 0.5rem 1rem; /* aumenta también el padding para que cuadre */
  background-color: #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid #ccc;
  display: inline-block;
  font-size: 1.15rem; /* tamaño más grande */
}

.nav-items li a:hover {
  background-color: #f2f2f2; /* Un leve gris solo al hacer hover */
  color: #000;
}

.boton-login {
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.boton-login:hover {
  background-color: #f0f0f0;
}

.menu-perfil {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-perfil img.avatar-perfil-menu {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.menu-perfil a {
  display: flex;
  align-items: center;
}

/* Responsive */
.icono-menu {
  display: none;
}

@media (max-width: 768px) {
  .icono-menu {
    display: block;
  }
  
@media (max-width: 768px) {
  .nav-items li a {
    font-size: 1rem; /* tamaño más pequeño para móvil */
    padding: 0.4rem 0.7rem; /* ajustamos padding para que quede bien */
  }
}

  .nav-items {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    right: 0;
    top: 100%;
    width: 200px;
    border: 1px solid #000;
  }

  #toggle-menu:checked + .icono-menu + .nav-items {
    display: flex;
  }
}

/* Página de Inicio */

.hero {
  text-align: center;
  padding: 4rem 1rem;
  background-color: #fff;
}

.hero h1 {
  color: #000;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  color: #000;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.boton-cta {
  background-color: #000;
  color: #fff;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.boton-cta:hover {
  background-color: #333;
}

.ventajas {
  padding: 3rem 1rem;
  text-align: center;
  background-color: #fff;
}

.ventajas h2 {
  color: #000;
  margin-bottom: 1rem;
}

.lista-ventajas {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 400px;
}

.lista-ventajas li {
  margin: 1rem 0;
  font-size: 1.1rem;
}

/* Página de Membresías */
.membresias {
  padding: 2rem 1rem;
  text-align: center;
}

.membresias .introduccion h1 {
  color: #000;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.membresias .introduccion p {
  color: #000;
  max-width: 600px;
  margin: auto;
  font-size: 1.1rem;
}

/* Contenedor general de planes */
.planes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

/* Cada tarjeta de plan: sombra base y transición mejorada */
.plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 2rem;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* SOMBRADO BASE */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #000;
}

/* Hover: elevación + ligero giro 3D + sombra aumentada */
.plan:hover {
  transform: translateY(-8px) perspective(600px) rotateX(2deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* --- Fondo joya Free (sin efecto) --- */
.plan-free {
  background-color: #fff;
}

/* --- Fondo joya Premium (Rubí cristalizado) --- */
.plan-premium {
  background: linear-gradient(
    135deg,
    #9b111e 0%,
    #c21b2d 50%,
    #760016 100%
  );
  background-size: 200% 200%;
  animation: joya-shimmer 4s ease-in-out infinite alternate;
  color: #fff;
}

/* --- Fondo joya VIP (Dorado cristalizado) --- */
.plan-vip {
  background: linear-gradient(
    135deg,
    #d4af37 0%,
    #fff1a8 50%,
    #b89e1f 100%
  );
  background-size: 200% 200%;
  animation: joya-shimmer 4s ease-in-out infinite alternate;
  color: #000;
}

/* --- Fondo joya Elite (Platino cristalizado) --- */
.plan-elite {
  background: linear-gradient(
    135deg,
    #e5e4e2 0%,
    #f2f2f2 50%,
    #c8c8c8 100%
  );
  background-size: 200% 200%;
  animation: joya-shimmer 4s ease-in-out infinite alternate;
  color: #000;
}

/* --- Fondo joya 1% (Negro cristalizado) --- */
.plan-1porciento {
  background: linear-gradient(
    135deg,
    #222 0%,
    #555 50%,
    #000 100%
  );
  background-size: 200% 200%;
  animation: joya-shimmer 4s ease-in-out infinite alternate;
  color: #fff;
}

/* Animación de “brillo” */
@keyframes joya-shimmer {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 100%; }
}

/* Título y precio */
.plan h2 {
  margin-bottom: 0.5rem;
  width: 100%;
}

.plan .precio {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  width: 100%;
}

/* Lista de beneficios */
.plan ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  width: 100%;
}

.plan ul li {
  margin-bottom: 0.5rem;
}

/* Botón “Únete gratis” siempre abajo y centrado */
.plan .boton-cta {
  margin-top: auto;
  display: block;
  text-align: center;
}

/* ===== Ocultar por completo el <a> del plan Free ===== */
.plan-free .boton-cta {
  display: none !important;
}

/* Badge “Próximamente” empujado al fondo y centrado */
.plan .proximamente {
  margin-top: auto;       /* lo sitúa al final */
  margin-bottom: 1rem;    /* pequeño espacio inferior */
  align-self: center;     /* centrado horizontal */
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
}

/* Fila única para el plan “1%” centrada */
/* (usar en el contenedor .planes como .fila-1) */
.fila-1 {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ==============================
   Igualar ancho de la tarjeta 1%
   ============================== */
.fila-1 .plan {
  width: 280px;       /* Igual que el resto de .plan */
  min-width: 280px;   /* Evita que se encoja */
  max-width: 280px;   /* Evita que crezca */
}

/* Página de Miembros */

.miembros {
  padding: 2rem 1rem;
  text-align: center;
}

.miembros h1 {
  color: #000;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.lista-miembros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.miembro {
  background-color: #fff;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: transform 0.2s ease;
}

.miembro:hover {
  transform: scale(1.03);
}

.miembro img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.miembro p {
  color: #000;
  font-size: 1rem;
  margin: 0;
}

/* ================================
   Página Iniciar Sesión
   ================================ */
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 2rem 1rem;
}

.login-box {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 380px;
  text-align: center;
  border: 1px solid #ddd;
}

.login-box h1 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  color: #333;
}

.formulario-login label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
  text-align: center; /* centrado */
}

.formulario-login input {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Contenedor de botones */
.formulario-login .form-foot {
  text-align: center;
  margin-top: 0.5rem;
}

/* Botón principal */
.formulario-login .boton-cta {
  background: #0073aa;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s ease;
}
.formulario-login .boton-cta:hover {
  background: #005f8a;
}

/* Botón “Olvidé mi contraseña” */
.formulario-login .boton-olvidado {
  background: transparent;
  border: none;
  color: #0073aa;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-block; /* ocupa solo lo necesario */
  margin-top: 1rem;
}
.formulario-login .boton-olvidado:hover {
  text-decoration: underline;
}

/* Enlace de registro */
.formulario-login .registro-link {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #666;
  text-align: center;
}
.formulario-login .registro-link a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 600;
}
.formulario-login .registro-link a:hover {
  text-decoration: underline;
}

/* Mensajes de error */
.login-box .errores {
  background: #fdecea;
  color: #c00;
  border: 1px solid #c00;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  text-align: left;
  font-size: 0.95rem;
}

/* Footer sticky al fondo y centrado */
.site-footer {
  position: fixed;      /* Fijado */
  bottom: 0;            /* Siempre abajo */
  left: 0;
  width: 100%;          /* Ocupa todo el ancho */
  text-align: center;   /* Texto centrado */
  background-color: #fff;  /* Fondo blanco o el que quieras */
  padding: 1rem 0;      /* Espaciado arriba y abajo */
  box-shadow: 0 -1px 5px rgba(0,0,0,0.1); /* Sombra suave opcional */
  font-size: 0.9rem;
  z-index: 9999;        /* Siempre encima */
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

.boton-centro-arriba {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.boton-anadir-publicacion {
  padding: 10px 20px;
}

/* === Sobre Nosotros === */
.sobre-nosotros {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  font-family: 'Helvetica Neue', sans-serif;
  color: #222;
  line-height: 1.7;
}

.sobre-header {
  text-align: center;
  margin-bottom: 3rem;
}

.sobre-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.sobre-header .intro {
  font-size: 1.2rem;
  color: #555;
}

.bloque {
  margin-bottom: 2.5rem;
}

.bloque h2 {
  font-size: 1.6rem;
  color: #1e3a5f;
  margin-bottom: 1rem;
}

.bloque p {
  font-size: 1.05rem;
  color: #333;
}

.bloque ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.bloque ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.bloque ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #1e90ff;
  font-size: 1.2rem;
  line-height: 1;
}

.call-to-action {
  background-color: #f5faff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.call-to-action p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn-cta {
  display: inline-block;
  background-color: #007acc;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-cta:hover {
  background-color: #005eaa;
}

@media (max-width: 768px) {
  .sobre-nosotros {
    padding: 2.5rem 1rem;
  }

  .sobre-header h1 {
    font-size: 2rem;
  }

  .sobre-header .intro {
    font-size: 1rem;
  }

  .bloque h2 {
    font-size: 1.3rem;
  }

  .bloque p,
  .bloque ul li {
    font-size: 1rem;
  }

  .call-to-action {
    padding: 1.5rem 1rem;
  }

  .call-to-action h2 {
    font-size: 1.4rem;
  }

  .call-to-action p {
    font-size: 1rem;
  }

  .btn-cta {
    font-size: 1rem;
    padding: 0.65rem 1.2rem;
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .sobre-header h1 {
    font-size: 1.6rem;
  }

  .btn-cta {
    width: 100%;
    display: block;
    text-align: center;
  }
}

/* 1) Que main crezca en altura en lugar de quedarse fijo */
main.inicio,
main.membresias {
  height: auto !important;
  min-height: auto !important;
}

/* 2) Un pequeño padding inferior para no chocar con el footer */
main.membresias {
  padding-bottom: 4rem;
}

/* 3) Asegurarnos de que siempre haya scroll vertical */
html, body {
  overflow-y: auto !important;
}

/* 4) Si tu footer está posicionado fija o absolutamente, lo revertimos */
.site-footer,
footer {
  position: static !important;
}

/* ===================================================================
   ESTILOS DEL CALENDARIO DE EVENTOS (anual, mensual y diario)
   =================================================================== */

/* ===========================
   CONTENEDOR GENERAL
   =========================== */
.eventos-calendario {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ===================================================================
   ESTILOS PARA EL TÍTULO DE LA VISTA ANUAL
   =================================================================== */
.eventos-calendario .contenedor-titulo-anual {
  text-align: center;
  margin-bottom: 1rem;
}

.eventos-calendario .titulo-anual {
  font-size: 1.75rem;
  font-weight: bold;
  color: #000;
  margin: 0;
}

.eventos-calendario .selector-anio {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.eventos-calendario .selector-anio .anio-anterior {
  text-decoration: none;
  color: #0073aa;
  font-size: 1rem;
  margin-right: 1.5rem;
}
.eventos-calendario .selector-anio .anio-anterior:hover {
  text-decoration: underline;
}

.eventos-calendario .selector-anio .anio-actual {
  font-size: 1.25rem;
  font-weight: bold;
  color: #000;
}

.eventos-calendario .selector-anio .anio-siguiente {
  text-decoration: none;
  color: #0073aa;
  font-size: 1rem;
  margin-left: 1.5rem;
}
.eventos-calendario .selector-anio .anio-siguiente:hover {
  text-decoration: underline;
}

.eventos-calendario .anio-anual-oculto {
  display: none;
}

/* ===========================
   GRID ANUAL DE MESES: 
   4 filas × 3 columnas
   =========================== */
.eventos-calendario .grid-meses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

/* Cada mes (ahora es un <a class="mes">) */
.eventos-calendario .grid-meses .mes {
  display: block;                       
  text-decoration: none;                
  color: inherit;                       
  background-color: #fff;               
  border: 1px solid #ccc;               
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.eventos-calendario .grid-meses .mes:hover {
  transform: scale(1.03) rotateX(2deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Título de cada mes (anual) */
.eventos-calendario .titulo-mes {
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: capitalize;
  color: #000;
}

/* Mini-calendario dentro de cada mes anual */
.eventos-calendario .mini-calendario {
  width: 100%;
  overflow: visible;
}
.eventos-calendario .mini-calendario table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  background-color: #fff;
}
.eventos-calendario .mini-calendario th,
.eventos-calendario .mini-calendario td {
  border: 1px solid #eee;
  padding: 0.2rem;
  text-align: center;
  line-height: 1.1;
  min-height: 1.2rem;
  background-color: #fff;
  color: #000;
}
/* Celdas vacías en la mini‐tabla */
.eventos-calendario .mini-calendario .dia-vacio {
  background-color: #fff;
}

/* Día actual en mini‐tabla (círculo gris) */
.eventos-calendario .mini-calendario .hoy {
  background-color: #999;
  color: #fff;
  border-radius: 50%;
}

/* Hover 3D en cada día dentro del mini-calendario */
.eventos-calendario .mini-calendario td:hover {
  transform: scale(1.05) rotateX(2deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #f5f5f5;
}

/* ===================================================================
   VISTA MENSUAL (AJUSTADA Y CORREGIDA)
   =================================================================== */

/* Contenedor general de la vista mensual */
.eventos-calendario .contenedor-mensual {
  width: 100%;
  max-width: none;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ========== NAVEGACIÓN ENCABEZADO ========== */
.eventos-calendario .navegacion-mes {
  position: relative;
  margin-bottom: 0.5rem;  
}
.eventos-calendario .volver-mes {
  position: absolute;
  top: 0;
  left: 0;
  text-decoration: none;
  color: #0073aa;
  font-size: 0.9rem;
}
.eventos-calendario .volver-mes:hover {
  text-decoration: underline;
}
.eventos-calendario .anio-mensual {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
  color: #000;
  margin: 0;
}

/* ========== TÍTULO DEL MES ========== */
.eventos-calendario .titulo-mensual {
  text-align: center;
  font-size: 1.75rem;
  text-transform: capitalize; 
  margin: 0 0 1rem 0;         
  color: #000;
  font-weight: bold;
}

/* ========== BOTONES “MES ANTERIOR” / “MES SIGUIENTE” ========== */
.eventos-calendario .navegacion-flechas {
  text-align: center;
  margin-bottom: 1.5rem;
}
.eventos-calendario .navegacion-flechas a {
  text-decoration: none;
  color: #0073aa;
  font-size: 0.9rem;
  margin: 0 1rem;
}
.eventos-calendario .navegacion-flechas a:hover {
  text-decoration: underline;
}

/* ========== TABLA DEL MES COMPLETO ========== */
.eventos-calendario .calendario-mes {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #fff;
  font-size: 1.1rem; 
}

/* Encabezados de día (L, M, X, J, V, S, D) */
.eventos-calendario .calendario-mes th {
  border: 1px solid #ddd;
  padding: 1.5rem 0.5rem;  
  text-align: center;
  font-weight: normal;
  background-color: #f5f5f5;
  color: #000;
  font-size: 1rem;
}

/* Celdas vacías antes o después del mes */
.eventos-calendario .calendario-mes .dia-vacio-mes {
  background-color: #fff;
  /* altura igual que la de los días con <a> */
}

/* Celdas de día: quitamos padding del td para trasladarlo al <a> */
.eventos-calendario .calendario-mes td {
  border: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  position: relative;
  background-color: #fff;
  color: #000;
  padding: 0; /* todo el padding irá en el <a> */
}

/* Enlace que cubre toda la celda, con padding para agrandar */
.eventos-calendario .calendario-mes td a {
  display: flex;               
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 2rem;               
  text-decoration: none;       
  color: #000;                 
  font-weight: bold;
  font-size: 1.1rem;           
  box-sizing: border-box;      
}

/* Día actual en vista mensual: círculo gris y centrado */
.eventos-calendario .calendario-mes .hoy-mes {
  background-color: #999;      
  border-radius: 50%;
  padding: 0;                  
}
.eventos-calendario .calendario-mes .hoy-mes a {
  width: 2.2rem;
  height: 2.2rem;
  line-height: 2.2rem;
  text-align: center;
  font-weight: bold;
  color: #fff;
  background-color: transparent; 
  border-radius: 50%;
  margin: auto;                
  padding: 0;
}

/* Hover 3D y fondo gris claro en la celda de cada día */
.eventos-calendario .calendario-mes td:hover {
  transform: scale(1.05) rotateX(2deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #f5f5f5;
}

/* Igualamos altura de celdas vacías al padding del <a> */
.eventos-calendario .calendario-mes .dia-vacio-mes {
  background-color: #fff;
  padding: 2rem;  
}

/* ===================================================================
   VISTA DIARIA
   =================================================================== */

/* Contenedor general de toda la vista diaria */
.eventos-calendario .vista-diaria {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Header diario: enlace y título en la misma área */
.eventos-calendario .header-diario {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Link “Volver al mes” posicionado a la izquierda */
.eventos-calendario .header-diario .volver-mes {
  position: absolute;
  top: 0;
  left: 0;
  text-decoration: none;
  color: #0073aa;
  font-size: 0.9rem;
}
.eventos-calendario .header-diario .volver-mes:hover {
  text-decoration: underline;
}

/* Título de la fecha centrado */
.eventos-calendario .header-diario .titulo-diario {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  margin: 0;
}

/* Contenedor de eventos para el día */
.eventos-calendario .contenedor-eventos-dia {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Mensaje “No hay eventos programados” */
.eventos-calendario .contenedor-eventos-dia .sin-eventos {
  text-align: center;
  color: #555;               
  background-color: #f5f5f5; 
  padding: 1rem;
  border-radius: 6px;
  font-style: italic;
  border: 1px solid #ddd;
}

/* GRID DE EVENTOS (a futuro) */
/* Si tuvieras eventos, podrías mostrar varias tarjetas en un grid */
.eventos-calendario .grid-eventos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Tarjeta individual de evento */
.eventos-calendario .tarjeta-evento {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover en tarjeta de evento */
.eventos-calendario .tarjeta-evento:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Título dentro de la tarjeta de evento */
.eventos-calendario .tarjeta-evento .titulo-evento {
  font-size: 1.1rem;
  color: #000;
  margin: 0 0 0.5rem 0;
}

/* Hora o detalle pequeño dentro de la tarjeta */
.eventos-calendario .tarjeta-evento .hora-evento {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 0.75rem 0;
}

/* Descripción o extracto dentro de la tarjeta */
.eventos-calendario .tarjeta-evento .descripcion-evento {
  font-size: 0.95rem;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

/* Indicador de día que tiene evento (vista mensual) */
.eventos-calendario .calendario-mes td.evento-mes {
  position: relative;
}
.eventos-calendario .calendario-mes td.evento-mes .indicador-evento {
  display: block;
  width: 6px;
  height: 6px;
  background-color: #0073aa;
  border-radius: 50%;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}

/* Tarjetas de evento en vista diaria */
.eventos-calendario .tarjeta-evento {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.eventos-calendario .tarjeta-evento h2.titulo-evento {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}
.eventos-calendario .tarjeta-evento .miniatura-evento {
  margin-bottom: 0.75rem;
}
.eventos-calendario .tarjeta-evento .hora-evento,
.eventos-calendario .tarjeta-evento .ubicacion-evento {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 0.5rem;
}
.eventos-calendario .tarjeta-evento .descripcion-evento {
  margin-bottom: 0.75rem;
  color: #333;
  line-height: 1.4;
}
.eventos-calendario .tarjeta-evento .link-evento a {
  color: #0073aa;
  text-decoration: none;
}
.eventos-calendario .tarjeta-evento .link-evento a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------
   1) Estilos base para todas las publicaciones
   ------------------------------------------------ */
.publicacion {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background-color: #ffffff;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  margin-bottom: 1.5rem;
}

/* ----------------------------------------------------------------
   2) Si la publicación ES un evento (tiene la clase .evento)
   ---------------------------------------------------------------- */
.publicacion.evento {
  background-color: #fff8f0;        /* fondo pálido específico para evento */
  border-left: 4px solid #e63946;   /* borde rojo a la izquierda */
}

.publicacion.evento:hover {
  background-color: #ffe6d5;        /* microvariación en hover para evento */
}

/* ---------------------------------------------------------
   3) Cambiar color de título cuando sea evento
   --------------------------------------------------------- */
.publicacion.evento .entry-title a {
  color: #e63946; /* título en rojo si es evento */
}

/* =======================================================
   4) Estilo del badge “Evento” junto al título
   ======================================================= */
.badge-evento {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  background-color: #e63946; /* rojo intenso */
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
  vertical-align: middle;
}

/* ========================================================
   5) Estilo para la fecha del evento justo debajo del título
   ======================================================== */
.info-evento-meta {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #555555;
}

/* ------------------------------------------------
   1) Estilos base para todas las publicaciones
   ------------------------------------------------ */
.publicacion {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background-color: #ffffff;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  margin-bottom: 1.5rem;
}

/* ----------------------------------------------------------------
   2) Si la publicación ES un evento (tiene la clase .evento)
   ---------------------------------------------------------------- */
.publicacion.evento {
  background-color: #fff8f0;        /* fondo pálido específico para evento */
  border-left: 4px solid #e63946;   /* borde rojo a la izquierda */
}

.publicacion.evento:hover {
  background-color: #ffe6d5;        /* microvariación en hover para evento */
}

/* ---------------------------------------------------------
   3) Cambiar color de título cuando sea evento
   --------------------------------------------------------- */
.publicacion.evento .entry-title a {
  color: #e63946; /* título en rojo si es evento */
}

/* =======================================================
   4) Estilo del badge “Evento” junto al título
   ======================================================= */
.badge-evento {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  background-color: #e63946; /* rojo intenso */
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
  vertical-align: middle;
}

/* ========================================================
   5) Estilo para la fecha del evento justo debajo del título
   ======================================================== */
.info-evento-meta {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #555555;
}

/* ======================
   FORMULARIO “Añadir Evento”
   ====================== */

/* 1) Contenedor general del formulario */
.form-evento-contenedor {
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* 2) Fieldset y legend para agrupar secciones */
.campo-grupo {
  margin-bottom: 1.5rem;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
}
.campo-grupo legend {
  font-weight: bold;
  padding: 0 0.5rem;
  font-size: 1.1rem;
  color: #333;
}

/* 3) Estilos para cada fila de campo */
.campo-form {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.campo-form-doble {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

/* 4) Etiquetas y controles */
.form-label {
  margin-bottom: 0.3rem;
  font-weight: bold;
  color: #333;
}
.form-required {
  color: #c00;
}
.form-control {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* 5) Botón primario de envío */
.boton-primario {
  background-color: #0073aa;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.boton-primario:hover {
  background-color: #005f8a;
}

/* 6) Contenedor del botón para alinearlo a la derecha */
.campo-boton {
  text-align: right;
}

/* 7) Estilo de posibles mensajes de error (opcional) */
.form-error {
  color: #c00;
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

/* Para que la línea de categoría destaque un poco */
.categoria-evento {
  font-size: 0.9rem;
  color: #0073aa;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------
   2. ESTILOS PARA LAS TARJETAS DE EVENTOS EN PAGE-EVENTOS.PHP
   -------------------------------------------------------------- */

/* Contenedor general de cada tarjeta */
.evento-entrada {
  background-color: #fff5f4;            /* Fondo color crema claro */
  border-radius: 8px;                   /* Bordes redondeados */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: 4px solid #dc3545;       /* Borde izquierdo rojo (como en portada) */
}

/* Miniatura superior (si tiene imagen destacada) */
.evento-entrada .miniatura-evento img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contenido interno */
.evento-entrada .contenido-entrada {
  padding: 1rem;
  flex: 1; /* para que ocupe todo el espacio y empuje el botón abajo */
}

/* Badge “Evento” en la parte superior */
.evento-entrada .badge-evento {
  display: inline-block;
  background-color: #dc3545;  /* Rojo oscuro */
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Título del evento */
.evento-entrada .titulo-evento {
  font-size: 1.25rem;
  margin: 0.25rem 0 0.75rem 0;
}
.evento-entrada .titulo-evento a {
  text-decoration: none;
  color: #dc3545;  /* Mismo rojo para el título */
}
.evento-entrada .titulo-evento a:hover {
  text-decoration: underline;
}

/* Categoría */
.evento-entrada .categoria-evento {
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 0.5rem 0;
}

/* Fecha y hora */
.evento-entrada .fecha-evento,
.evento-entrada .horario-evento,
.evento-entrada .ubicacion-evento {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 0.5rem 0;
}
.evento-entrada .fecha-evento .dashicons,
.evento-entrada .ubicacion-evento .dashicons {
  vertical-align: middle;
  margin-right: 0.3rem;
  color: #dc3545;
}

/* Descripción (extracto) */
.evento-entrada .descripcion-evento {
  color: #333;
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* Enlace “Ver más” */
.evento-entrada .enlace-mas {
  display: inline-block;
  margin-top: auto; /* empuja a la parte inferior */
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background-color: #343a40;  /* fondo oscuro para contraste */
  padding: 0.4rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.evento-entrada .enlace-mas:hover {
  background-color: #23272b;
}

/* Botón eliminar (esquina superior derecha) */
.evento-entrada .boton-eliminar-dia {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 1.2rem;
  color: #c00;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  padding: 0.2rem;
  transition: background 0.2s ease;
}
.evento-entrada .boton-eliminar-dia:hover {
  background: rgba(255, 255, 255, 1);
}

/* Responsive: asegúrate de que el grid se vea bien en móviles */
@media (max-width: 600px) {
  .grid-eventos {
    grid-template-columns: 1fr !important;
  }
}

/* ===========================
   Hover 3D + sombra en entradas
   =========================== */

/* Aplicar tanto a publicaciones normales (.publicacion) como a eventos (.evento-entrada) */
.publicacion,
.evento-entrada {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publicacion:hover,
.evento-entrada:hover {
  transform: scale(1.03) rotateX(2deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  z-index: 5; /* para que floten por encima */
}

/* Contenedor de cada tarjeta */
.evento-entrada {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

/* Badge “Evento” */
.badge-evento {
  display: inline-block;
  background-color: #0066cc;
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* Título */
.titulo-evento {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}
.titulo-evento a {
  color: #333;
  text-decoration: none;
}
.titulo-evento a:hover {
  text-decoration: underline;
}

/* Categoría (solo nombre) */
.categoria-evento {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

/* Fecha y hora juntas */
.fechahora-evento {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.5rem;
}

/* Ubicación */
.ubicacion-evento {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.75rem;
}

/* Descripción / extracto */
.descripcion-evento {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1rem;
}

/* ================================================
   Estilos página de registro personalizada
   Aplica a <div class="registro-form">…
   ================================================ */
.registro-form {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.registro-form p {
  margin-bottom: 1rem;
}

.registro-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

/* Campos de texto, email y password */
.registro-form input[type="text"],
.registro-form input[type="email"],
.registro-form input[type="password"] {
  width: 100%;
  padding: 0.6rem;
  background-color: #f9f9f9;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 0.3rem;
}

.registro-form input[type="text"]:focus,
.registro-form input[type="email"]:focus,
.registro-form input[type="password"]:focus {
  border-color: #666;
  outline: none;
}

/* Checkbox de Términos */
.registro-form label input[type="checkbox"] {
  display: inline-block;
  width: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Error general */
.registro-form .error {
  background-color: #fdd;
  color: #900;
  border: 1px solid #900;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
}

/* reCAPTCHA centrado */
.registro-form .g-recaptcha {
  display: block;
  margin: 1rem 0;
}

/* Botón de envío */
.registro-form input[type="submit"] {
  display: block;
  width: 100%;
  background-color: #000;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.registro-form input[type="submit"]:hover {
  background-color: #333;
}

/* Enlaces dentro del formulario */
.registro-form a {
  color: #0073aa;
  text-decoration: underline;
}

.registro-form a:hover {
  color: #005177;
}

/* ==== Password strength meter ==== */
#pwd-strength-container {
  width: 100%;
  height: 0.5rem;
  background: #e0e0e0;
  border-radius: 0.25rem;
  margin-top: 0.5rem;
  overflow: hidden;
}
#pwd-strength-bar {
  width: 0;
  height: 100%;
  background: red;
  transition: width 0.2s ease, background 0.2s ease;
}
#pwd-strength-text {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ==== Estilos para mensaje de éxito de reenvío y formulario ==== */
.mensaje-exito,
.reenviar-activacion {
  max-width: 400px;
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Mensaje de éxito */
.mensaje-exito {
  background-color: #e6ffed;      /* Verde muy claro */
  border: 1px solid #80c878;      /* Verde suave */
  color: #276738;                  /* Verde oscuro */
  text-align: center;
}

/* Bloque de reenvío de activación */
.reenviar-activacion {
  background-color: #fff4e5;      /* Naranja muy claro */
  border: 1px solid #ffab40;      /* Naranja */
  color: #664d03;                  /* Marrón oscuro */
}

/* Texto inicial */
.reenviar-activacion p {
  margin: 0 0 0.75rem;
  font-weight: 500;
}

/* Formulario de reenvío en línea */
.reenviar-activacion form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Botón secundario */
.reenviar-activacion .boton-secundario {
  background: transparent;
  border: 1px solid #ffab40;
  color: #664d03;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.reenviar-activacion .boton-secundario:hover {
  background-color: #ffab40;
  color: #ffffff;
}

/* Asegurar que el enlace “Regístrate aquí” no se vea afectado */
.registro-link a {
  color: #0073aa;
  text-decoration: none;
}

.registro-link a:hover {
  text-decoration: underline;
}

/* ==== Centrar mensaje de activación ==== */
.activacion-cuenta .contenedor-activacion {
  max-width: 500px;
  margin: 2rem auto;    /* centra horizontalmente */
  text-align: center;    /* centra el texto */
}

/* ================================
   NUEVO ESTILO: Página Editar Perfil
   ================================ */

.editar-perfil {
  display: flex;
  justify-content: center;
  padding: 4rem 1rem;
  background: #f7f7f7;
}

.editar-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 2.5rem;
  width: 100%;
  max-width: 900px;
}

/* Cabecera */
.editar-box h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

/* Grid de campos */
.formulario-editar.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.formulario-editar .form-item.full-width {
  grid-column: 1 / -1;
}

/* Nota explicativa */
.public-info-note {
  font-size: 0.95rem;
  color: #555;
  background: #eef6ff;
  border-left: 4px solid #0073aa;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Etiquetas y controles */
.formulario-editar .form-item label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #555;
}
.formulario-editar .form-item input,
.formulario-editar .form-item textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #333;
  background: #fafafa;
}
.formulario-editar .form-item textarea {
  min-height: 120px;
  resize: vertical;
}

/* Avatar */
.avatar-preview {
  text-align: center;
  margin-bottom: 0.75rem;
}
.avatar-preview img {
  border-radius: 50%;
  width: 96px;
  height: 96px;
  object-fit: cover;
}

/* Eliminar avatar */
.remove-avatar {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.remove-avatar input {
  margin-right: 0.4rem;
  transform: scale(1.1);
  vertical-align: middle;
}

/* Checkboxes “Mostrar al público” */
.show-public {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
}
.show-public input {
  margin-right: 0.5rem;
  transform: scale(1.1);
  vertical-align: middle;
}

/* Botón guardar */
.formulario-editar .form-item.full-width:last-child {
  text-align: center;
}
.boton-primario {
  background: #0073aa;
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.boton-primario:hover {
  background: #005f8a;
}

/* Mensaje de éxito */
.mensaje-exito {
  background: #e6ffed;
  border: 1px solid #80c878;
  color: #276738;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 1rem;
}

/* Ajustes de inputs date/file */
.formulario-editar .form-item input[type="date"],
.formulario-editar .form-item input[type="file"] {
  padding: 0.4rem;
}

/* Responsive (una columna en móvil) */
@media (max-width: 768px) {
  .formulario-editar.form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ===== Diseño principal de la tarjeta de perfil ===== */

/* CONTENEDOR GENERAL */
.perfil-box {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  font-family: 'Arial', sans-serif;
}

/* BLOQUE SUPERIOR: AVATAR + NOMBRE Y FECHA */
.perfil-header {
  display: flex;
  align-items: center; /* ← puedes dejar 'center' o 'flex-start' según cómo te guste */
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.perfil-header .avatar-perfil {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.perfil-header .datos-basicos {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.perfil-header .nombre {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #222;
}

.perfil-header .fecha {
  font-size: 1rem;
  color: #666;
}

/* DETALLES EN GRID DE 2 COLUMNAS */
.perfil-datos ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

.perfil-datos li {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
  text-align: left;
}

.perfil-datos li strong {
  color: #000;
}

/* REDES / ACCIONES / PUBLICACIONES */
.perfil-redes ul,
.perfil-acciones ul,
.perfil-publicaciones ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.perfil-redes li,
.perfil-acciones li,
.perfil-publicaciones li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
}

.perfil-redes a,
.perfil-acciones a,
.perfil-publicaciones a {
  text-decoration: none;
  color: #0073aa;
  font-weight: 500;
}

.perfil-redes a:hover,
.perfil-acciones a:hover,
.perfil-publicaciones a:hover {
  text-decoration: underline;
}


/* Contenedor del botón */
.perfil-editar-wrapper {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

/* Botón visual */
.boton-editar-perfil {
  padding: 0.5rem 1rem;
  background-color: #0073aa;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 0 #005f8d;
  transition: all 0.15s ease;
}

.boton-editar-perfil:hover {
  background-color: #008ecf;
  box-shadow: 0 2px 0 #005f8d;
  transform: translateY(1px);
}

.perfil-box {
  position: relative;
}

.perfil-redes ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 0;
}

.perfil-redes li {
  font-size: 1rem;
  color: #333;
  border: none;
}

.perfil-cerrar-wrapper {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

/* === DATOS EN DOS COLUMNAS (DESPUÉS DEL BLOQUE SUPERIOR) === */
.perfil-datos ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1.2rem 2rem;
  padding: 2rem 0 0 0;
  margin: 0 auto;
  list-style: none;
  max-width: 600px;
}

.perfil-datos li {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
  text-align: left;
}

/* === BIOGRAFÍA — bloque individual centrado === */
.perfil-biografia {
  max-width: 600px;
  margin: 2rem auto;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.perfil-biografia h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #222;
  text-align: left;
}

.bio-contenido {
  background: #f9f9f9;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  white-space: pre-wrap;
  border: 1px solid #ddd;
  text-align: left;
  display: block;
}

/* Responsive general para 1 columna en móviles */
@media (max-width: 640px) {
  .perfil-datos ul {
    grid-template-columns: 1fr;
    max-width: 90%;
  }

  .perfil-biografia {
    max-width: 90%;
  }
}


/* === REDES SOCIALES EN DOS COLUMNAS === */

.perfil-redes {
  border-top: 1px solid #eee;
  padding-top: 2rem;
  margin-top: 1.5rem;
}

.perfil-redes ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1.2rem 2rem;
  margin: 0 auto;
  padding: 0;
  max-width: 600px;
  list-style: none;
}

.perfil-redes li {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
  text-align: left;
}

/* Responsive */
@media (max-width: 640px) {
  .perfil-redes ul {
    grid-template-columns: 1fr;
    max-width: 90%;
  }
}

.datos-basicos {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.4rem;
}

.boton-publicaciones {
  margin-top: 0.2rem;
}

.boton-publicaciones a {
  display: inline-block;
  background-color: #0073aa;
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.boton-publicaciones a:hover {
  background-color: #005d8f;
}

.icono-membresia {
  width: 35px;
  height: 35px;
  margin-left: 0.01rem;
  vertical-align: middle;
  transform: translateY(-1.5px);
}
