.container_galeria {
  width: 100%;	
  /*max-width: 1000px;*/
  margin: 2% auto;
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);	
}

.text-center {
  text-align: center;
  margin-bottom: 1em;
}

.lightbox-gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1em;	
}

.lightbox-gallery div > img {
  width: 100%;
  height: 20em;	
  max-width: 100%;
  border-radius: .5em;	
  display: block;
  cursor: pointer;
}

.lightbox-gallery div {
  margin: 4px;
  flex-basis: 290px;
}
/*Lighbox CSS*/		
		
.card-body {	
    padding: 1em;
	text-align: center;
}

.card-body h3 {	
    font-size: 2rem;    
    font-weight: 500;
}

.card-body p {
	font-size: 16px;
    font-weight: 300;
}
		
		
.titulo-interno{
		margin: 0 1em 1em 1em;
		padding-right: 2em;
		width: 100%;		
	}
		
/*nuevo estylo*/
		
body{
  background:#0f0f0f;
  color:#fff;
  /*font-family:'Inter',sans-serif;*/
  font-family: 'Varela Round', sans-serif;
  margin:0;
}

.hero{
  text-align:center;
  padding:20px 20px;
}
.hero h1{
  font-size:42px;
  font-weight:600;
}
.hero p{
  color:#aaa;
  margin-top:10px;
}
	
.galeria {

  /*display: grid;
    grid-template-columns: repeat(auto-fill, 205px);
    gap: 12px;
    padding: 10px 0;
    width: 100%;
    justify-content: start;*/

  display: grid;
  /* Define el tamaño mínimo de cada tarjeta. Al bajarlo a 160px, cabrán muchas más por fila */
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
  gap: 12px; /* Espacio optimizado entre tarjetas */
  padding: 10px 0;
  width: 100%;
}

/*.galeria img {
    width: 100%;
    height: 274px;
    object-fit: cover;
    display: block;
}*/



.perfil {

  /*width: 205px;
  min-width: 205px;
  max-width: 205px;*/

  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease;
}

.perfil:hover {
  transform: translateY(-3px);
}

/* 3. Ajuste de la Foto para que no se deforme */
.perfil .foto {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* Mantiene la proporción clásica de catálogo vertical */
  display: block;
  overflow: hidden;
}

.perfil .foto img {
  width: 100%;
   /*height: auto;*/
  height: 100%;
  object-fit: cover; /* Ajusta la foto sin estirarla ni achatarla */
  display: block;
}

/* 4. Textos más compactos para que se adapten al nuevo tamaño */
.perfil .info {
  /*padding: 8px;*/
  font-size: 13px; /* Texto ligeramente más pequeño para pantallas compactas */
  line-height: 1.3;

  padding: 10px;
  color: #f3074e;
}

.perfil .info h3 {
  margin: 0 0 4px 0;
  font-size: 14px; /* Tamaño del nombre destacado */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Si el nombre es muy largo, pone "..." en vez de romperse */
}

.perfil .info span {
  color: #666;
  font-size: 12px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.badge-vip {
  position: absolute;
  top: 6px; /* Más pegada al borde superior */
  left: 6px; /* Más pegada al borde izquierdo */
  background: linear-gradient(135deg, #ffcc00, #ff9900); /* Degradado dorado profesional */
  color: #000;
  font-weight: 800;
  font-size: 9px; /* Texto ultra-compacto para que no invada la foto */
  letter-spacing: 0.5px;
  padding: 3px 6px; /* Bordes más finos */
  border-radius: 4px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

/* 2. Tarjeta Destacada Adaptada al tamaño pequeño */
.perfil.destacado {
  border: 1.5px solid #ffbc00; /* Borde dorado un poco más fino para que sea elegante */
  box-shadow: 0 3px 10px rgba(255, 188, 0, 0.25);
  background-color: #fffdf2; /* Fondo sutilmente cálido */
}

/* 3. Pequeño truco visual para el Overlay de "Ver Perfil" */
/* Como la tarjeta es más chica, reducimos el tamaño de la tipografía al pasar el mouse */
.perfil .foto .overlay span {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background: #ff2d75;
  padding: 8px 12px;
  border-radius: 20px;
}


/* overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s;
}

.foto:hover .overlay {
  opacity: 1;
}

.loader {
  text-align: center;
  padding: 20px;
  color: #fff;
  font-size: 14px;
}

/** tipo tinder */

/* 📱 MÓVIL: 1 por fila */
@media (max-width: 768px) {
  /*.galeria {
    grid-template-columns: 1fr;
  }*/
.galeria {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .perfil {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

}

.age-modal{

position:fixed;
inset:0;
background:rgba(0,0,0,.92);
display:flex;
justify-content:center;
align-items:center;
z-index:999999;
backdrop-filter:blur(8px);
}

.age-box{
width:min(92%,480px);
background:#181818;
border-radius:20px;
padding:35px;
color:#fff;
text-align:center;
box-shadow:0 20px 60px rgba(0,0,0,.5);
}

.age-icon{
font-size:70px;
margin-bottom:20px;
}

.age-box h2{
margin-bottom:15px;
color:#ff2d75;
}

.age-box p{
margin:10px 0;
line-height:1.5;
}

.age-box ul{
text-align:left;
margin:20px 0;
padding-left:20px;
}

.age-buttons{
display:flex;
gap:15px;
margin-top:25px;
}

.age-buttons button{
flex:1;
padding:15px;
border:none;
border-radius:12px;
font-size:16px;
cursor:pointer;
font-weight:bold;
}

#btnEntrar{
background:#00d26a;
color:#fff;
}

#btnSalir{
background:#ff3366;
color:#fff;
}

@media(max-width:600px){

.age-box{
padding:25px;
}

.age-buttons{
flex-direction:column;
}
}

.age-box a{
    color:#ff4fa3;
    font-weight:600;
    text-decoration:none;
    transition:.3s;
}

.age-box a:hover{
    color:#fff;
    text-decoration:underline;
  }


/*Cookies*/

.cookie-banner{
position:fixed;
bottom:20px;
left:20px;
right:20px;
background:#1d1d1d;
color:white;
padding:18px;
border-radius:15px;
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
box-shadow:0 10px 35px rgba(0,0,0,.45);
z-index:99999;
}

.cookie-banner a{
color:#ff3d8d;
font-weight:bold;
text-decoration:none;
}

.cookie-banner button{
background:#ff3d8d;
border:none;
color:white;
padding:12px 25px;
border-radius:10px;
cursor:pointer;
font-weight:bold;
}

@media(max-width:700px){

.cookie-banner{
flex-direction:column;
text-align:center;
}

#capa{
    width:100%;
    min-height:100vh;
}

}