/* ==========================================
   BARBEROS SINALOOK - CONTENIDO INTERNO ✂️
   ========================================== */

/* 1. CONTENEDOR GRID */
.grid-barberos {
    display: grid;
    /* Usamos auto-fit para que se centren si son pocos */
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 40px; /* Más espacio entre barberos */
    justify-content: center; /* Los centra si solo hay 2 o 3 */
    width: 100%;
    max-width: 1200px;
    margin: 40px auto; /* Margen superior para separar del título */
}

/* 2. TARJETA: Ajustamos altura para que la info no se encime */
.grid-barberos .tarjeta-envase {
    width: 100%;
    height: 350px; /* Aumentado de 300px para que quepa bien el correo y cel */
    perspective: 1000px;
    cursor: pointer;
}

.grid-barberos .tarjeta-cuerpo {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-barberos .tarjeta-envase.girada .tarjeta-cuerpo {
    transform: rotateY(180deg);
}

/* 3. ESTILO DE LAS CARAS */
.grid-barberos .cara-frente,
.grid-barberos .cara-atras {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.grid-barberos .cara-frente {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    z-index: 2;
    justify-content: center; /* Centra el contenido verticalmente */
}

/* 4. ELEMENTOS INTERNOS */
.grid-barberos .foto-barbero {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #d4af37;
    margin-bottom: 20px;
    background-color: #222;
    transition: transform 0.3s ease;
}

.grid-barberos .foto-barbero:hover {
    transform: scale(1.05); /* Efecto sutil al pasar el mouse por la foto */
}

.grid-barberos .nombre {
    color: #d4af37;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.grid-barberos .telefono,
.grid-barberos .correo {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 4px 0;
    opacity: 0.9;
}

/* 2. LÓGICA DE TARJETAS (Giro 3D) */
.tarjeta-envase {
    width: 100%;
    height: 300px; /* Espacio para info de contacto */
    perspective: 1000px;
    cursor: pointer;
}

.tarjeta-cuerpo {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.tarjeta-envase.girada .tarjeta-cuerpo {
    transform: rotateY(180deg);
}

/* 3. ESTILO DE LAS CARAS */
.cara-frente, .cara-atras {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.cara-frente {
    background: linear-gradient(145deg, #1a1a1a, var(--negro-fondo));
    z-index: 2;
}

.cara-atras {
    background: var(--gris-tarjeta);
    transform: rotateY(180deg);
    z-index: 1;
    justify-content: center;
    text-align: center;
}

/* 4. ELEMENTOS INTERNOS */
.foto-barbero {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--dorado);
    margin-bottom: 15px;
    background-color: #222;
}

.nombre {
    color: var(--dorado);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.telefono, .correo {
    color: var(--blanco);
    font-size: 0.85rem;
    margin: 2px 0;
    font-family: sans-serif;
}

/* 5. CONTENIDO REVERSO */
.cara-atras h4 {
    color: var(--dorado);
    margin-bottom: 10px;
}

.cara-atras p {
    color: var(--azul);
    font-size: 0.9rem;
    line-height: 1.4;
}